Skip to content

libperf: Add rest of events to perf/event.h

Jiri Olsa lkml 1 version Applied

Status from this message: Thanks, applied to perf/core.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/23libperf: Add PERF_RECORD_HEADER_ATTR 'struct attr_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+6 -60 replies
2/23libperf: Add PERF_RECORD_CPU_MAP 'struct cpu_map_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+26 -260 replies
3/23libperf: Add PERF_RECORD_EVENT_UPDATE 'struct event_update_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h tools/perf/util/header.c+23 -240 replies
4/23libperf: Add PERF_RECORD_HEADER_EVENT_TYPE 'struct event_type_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+12 -120 replies
5/23libperf: Add PERF_RECORD_HEADER_TRACING_DATA 'struct tracing_data_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+5 -50 replies
6/23libperf: Add PERF_RECORD_HEADER_BUILD_ID 'struct build_id_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+8 -70 replies
7/23libperf: Add PERF_RECORD_ID_INDEX 'struct id_index_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h tools/perf/util/session.c+19 -170 replies
8/23libperf: Add PERF_RECORD_AUXTRACE_INFO 'struct auxtrace_info_event' to perf/event.htools/perf/arch/x86/util/intel-pt.c tools/perf/lib/include/perf/event.h tools/perf/util/arm-spe.c +3 more+12 -120 replies
9/23libperf: Add PERF_RECORD_AUXTRACE 'struct auxtrace_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/auxtrace.c tools/perf/util/event.h+12 -120 replies
10/23libperf: Add PERF_RECORD_AUXTRACE_ERROR 'struct auxtrace_error_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/auxtrace.c tools/perf/util/event.h+16 -160 replies
11/23libperf: Add PERF_RECORD_AUX 'struct aux_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.c tools/perf/util/event.h+8 -80 replies
12/23libperf: Add PERF_RECORD_ITRACE_START 'struct itrace_start_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+6 -50 replies
13/23libperf: Add PERF_RECORD_SWITCH 'struct context_switch_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+6 -60 replies
14/23libperf: Add PERF_RECORD_THREAD_MAP 'struct thread_map_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+11 -110 replies
15/23libperf: Add PERF_RECORD_STAT_CONFIG 'struct stat_config_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.c tools/perf/util/event.h+19 -190 replies
16/23libperf: Add PERF_RECORD_STAT 'struct stat_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h tools/perf/util/stat.c+19 -190 replies
17/23libperf: Add PERF_RECORD_STAT_ROUND 'struct stat_round_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h tools/perf/util/stat.c+7 -70 replies
18/23libperf: Add PERF_RECORD_TIME_CONV 'struct time_conv_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+7 -70 replies
19/23libperf: Add PERF_RECORD_HEADER_FEATURE 'struct feature_event' to perf/event.htools/perf/builtin-report.c tools/perf/lib/include/perf/event.h tools/perf/util/event.h+7 -70 replies
20/23libperf: Add PERF_RECORD_COMPRESSED 'struct compressed_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+5 -50 replies
21/23libperf: Add 'union perf_event' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+36 -360 replies
22/23libperf: Rename the PERF_RECORD_ structs to have a "perf" prefixtools/perf/arch/arm/util/cs-etm.c tools/perf/arch/arm64/util/arm-spe.c tools/perf/arch/s390/util/auxtrace.c +30 more+193 -1930 replies
23/23libperf: Move 'enum perf_user_event_type' to perf/event.htools/perf/lib/include/perf/event.h tools/perf/util/event.h+23 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/23] libperf: Add rest of events to perf/event.h

hi,
to export 'union perf_event' we need to export the rest of events.

It's also available in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/fixes

thanks,
jirka

---
Jiri Olsa (23):
libperf: Add PERF_RECORD_HEADER_ATTR 'struct attr_event' to perf/event.h
libperf: Add PERF_RECORD_CPU_MAP 'struct cpu_map_event' to perf/event.h
libperf: Add PERF_RECORD_EVENT_UPDATE 'struct event_update_event' to perf/event.h
libperf: Add PERF_RECORD_HEADER_EVENT_TYPE 'struct event_type_event' to perf/event.h
libperf: Add PERF_RECORD_HEADER_TRACING_DATA 'struct tracing_data_event' to perf/event.h
libperf: Add PERF_RECORD_HEADER_BUILD_ID 'struct build_id_event' to perf/event.h
libperf: Add PERF_RECORD_ID_INDEX 'struct id_index_event' to perf/event.h
libperf: Add PERF_RECORD_AUXTRACE_INFO 'struct auxtrace_info_event' to perf/event.h
libperf: Add PERF_RECORD_AUXTRACE 'struct auxtrace_event' to perf/event.h
libperf: Add PERF_RECORD_AUXTRACE_ERROR 'struct auxtrace_error_event' to perf/event.h
libperf: Add PERF_RECORD_AUX 'struct aux_event' to perf/event.h
libperf: Add PERF_RECORD_ITRACE_START 'struct itrace_start_event' to perf/event.h
libperf: Add PERF_RECORD_SWITCH 'struct context_switch_event' to perf/event.h
libperf: Add PERF_RECORD_THREAD_MAP 'struct thread_map_event' to perf/event.h
libperf: Add PERF_RECORD_STAT_CONFIG 'struct stat_config_event' to perf/event.h
libperf: Add PERF_RECORD_STAT 'struct stat_event' to perf/event.h
libperf: Add PERF_RECORD_STAT_ROUND 'struct stat_round_event' to perf/event.h
libperf: Add PERF_RECORD_TIME_CONV 'struct time_conv_event' to perf/event.h
libperf: Add PERF_RECORD_HEADER_FEATURE 'struct feature_event' to perf/event.h
libperf: Add PERF_RECORD_COMPRESSED 'struct compressed_event' to perf/event.h
libperf: Add 'union perf_event' to perf/event.h
libperf: Rename the PERF_RECORD_ structs to have a "perf" prefix
libperf: Move 'enum perf_user_event_type' to perf/event.h

 tools/perf/arch/arm/util/cs-etm.c    |   4 +--
 tools/perf/arch/arm64/util/arm-spe.c |   2 +-
 tools/perf/arch/s390/util/auxtrace.c |   2 +-
 tools/perf/arch/x86/util/intel-bts.c |   2 +-
 tools/perf/arch/x86/util/intel-pt.c  |   4 +--
 tools/perf/arch/x86/util/tsc.c       |   2 +-
 tools/perf/builtin-record.c          |   4 +--
 tools/perf/builtin-report.c          |   2 +-
 tools/perf/builtin-script.c          |   2 +-
 tools/perf/builtin-stat.c            |   2 +-
 tools/perf/lib/include/perf/event.h  | 273 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/tests/cpumap.c            |  12 ++++----
 tools/perf/tests/event_update.c      |  16 +++++-----
 tools/perf/tests/stat.c              |   8 ++---
 tools/perf/tests/thread-map.c        |   2 +-
 tools/perf/util/arm-spe.c            |   6 ++--
 tools/perf/util/auxtrace.c           |  20 ++++++------
 tools/perf/util/auxtrace.h           |   8 ++---
 tools/perf/util/build-id.c           |   2 +-
 tools/perf/util/cpumap.c             |   6 ++--
 tools/perf/util/cpumap.h             |   4 +--
 tools/perf/util/cs-etm.c             |   2 +-
 tools/perf/util/event.c              |  38 +++++++++++------------
 tools/perf/util/event.h              | 278 +++--------------------------------------------------------------------------------------------------------------------------------------------------------------------
 tools/perf/util/header.c             |  56 +++++++++++++++++-----------------
 tools/perf/util/intel-bts.c          |   6 ++--
 tools/perf/util/intel-pt.c           |  12 ++++----
 tools/perf/util/python.c             |   4 +--
 tools/perf/util/s390-cpumsf.c        |   4 +--
 tools/perf/util/session.c            |  28 ++++++++---------
 tools/perf/util/session.h            |   2 +-
 tools/perf/util/stat.c               |  12 ++++----
 tools/perf/util/thread_map.c         |   4 +--
 tools/perf/util/thread_map.h         |   4 +--
 34 files changed, 418 insertions(+), 415 deletions(-)