summaryrefslogtreecommitdiff
path: root/tools/i915-perf/i915_perf_recorder_commands.h
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2020-02-21 12:38:29 +0200
committerPetri Latvala <petri.latvala@intel.com>2020-02-26 11:31:04 +0200
commit2684f182424582c66e67bcbbda77cd60901627b8 (patch)
treed16822b4133cb1d955a17ee1db838bf7e06cc699 /tools/i915-perf/i915_perf_recorder_commands.h
parentffa98bc80f2f76b212d10b72ef7b93f842dbcb5a (diff)
tools/i915-perf: Fix compiler warning
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>
Diffstat (limited to 'tools/i915-perf/i915_perf_recorder_commands.h')
-rw-r--r--tools/i915-perf/i915_perf_recorder_commands.h11
1 files changed, 10 insertions, 1 deletions
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