libperf: Add PERF_RECORD_COMM 'struct comm_event' to perf/event.h
authorJiri Olsa <jolsa@kernel.org>
Sun, 25 Aug 2019 18:17:43 +0000 (20:17 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 26 Aug 2019 22:39:09 +0000 (19:39 -0300)
Moving comm_event event definition into libperf's event.h
header include.

In order to keep libperf simple, we switch 'u64/u32/u16/u8'
types used events to their generic '__u*' versions.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190825181752.722-4-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/lib/include/perf/event.h
tools/perf/util/event.h

index c82e0c2c004b84692b43f8f5a15ec3e3a3795653..3729a7d9253e8b7d6fc93da9458e425396249a92 100644 (file)
@@ -30,4 +30,10 @@ struct mmap2_event {
        char                     filename[PATH_MAX];
 };
 
+struct comm_event {
+       struct perf_event_header header;
+       __u32                    pid, tid;
+       char                     comm[16];
+};
+
 #endif /* __LIBPERF_EVENT_H */
index af252be8ca5ba2c0a5de473d28e0467a492402a1..e8973a7832679ddbf29e1a3f3436fce0c9423a6d 100644 (file)
 #define PRI_lx64 PRIx64
 #endif
 
-struct comm_event {
-       struct perf_event_header header;
-       u32 pid, tid;
-       char comm[16];
-};
-
 struct namespaces_event {
        struct perf_event_header header;
        u32 pid, tid;