diff options
author | Jiri Olsa <jolsa@kernel.org> | 2019-08-25 20:17:52 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-27 00:39:10 +0200 |
commit | b1fcd190bb3fc1234dca60390d171a4cc75b21b2 (patch) | |
tree | c8e788af27b9b5b1f4dd366a7ac2435343ed472b /tools/perf/util/event.h | |
parent | libperf: Add PERF_RECORD_BPF_EVENT 'struct bpf_event' to perf/event.h (diff) | |
download | linux-b1fcd190bb3fc1234dca60390d171a4cc75b21b2.tar.xz linux-b1fcd190bb3fc1234dca60390d171a4cc75b21b2.zip |
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 <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-13-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r-- | tools/perf/util/event.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 091a0690a280..dee0ee57efc2 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -37,11 +37,6 @@ /* perf sample has 16 bits size limit */ #define PERF_SAMPLE_MAX_SIZE (1 << 16) -struct sample_event { - struct perf_event_header header; - u64 array[]; -}; - struct regs_dump { u64 abi; u64 mask; |