perf cpu_map: Add cpu_map event synthesize function
authorJiri Olsa <[email protected]>
Sun, 25 Oct 2015 14:51:24 +0000 (15:51 +0100)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 17 Dec 2015 17:38:18 +0000 (14:38 -0300)
commit6c872901af07c41745f1abf5ceac9b3b4d9cdbb6
tree1ec7eb281b3865ce0165354a9310a078da570969
parent6640b6c227fc85fd8bdcc4a31239a04450487f6a
perf cpu_map: Add cpu_map event synthesize function

Introduce the perf_event__synthesize_cpu_map function to synthesize a
struct cpu_map.

Added generic interface:
  cpu_map_data__alloc
  cpu_map_data__synthesize

to make the cpu_map synthesizing usable for other events.

Signed-off-by: Jiri Olsa <[email protected]>
Tested-by: Kan Liang <[email protected]>
Cc: David Ahern <[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]>
tools/perf/tests/Build
tools/perf/tests/builtin-test.c
tools/perf/tests/cpumap.c [new file with mode: 0644]
tools/perf/tests/tests.h
tools/perf/util/event.c
tools/perf/util/event.h