perf cpu_map: Add cpu_map user level event
authorJiri Olsa <[email protected]>
Sun, 25 Oct 2015 14:51:23 +0000 (15:51 +0100)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 17 Dec 2015 17:38:17 +0000 (14:38 -0300)
commit6640b6c227fc85fd8bdcc4a31239a04450487f6a
tree940373398494f0033409dbb644b6debb06717595
parentec7fa596f514b76a5f1003ffe9e6dfb50cb9e811
perf cpu_map: Add cpu_map user level event

Adding the cpu_map event to pass/store cpu maps as data in
a pipe/perf.data.

We store maps in 2 formats:
  - list of cpus
  - mask of cpus

The format that takes less space is selected transparently in the
following patch.

The interface is made generic, so we could add the cpumap event data
into another event in the following patches.

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]
[ cpu_map_data_cpus -> cpu_map_entries, cpu_map_data_mask -> cpu_map_mask ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/event.c
tools/perf/util/event.h
tools/perf/util/session.c
tools/perf/util/tool.h