diff options
| author | Jiri Olsa <[email protected]> | 2019-08-25 20:17:52 +0200 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-08-26 19:39:10 -0300 |
| commit | b1fcd190bb3fc1234dca60390d171a4cc75b21b2 (patch) | |
| tree | c8e788af27b9b5b1f4dd366a7ac2435343ed472b /tools/perf/lib/include | |
| parent | b1b510142283c02991f48b27d399852364f7d89b (diff) | |
libperf: Add PERF_RECORD_SAMPLE 'struct sample_event' to perf/event.h
Move the PERF_RECORD_SAMPLE event definition to 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 <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Michael Petlan <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/lib/include')
| -rw-r--r-- | tools/perf/lib/include/perf/event.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/lib/include/perf/event.h b/tools/perf/lib/include/perf/event.h index 585c9d82dba3..e768a2dfbe53 100644 --- a/tools/perf/lib/include/perf/event.h +++ b/tools/perf/lib/include/perf/event.h @@ -104,4 +104,9 @@ struct bpf_event { __u8 tag[BPF_TAG_SIZE]; // prog tag }; +struct sample_event { + struct perf_event_header header; + __u64 array[]; +}; + #endif /* __LIBPERF_EVENT_H */ |