diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2015-09-09 10:37:01 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-09-14 12:50:28 -0300 |
commit | aa36ddd7afbb0a3db216c1391e28cd6d80ed1706 (patch) | |
tree | c4ade785d39be7b6ee6f63e2ed71f7f478a8b873 /tools/perf/util/trace-event-scripting.c | |
parent | 5d8cf721cb13be92e96f22846e5bcd31040d4d0b (diff) |
perf env: Introduce read_cpu_topology_map() method
Out of the code to write the cpu topology map in the perf.data file
header.
Now if one needs the CPU topology map for the running machine, one needs
to call perf_env__read_cpu_topology_map(perf_env) and the info will be
stored in perf_env.cpu.
For now we're using a global perf_env variable, that will have its
contents freed after we run a builtin.
v2: Check perf_env__read_cpu_topology_map() return in
write_cpu_topology() (Kan Liang)
Cc: Adrian Hunter <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions