* [igt-dev] [PATCH i-g-t] tools/i915-perf: Fix compiler warning @ 2020-02-20 13:12 Petri Latvala 2020-02-20 14:47 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2020-02-22 18:01 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 0 siblings, 2 replies; 4+ messages in thread From: Petri Latvala @ 2020-02-20 13:12 UTC (permalink / raw) To: igt-dev; +Cc: Petri Latvala Use flexible array member in the first struct instead of two structs and a 0-length array so compiler knows we really meant to read and write past it. Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com> --- tools/i915-perf/i915_perf_control.c | 24 +++++++------------ tools/i915-perf/i915_perf_recorder.c | 7 ++++-- tools/i915-perf/i915_perf_recorder_commands.h | 5 +--- 3 files changed, 15 insertions(+), 21 deletions(-) diff --git a/tools/i915-perf/i915_perf_control.c b/tools/i915-perf/i915_perf_control.c index a8d0d30f..3722f2b1 100644 --- a/tools/i915-perf/i915_perf_control.c +++ b/tools/i915-perf/i915_perf_control.c @@ -91,28 +91,22 @@ main(int argc, char *argv[]) if (dump_file[0] == '/') { uint32_t total_len = sizeof(struct recorder_command_base) + strlen(dump_file) + 1; - struct { - struct recorder_command_base base; - struct recorder_command_dump dump; - } *data = malloc(total_len); + struct recorder_command_base *data = malloc(total_len); - data->base.command = RECORDER_COMMAND_DUMP; - data->base.size = total_len; - snprintf((char *) data->dump.path, strlen(dump_file) + 1, "%s", dump_file); + data->command = RECORDER_COMMAND_DUMP; + data->size = total_len; + snprintf((char *) data->path, strlen(dump_file) + 1, "%s", dump_file); fwrite(data, total_len, 1, command_fifo_file); } else { char *cwd = get_current_dir_name(); uint32_t path_len = strlen(cwd) + 1 + strlen(dump_file) + 1; uint32_t total_len = sizeof(struct recorder_command_base) + path_len; - struct { - struct recorder_command_base base; - struct recorder_command_dump dump; - } *data = malloc(total_len); - - data->base.command = RECORDER_COMMAND_DUMP; - data->base.size = total_len; - snprintf((char *) data->dump.path, path_len, "%s/%s", cwd, dump_file); + struct recorder_command_base *data = malloc(total_len); + + data->command = RECORDER_COMMAND_DUMP; + data->size = total_len; + snprintf((char *) data->path, path_len, "%s/%s", cwd, dump_file); fwrite(data, total_len, 1, command_fifo_file); } diff --git a/tools/i915-perf/i915_perf_recorder.c b/tools/i915-perf/i915_perf_recorder.c index 760cabf1..bd477746 100644 --- a/tools/i915-perf/i915_perf_recorder.c +++ b/tools/i915-perf/i915_perf_recorder.c @@ -605,12 +605,15 @@ read_command_file(struct recording_context *ctx) switch (header.command) { case RECORDER_COMMAND_DUMP: { uint32_t len = header.size - sizeof(header), offset = 0; - struct recorder_command_dump *dump = malloc(len); + struct recorder_command_base *dump = malloc(sizeof(header) + len); FILE *file; + /* Not really needed since current code only accesses dump->path but for completeness... */ + memcpy(dump, &header, sizeof(header)); + while (offset < len && ((ret = read(ctx->command_fifo_fd, - (void *) dump + offset, len - offset)) > 0 + (void *) dump->path + offset, len - offset)) > 0 || errno == EAGAIN)) { if (ret > 0) offset += ret; diff --git a/tools/i915-perf/i915_perf_recorder_commands.h b/tools/i915-perf/i915_perf_recorder_commands.h index 4855d80f..5d84ca82 100644 --- a/tools/i915-perf/i915_perf_recorder_commands.h +++ b/tools/i915-perf/i915_perf_recorder_commands.h @@ -32,8 +32,5 @@ enum recorder_command { struct recorder_command_base { uint32_t command; uint32_t size; -}; - -struct recorder_command_dump { - uint8_t path[0]; + uint8_t path[]; }; -- 2.20.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for tools/i915-perf: Fix compiler warning 2020-02-20 13:12 [igt-dev] [PATCH i-g-t] tools/i915-perf: Fix compiler warning Petri Latvala @ 2020-02-20 14:47 ` Patchwork 2020-02-22 18:01 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 1 sibling, 0 replies; 4+ messages in thread From: Patchwork @ 2020-02-20 14:47 UTC (permalink / raw) To: Petri Latvala; +Cc: igt-dev == Series Details == Series: tools/i915-perf: Fix compiler warning URL : https://patchwork.freedesktop.org/series/73714/ State : success == Summary == CI Bug Log - changes from CI_DRM_7973 -> IGTPW_4195 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/index.html New tests --------- New tests have been introduced between CI_DRM_7973 and IGTPW_4195: ### New IGT tests (4) ### * igt@i915_pm_backlight@basic-brightness: - Statuses : 1 dmesg-warn(s) 16 pass(s) 21 skip(s) - Exec time: [0.0, 0.22] s * igt@i915_pm_rpm@basic-pci-d3-state: - Statuses : 1 dmesg-warn(s) 28 pass(s) 9 skip(s) - Exec time: [0.0, 4.95] s * igt@i915_pm_rpm@basic-rte: - Statuses : 1 dmesg-warn(s) 28 pass(s) 9 skip(s) - Exec time: [0.67, 30.91] s * igt@i915_pm_rps@basic-api: - Statuses : 34 pass(s) 4 skip(s) - Exec time: [0.0, 0.02] s Known issues ------------ Here are the changes found in IGTPW_4195 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_close_race@basic-threads: - fi-hsw-peppy: [PASS][1] -> [INCOMPLETE][2] ([i915#694] / [i915#816]) [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/fi-hsw-peppy/igt@gem_close_race@basic-threads.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/fi-hsw-peppy/igt@gem_close_race@basic-threads.html * igt@gem_mmap_gtt@basic: - fi-tgl-y: [PASS][3] -> [DMESG-WARN][4] ([CI#94] / [i915#402]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/fi-tgl-y/igt@gem_mmap_gtt@basic.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/fi-tgl-y/igt@gem_mmap_gtt@basic.html * igt@i915_selftest@live_gtt: - fi-cfl-guc: [PASS][5] -> [TIMEOUT][6] ([fdo#112271]) [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/fi-cfl-guc/igt@i915_selftest@live_gtt.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/fi-cfl-guc/igt@i915_selftest@live_gtt.html #### Possible fixes #### * igt@gem_exec_parallel@contexts: - fi-byt-n2820: [FAIL][7] ([i915#694]) -> [PASS][8] [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/fi-byt-n2820/igt@gem_exec_parallel@contexts.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/fi-byt-n2820/igt@gem_exec_parallel@contexts.html * igt@gem_mmap@basic: - fi-tgl-y: [DMESG-WARN][9] ([CI#94] / [i915#402]) -> [PASS][10] [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/fi-tgl-y/igt@gem_mmap@basic.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/fi-tgl-y/igt@gem_mmap@basic.html * igt@i915_selftest@live_gem_contexts: - fi-cml-s: [DMESG-FAIL][11] ([i915#877]) -> [PASS][12] [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/fi-cml-s/igt@i915_selftest@live_gem_contexts.html [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/fi-cml-s/igt@i915_selftest@live_gem_contexts.html * igt@kms_chamelium@hdmi-hpd-fast: - fi-icl-u2: [FAIL][13] ([i915#217]) -> [PASS][14] [13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/fi-icl-u2/igt@kms_chamelium@hdmi-hpd-fast.html [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/fi-icl-u2/igt@kms_chamelium@hdmi-hpd-fast.html #### Warnings #### * igt@gem_exec_parallel@fds: - fi-byt-n2820: [FAIL][15] ([i915#694]) -> [TIMEOUT][16] ([fdo#112271] / [i915#1084]) [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/fi-byt-n2820/igt@gem_exec_parallel@fds.html [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/fi-byt-n2820/igt@gem_exec_parallel@fds.html * igt@kms_chamelium@hdmi-hpd-fast: - fi-kbl-7500u: [FAIL][17] ([fdo#111407]) -> [FAIL][18] ([fdo#111096] / [i915#323]) [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html [CI#94]: https://gitlab.freedesktop.org/gfx-ci/i915-infra/issues/94 [fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096 [fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407 [fdo#112271]: https://bugs.freedesktop.org/show_bug.cgi?id=112271 [i915#1084]: https://gitlab.freedesktop.org/drm/intel/issues/1084 [i915#217]: https://gitlab.freedesktop.org/drm/intel/issues/217 [i915#323]: https://gitlab.freedesktop.org/drm/intel/issues/323 [i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402 [i915#694]: https://gitlab.freedesktop.org/drm/intel/issues/694 [i915#816]: https://gitlab.freedesktop.org/drm/intel/issues/816 [i915#877]: https://gitlab.freedesktop.org/drm/intel/issues/877 Participating hosts (49 -> 43) ------------------------------ Additional (5): fi-kbl-soraka fi-ivb-3770 fi-pnv-d510 fi-skl-lmem fi-kbl-7560u Missing (11): fi-ilk-m540 fi-bxt-dsi fi-hsw-4200u fi-skl-6770hq fi-byt-squawks fi-bsw-cyan fi-cfl-8700k fi-ctg-p8600 fi-gdg-551 fi-kbl-8809g fi-bdw-samus Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_5453 -> IGTPW_4195 CI-20190529: 20190529 CI_DRM_7973: 07350317e4b2be54b1de7f1e73f77875df5e43f3 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_4195: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/index.html IGT_5453: cae9a5881ed2c5be2c2518a255740b612a927f9a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/index.html _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for tools/i915-perf: Fix compiler warning 2020-02-20 13:12 [igt-dev] [PATCH i-g-t] tools/i915-perf: Fix compiler warning Petri Latvala 2020-02-20 14:47 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork @ 2020-02-22 18:01 ` Patchwork 1 sibling, 0 replies; 4+ messages in thread From: Patchwork @ 2020-02-22 18:01 UTC (permalink / raw) To: Petri Latvala; +Cc: igt-dev == Series Details == Series: tools/i915-perf: Fix compiler warning URL : https://patchwork.freedesktop.org/series/73714/ State : success == Summary == CI Bug Log - changes from CI_DRM_7973_full -> IGTPW_4195_full ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/index.html Known issues ------------ Here are the changes found in IGTPW_4195_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_ctx_isolation@rcs0-s3: - shard-kbl: [PASS][1] -> [DMESG-WARN][2] ([i915#180]) +10 similar issues [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-kbl2/igt@gem_ctx_isolation@rcs0-s3.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-kbl1/igt@gem_ctx_isolation@rcs0-s3.html * igt@gem_ctx_shared@exec-single-timeline-bsd: - shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#110841]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb8/igt@gem_ctx_shared@exec-single-timeline-bsd.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb2/igt@gem_ctx_shared@exec-single-timeline-bsd.html * igt@gem_exec_schedule@promotion-bsd1: - shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#109276]) +17 similar issues [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb2/igt@gem_exec_schedule@promotion-bsd1.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb6/igt@gem_exec_schedule@promotion-bsd1.html * igt@gem_exec_schedule@reorder-wide-bsd: - shard-iclb: [PASS][7] -> [SKIP][8] ([fdo#112146]) +4 similar issues [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb8/igt@gem_exec_schedule@reorder-wide-bsd.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb2/igt@gem_exec_schedule@reorder-wide-bsd.html * igt@gem_partial_pwrite_pread@writes-after-reads-display: - shard-hsw: [PASS][9] -> [FAIL][10] ([i915#694]) +1 similar issue [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-hsw1/igt@gem_partial_pwrite_pread@writes-after-reads-display.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-hsw5/igt@gem_partial_pwrite_pread@writes-after-reads-display.html * igt@gem_pwrite@big-cpu-fbr: - shard-hsw: [PASS][11] -> [TIMEOUT][12] ([fdo#112271]) [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-hsw7/igt@gem_pwrite@big-cpu-fbr.html [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-hsw5/igt@gem_pwrite@big-cpu-fbr.html * igt@gem_tiled_partial_pwrite_pread@writes-after-reads: - shard-hsw: [PASS][13] -> [FAIL][14] ([i915#817]) [13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-hsw2/igt@gem_tiled_partial_pwrite_pread@writes-after-reads.html [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-hsw5/igt@gem_tiled_partial_pwrite_pread@writes-after-reads.html * igt@i915_pm_rpm@modeset-stress-extra-wait: - shard-glk: [PASS][15] -> [DMESG-WARN][16] ([i915#118] / [i915#95]) [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-glk7/igt@i915_pm_rpm@modeset-stress-extra-wait.html [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-glk8/igt@i915_pm_rpm@modeset-stress-extra-wait.html * igt@kms_cursor_crc@pipe-b-cursor-64x64-onscreen: - shard-apl: [PASS][17] -> [FAIL][18] ([i915#54]) [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-apl2/igt@kms_cursor_crc@pipe-b-cursor-64x64-onscreen.html [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-apl7/igt@kms_cursor_crc@pipe-b-cursor-64x64-onscreen.html * igt@kms_cursor_crc@pipe-c-cursor-suspend: - shard-apl: [PASS][19] -> [DMESG-WARN][20] ([i915#180]) +4 similar issues [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-apl3/igt@kms_cursor_crc@pipe-c-cursor-suspend.html [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-apl8/igt@kms_cursor_crc@pipe-c-cursor-suspend.html * igt@kms_flip@flip-vs-expired-vblank: - shard-glk: [PASS][21] -> [FAIL][22] ([i915#46]) [21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-glk6/igt@kms_flip@flip-vs-expired-vblank.html [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-glk6/igt@kms_flip@flip-vs-expired-vblank.html * igt@kms_flip@flip-vs-modeset-vs-hang-interruptible: - shard-glk: [PASS][23] -> [TIMEOUT][24] ([fdo#112271]) +2 similar issues [23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-glk6/igt@kms_flip@flip-vs-modeset-vs-hang-interruptible.html [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-glk6/igt@kms_flip@flip-vs-modeset-vs-hang-interruptible.html * igt@kms_flip@flip-vs-panning-vs-hang: - shard-tglb: [PASS][25] -> [TIMEOUT][26] ([fdo#112271] / [i915#561]) +2 similar issues [25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-tglb8/igt@kms_flip@flip-vs-panning-vs-hang.html [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-tglb3/igt@kms_flip@flip-vs-panning-vs-hang.html * igt@kms_plane_lowres@pipe-a-tiling-x: - shard-glk: [PASS][27] -> [FAIL][28] ([i915#899]) [27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-glk7/igt@kms_plane_lowres@pipe-a-tiling-x.html [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-glk2/igt@kms_plane_lowres@pipe-a-tiling-x.html * igt@kms_psr@psr2_cursor_plane_move: - shard-iclb: [PASS][29] -> [SKIP][30] ([fdo#109441]) +2 similar issues [29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb2/igt@kms_psr@psr2_cursor_plane_move.html [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb8/igt@kms_psr@psr2_cursor_plane_move.html * igt@perf_pmu@busy-accuracy-2-vcs1: - shard-iclb: [PASS][31] -> [SKIP][32] ([fdo#112080]) +15 similar issues [31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb4/igt@perf_pmu@busy-accuracy-2-vcs1.html [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb8/igt@perf_pmu@busy-accuracy-2-vcs1.html * igt@perf_pmu@cpu-hotplug: - shard-hsw: [PASS][33] -> [INCOMPLETE][34] ([i915#1176] / [i915#61]) [33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-hsw1/igt@perf_pmu@cpu-hotplug.html [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-hsw5/igt@perf_pmu@cpu-hotplug.html #### Possible fixes #### * igt@gem_busy@busy-vcs1: - shard-iclb: [SKIP][35] ([fdo#112080]) -> [PASS][36] +13 similar issues [35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb6/igt@gem_busy@busy-vcs1.html [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb2/igt@gem_busy@busy-vcs1.html * {igt@gem_ctx_persistence@close-replace-race}: - shard-kbl: [INCOMPLETE][37] ([fdo#103665]) -> [PASS][38] [37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-kbl3/igt@gem_ctx_persistence@close-replace-race.html [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-kbl3/igt@gem_ctx_persistence@close-replace-race.html * igt@gem_exec_balancer@hang: - shard-tglb: [FAIL][39] ([i915#1277]) -> [PASS][40] [39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-tglb8/igt@gem_exec_balancer@hang.html [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-tglb7/igt@gem_exec_balancer@hang.html * {igt@gem_exec_schedule@implicit-both-bsd2}: - shard-iclb: [SKIP][41] ([fdo#109276] / [i915#677]) -> [PASS][42] +2 similar issues [41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb5/igt@gem_exec_schedule@implicit-both-bsd2.html [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb2/igt@gem_exec_schedule@implicit-both-bsd2.html * igt@gem_exec_schedule@in-order-bsd: - shard-iclb: [SKIP][43] ([fdo#112146]) -> [PASS][44] +4 similar issues [43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb1/igt@gem_exec_schedule@in-order-bsd.html [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb6/igt@gem_exec_schedule@in-order-bsd.html * igt@gem_exec_schedule@pi-distinct-iova-bsd: - shard-iclb: [SKIP][45] ([i915#677]) -> [PASS][46] +2 similar issues [45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb4/igt@gem_exec_schedule@pi-distinct-iova-bsd.html [46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb8/igt@gem_exec_schedule@pi-distinct-iova-bsd.html * igt@gem_ppgtt@flink-and-close-vma-leak: - shard-glk: [FAIL][47] ([i915#644]) -> [PASS][48] [47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-glk7/igt@gem_ppgtt@flink-and-close-vma-leak.html [48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-glk3/igt@gem_ppgtt@flink-and-close-vma-leak.html - shard-apl: [FAIL][49] ([i915#644]) -> [PASS][50] [49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-apl7/igt@gem_ppgtt@flink-and-close-vma-leak.html [50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-apl2/igt@gem_ppgtt@flink-and-close-vma-leak.html * igt@gem_render_copy_redux@normal: - shard-hsw: [FAIL][51] ([i915#694]) -> [PASS][52] [51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-hsw5/igt@gem_render_copy_redux@normal.html [52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-hsw7/igt@gem_render_copy_redux@normal.html * igt@i915_pm_rpm@system-suspend-execbuf: - shard-glk: [FAIL][53] ([fdo#103375]) -> [PASS][54] [53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-glk6/igt@i915_pm_rpm@system-suspend-execbuf.html [54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-glk3/igt@i915_pm_rpm@system-suspend-execbuf.html * igt@i915_pm_rps@waitboost: - shard-tglb: [FAIL][55] ([i915#413]) -> [PASS][56] [55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-tglb5/igt@i915_pm_rps@waitboost.html [56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-tglb6/igt@i915_pm_rps@waitboost.html * igt@kms_color@pipe-a-ctm-blue-to-red: - shard-kbl: [FAIL][57] ([i915#129]) -> [PASS][58] [57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-kbl6/igt@kms_color@pipe-a-ctm-blue-to-red.html [58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-kbl1/igt@kms_color@pipe-a-ctm-blue-to-red.html - shard-apl: [FAIL][59] ([i915#129]) -> [PASS][60] [59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-apl2/igt@kms_color@pipe-a-ctm-blue-to-red.html [60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-apl8/igt@kms_color@pipe-a-ctm-blue-to-red.html * igt@kms_cursor_crc@pipe-a-cursor-alpha-opaque: - shard-apl: [FAIL][61] ([i915#54]) -> [PASS][62] +1 similar issue [61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-apl2/igt@kms_cursor_crc@pipe-a-cursor-alpha-opaque.html [62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-apl6/igt@kms_cursor_crc@pipe-a-cursor-alpha-opaque.html - shard-glk: [FAIL][63] ([i915#54]) -> [PASS][64] [63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-glk4/igt@kms_cursor_crc@pipe-a-cursor-alpha-opaque.html [64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-glk9/igt@kms_cursor_crc@pipe-a-cursor-alpha-opaque.html * igt@kms_cursor_crc@pipe-c-cursor-256x85-sliding: - shard-kbl: [FAIL][65] ([i915#54]) -> [PASS][66] +1 similar issue [65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-kbl2/igt@kms_cursor_crc@pipe-c-cursor-256x85-sliding.html [66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-kbl7/igt@kms_cursor_crc@pipe-c-cursor-256x85-sliding.html * igt@kms_flip@2x-flip-vs-suspend: - shard-hsw: [INCOMPLETE][67] ([i915#61]) -> [PASS][68] [67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-hsw5/igt@kms_flip@2x-flip-vs-suspend.html [68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-hsw7/igt@kms_flip@2x-flip-vs-suspend.html * igt@kms_flip@flip-vs-panning: - shard-kbl: [DMESG-WARN][69] -> [PASS][70] [69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-kbl4/igt@kms_flip@flip-vs-panning.html [70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-kbl6/igt@kms_flip@flip-vs-panning.html - shard-apl: [DMESG-WARN][71] -> [PASS][72] [71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-apl3/igt@kms_flip@flip-vs-panning.html [72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-apl7/igt@kms_flip@flip-vs-panning.html * igt@kms_flip@flip-vs-suspend-interruptible: - shard-apl: [DMESG-WARN][73] ([i915#180]) -> [PASS][74] +5 similar issues [73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-apl1/igt@kms_flip@flip-vs-suspend-interruptible.html [74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-apl3/igt@kms_flip@flip-vs-suspend-interruptible.html * igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-mmap-wc: - shard-glk: [FAIL][75] ([i915#49]) -> [PASS][76] [75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-glk4/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-mmap-wc.html [76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-glk9/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-mmap-wc.html * igt@kms_frontbuffer_tracking@fbcpsr-slowdraw: - shard-tglb: [SKIP][77] ([i915#668]) -> [PASS][78] +1 similar issue [77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-tglb1/igt@kms_frontbuffer_tracking@fbcpsr-slowdraw.html [78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-tglb7/igt@kms_frontbuffer_tracking@fbcpsr-slowdraw.html * igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes: - shard-kbl: [DMESG-WARN][79] ([i915#180]) -> [PASS][80] [79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-kbl7/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes.html [80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-kbl3/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes.html * igt@kms_plane_lowres@pipe-a-tiling-y: - shard-glk: [FAIL][81] ([i915#899]) -> [PASS][82] [81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-glk2/igt@kms_plane_lowres@pipe-a-tiling-y.html [82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-glk9/igt@kms_plane_lowres@pipe-a-tiling-y.html * igt@kms_psr2_su@page_flip: - shard-iclb: [SKIP][83] ([fdo#109642] / [fdo#111068]) -> [PASS][84] [83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb8/igt@kms_psr2_su@page_flip.html [84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb2/igt@kms_psr2_su@page_flip.html * igt@kms_psr@psr2_basic: - shard-iclb: [SKIP][85] ([fdo#109441]) -> [PASS][86] +1 similar issue [85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb4/igt@kms_psr@psr2_basic.html [86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb2/igt@kms_psr@psr2_basic.html * igt@kms_setmode@basic: - shard-hsw: [FAIL][87] ([i915#31]) -> [PASS][88] [87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-hsw1/igt@kms_setmode@basic.html [88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-hsw5/igt@kms_setmode@basic.html * igt@perf_pmu@busy-idle-check-all-vcs0: - shard-glk: [FAIL][89] -> [PASS][90] +7 similar issues [89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-glk6/igt@perf_pmu@busy-idle-check-all-vcs0.html [90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-glk2/igt@perf_pmu@busy-idle-check-all-vcs0.html * igt@perf_pmu@cpu-hotplug: - shard-glk: [TIMEOUT][91] ([fdo#111561] / [fdo#112271]) -> [PASS][92] [91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-glk6/igt@perf_pmu@cpu-hotplug.html [92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-glk7/igt@perf_pmu@cpu-hotplug.html * igt@prime_vgem@fence-wait-bsd2: - shard-iclb: [SKIP][93] ([fdo#109276]) -> [PASS][94] +17 similar issues [93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-iclb8/igt@prime_vgem@fence-wait-bsd2.html [94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-iclb1/igt@prime_vgem@fence-wait-bsd2.html #### Warnings #### * igt@gem_tiled_blits@interruptible: - shard-hsw: [FAIL][95] ([i915#694]) -> [FAIL][96] ([i915#818]) [95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-hsw6/igt@gem_tiled_blits@interruptible.html [96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-hsw2/igt@gem_tiled_blits@interruptible.html * igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy: - shard-snb: [DMESG-WARN][97] ([fdo#111870] / [i915#478]) -> [DMESG-WARN][98] ([fdo#110789] / [fdo#111870] / [i915#478]) [97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-snb4/igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy.html [98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-snb2/igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy.html * igt@gem_workarounds@suspend-resume-context: - shard-kbl: [INCOMPLETE][99] ([fdo#103665]) -> [DMESG-WARN][100] ([i915#180]) [99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-kbl3/igt@gem_workarounds@suspend-resume-context.html [100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-kbl2/igt@gem_workarounds@suspend-resume-context.html * igt@i915_pm_rpm@gem-execbuf-stress-pc8: - shard-snb: [SKIP][101] ([fdo#109271]) -> [INCOMPLETE][102] ([i915#82]) +1 similar issue [101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-snb6/igt@i915_pm_rpm@gem-execbuf-stress-pc8.html [102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-snb6/igt@i915_pm_rpm@gem-execbuf-stress-pc8.html * igt@i915_selftest@live_gt_lrc: - shard-tglb: [DMESG-FAIL][103] ([i915#1233]) -> [INCOMPLETE][104] ([i915#1233]) [103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-tglb2/igt@i915_selftest@live_gt_lrc.html [104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-tglb7/igt@i915_selftest@live_gt_lrc.html * igt@kms_content_protection@legacy: - shard-kbl: [TIMEOUT][105] ([fdo#112271]) -> [TIMEOUT][106] ([fdo#112271] / [i915#727]) [105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-kbl2/igt@kms_content_protection@legacy.html [106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-kbl6/igt@kms_content_protection@legacy.html * igt@runner@aborted: - shard-hsw: [FAIL][107] ([fdo#111012]) -> [FAIL][108] ([i915#1176]) [107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7973/shard-hsw5/igt@runner@aborted.html [108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/shard-hsw5/igt@runner@aborted.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375 [fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665 [fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927 [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271 [fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276 [fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441 [fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642 [fdo#110789]: https://bugs.freedesktop.org/show_bug.cgi?id=110789 [fdo#110841]: https://bugs.freedesktop.org/show_bug.cgi?id=110841 [fdo#111012]: https://bugs.freedesktop.org/show_bug.cgi?id=111012 [fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068 [fdo#111561]: https://bugs.freedesktop.org/show_bug.cgi?id=111561 [fdo#111870]: https://bugs.freedesktop.org/show_bug.cgi?id=111870 [fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080 [fdo#112146]: https://bugs.freedesktop.org/show_bug.cgi?id=112146 [fdo#112271]: https://bugs.freedesktop.org/show_bug.cgi?id=112271 [i915#1176]: https://gitlab.freedesktop.org/drm/intel/issues/1176 [i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118 [i915#1233]: https://gitlab.freedesktop.org/drm/intel/issues/1233 [i915#1277]: https://gitlab.freedesktop.org/drm/intel/issues/1277 [i915#129]: https://gitlab.freedesktop.org/drm/intel/issues/129 [i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180 [i915#31]: https://gitlab.freedesktop.org/drm/intel/issues/31 [i915#413]: https://gitlab.freedesktop.org/drm/intel/issues/413 [i915#46]: https://gitlab.freedesktop.org/drm/intel/issues/46 [i915#478]: https://gitlab.freedesktop.org/drm/intel/issues/478 [i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49 [i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54 [i915#561]: https://gitlab.freedesktop.org/drm/intel/issues/561 [i915#61]: https://gitlab.freedesktop.org/drm/intel/issues/61 [i915#644]: https://gitlab.freedesktop.org/drm/intel/issues/644 [i915#668]: https://gitlab.freedesktop.org/drm/intel/issues/668 [i915#677]: https://gitlab.freedesktop.org/drm/intel/issues/677 [i915#694]: https://gitlab.freedesktop.org/drm/intel/issues/694 [i915#727]: https://gitlab.freedesktop.org/drm/intel/issues/727 [i915#817]: https://gitlab.freedesktop.org/drm/intel/issues/817 [i915#818]: https://gitlab.freedesktop.org/drm/intel/issues/818 [i915#82]: https://gitlab.freedesktop.org/drm/intel/issues/82 [i915#899]: https://gitlab.freedesktop.org/drm/intel/issues/899 [i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95 Participating hosts (10 -> 8) ------------------------------ Missing (2): pig-skl-6260u pig-glk-j5005 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_5453 -> IGTPW_4195 * Piglit: piglit_4509 -> None CI-20190529: 20190529 CI_DRM_7973: 07350317e4b2be54b1de7f1e73f77875df5e43f3 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_4195: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/index.html IGT_5453: cae9a5881ed2c5be2c2518a255740b612a927f9a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4195/index.html _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] [PATCH i-g-t] tools/i915-perf: Fix compiler warning @ 2020-02-21 10:38 Petri Latvala 0 siblings, 0 replies; 4+ messages in thread From: Petri Latvala @ 2020-02-21 10:38 UTC (permalink / raw) To: igt-dev; +Cc: Petri Latvala Remove the _dump half of the pair of recorder command structs and use a plain array of uint8_ts instead. Leave the struct in a comment to act as documentation. As a drive-by fix, add include guards to i915_perf_recorder_commands.h Signed-off-by: Petri Latvala <petri.latvala@intel.com> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> --- tools/i915-perf/i915_perf_control.c | 8 ++++---- tools/i915-perf/i915_perf_recorder.c | 10 +++++----- tools/i915-perf/i915_perf_recorder_commands.h | 11 ++++++++++- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/tools/i915-perf/i915_perf_control.c b/tools/i915-perf/i915_perf_control.c index a8d0d30f..be5996c0 100644 --- a/tools/i915-perf/i915_perf_control.c +++ b/tools/i915-perf/i915_perf_control.c @@ -93,12 +93,12 @@ main(int argc, char *argv[]) sizeof(struct recorder_command_base) + strlen(dump_file) + 1; struct { struct recorder_command_base base; - struct recorder_command_dump dump; + uint8_t dump[]; } *data = malloc(total_len); data->base.command = RECORDER_COMMAND_DUMP; data->base.size = total_len; - snprintf((char *) data->dump.path, strlen(dump_file) + 1, "%s", dump_file); + snprintf((char *) data->dump, strlen(dump_file) + 1, "%s", dump_file); fwrite(data, total_len, 1, command_fifo_file); } else { @@ -107,12 +107,12 @@ main(int argc, char *argv[]) uint32_t total_len = sizeof(struct recorder_command_base) + path_len; struct { struct recorder_command_base base; - struct recorder_command_dump dump; + uint8_t dump[]; } *data = malloc(total_len); data->base.command = RECORDER_COMMAND_DUMP; data->base.size = total_len; - snprintf((char *) data->dump.path, path_len, "%s/%s", cwd, dump_file); + snprintf((char *) data->dump, path_len, "%s/%s", cwd, dump_file); fwrite(data, total_len, 1, command_fifo_file); } diff --git a/tools/i915-perf/i915_perf_recorder.c b/tools/i915-perf/i915_perf_recorder.c index 760cabf1..6bbc451e 100644 --- a/tools/i915-perf/i915_perf_recorder.c +++ b/tools/i915-perf/i915_perf_recorder.c @@ -605,7 +605,7 @@ read_command_file(struct recording_context *ctx) switch (header.command) { case RECORDER_COMMAND_DUMP: { uint32_t len = header.size - sizeof(header), offset = 0; - struct recorder_command_dump *dump = malloc(len); + uint8_t *dump = malloc(len); FILE *file; while (offset < len && @@ -616,9 +616,9 @@ read_command_file(struct recording_context *ctx) offset += ret; } - fprintf(stdout, "Writing circular buffer to %s\n", dump->path); + fprintf(stdout, "Writing circular buffer to %s\n", dump); - file = fopen((const char *) dump->path, "w+"); + file = fopen((const char *) dump, "w+"); if (file) { struct chunk chunks[2]; @@ -634,11 +634,11 @@ read_command_file(struct recording_context *ctx) fwrite(chunks[1].data, chunks[1].len, 1, file) != 1) || !write_correlation_timestamps(file, ctx->drm_fd)) { fprintf(stderr, "Unable to write circular buffer data in file '%s'\n", - dump->path); + dump); } fclose(file); } else - fprintf(stderr, "Unable to write dump file '%s'\n", dump->path); + fprintf(stderr, "Unable to write dump file '%s'\n", dump); free(dump); break; diff --git a/tools/i915-perf/i915_perf_recorder_commands.h b/tools/i915-perf/i915_perf_recorder_commands.h index 4855d80f..d9353cfa 100644 --- a/tools/i915-perf/i915_perf_recorder_commands.h +++ b/tools/i915-perf/i915_perf_recorder_commands.h @@ -20,6 +20,9 @@ * SOFTWARE. */ +#ifndef I915_PERF_RECORDER_COMMANDS_H +#define I915_PERF_RECORDER_COMMANDS_H + #include <stdint.h> #define I915_PERF_RECORD_FIFO_PATH "/tmp/.i915-perf-record" @@ -31,9 +34,15 @@ enum recorder_command { struct recorder_command_base { uint32_t command; - uint32_t size; + uint32_t size; /* size of recorder_command_base + dump in bytes */ }; +/* + The dump after the recorder_command_base header: + struct recorder_command_dump { uint8_t path[0]; }; +*/ + +#endif -- 2.20.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-02-22 18:01 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-02-20 13:12 [igt-dev] [PATCH i-g-t] tools/i915-perf: Fix compiler warning Petri Latvala 2020-02-20 14:47 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2020-02-22 18:01 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork -- strict thread matches above, loose matches on Subject: below -- 2020-02-21 10:38 [igt-dev] [PATCH i-g-t] " Petri Latvala
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox