libperf: Add events to perf/event.h
Status from this message: The following commit has been merged into the perf/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | libperf: Add mmap_event to perf/event.htools/ tools/ tools/ +1 more | +24 | 0 replies | |
| 2/12 | libperf: Add mmap2_event to perf/event.htools/ tools/ tools/ | +18 | 0 replies | |
| 3/12 | libperf: Add comm_event to perf/event.htools/ tools/ | +6 | 0 replies | |
| 4/12 | libperf: Add namespaces_event to perf/event.htools/ tools/ | +7 | 0 replies | |
| 5/12 | libperf: Add fork_event to perf/event.htools/ tools/ tools/ | +8 | 0 replies | |
| 6/12 | libperf: Add lost_event to perf/event.htools/ tools/ tools/ +3 more | +11 | 0 replies | |
| 7/12 | libperf: Add lost_samples_event to perf/event.htools/ tools/ tools/ | +6 | 0 replies | |
| 8/12 | libperf: Add read_event to perf/event.htools/ tools/ tools/ | +16 | 0 replies | |
| 9/12 | libperf: Add throttle_event to perf/event.htools/ tools/ tools/ | +9 | 0 replies | |
| 10/12 | libperf: Add ksymbol_event to perf/event.htools/ tools/ tools/ | +14 | 0 replies | |
| 11/12 | libperf: Add bpf_event to perf/event.htools/ tools/ | +11 | 0 replies | |
| 12/12 | libperf: Add sample_event to perf/event.htools/ tools/ tools/ +1 more | +10 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/12] libperf: Add events to perf/event.h
hi,
as a preparation for sampling libperf interface, moving event definitions into the library header. Moving just the kernel non-AUX events now.
In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions.
Perf added 'u*' types mainly to ease up printing __u64 values as stated in the linux/types.h comment:
/*
* We define u64 as uint64_t for every architecture
* so that we can print it with "%"PRIx64 without getting warnings. *
* typedef __u64 u64;
* typedef __s64 s64;
*/
Adding and using new PRI_lu64 and PRI_lx64 macros to be used for that. Using extra '_' to ease up the reading and differentiate them from standard PRI*64 macros.
It's also available in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/fixes
thanks,
jirka
---
Jiri Olsa (12):
libperf: Add mmap_event to perf/event.h
libperf: Add mmap2_event to perf/event.h
libperf: Add comm_event to perf/event.h
libperf: Add namespaces_event to perf/event.h
libperf: Add fork_event to perf/event.h
libperf: Add lost_event to perf/event.h
libperf: Add lost_samples_event to perf/event.h
libperf: Add read_event to perf/event.h
libperf: Add throttle_event to perf/event.h
libperf: Add ksymbol_event to perf/event.h
libperf: Add bpf_event to perf/event.h
libperf: Add sample_event to perf/event.h
tools/perf/builtin-sched.c | 2 +- tools/perf/lib/include/perf/event.h | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/perf/util/event.c | 12 ++++++------ tools/perf/util/event.h | 104 +++----------------------------------------------------------------------------------------------------- tools/perf/util/evlist.c | 2 +- tools/perf/util/evsel.c | 8 ++++---- tools/perf/util/machine.c | 4 ++-- tools/perf/util/python.c | 14 +++++++------- tools/perf/util/session.c | 8 ++++---- 9 files changed, 140 insertions(+), 126 deletions(-) create mode 100644 tools/perf/lib/include/perf/event.h