]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
perf stat: Cache aggregated map entries in extra cpumap
authorJiri Olsa <jolsa@kernel.org>
Sun, 25 Oct 2015 14:51:18 +0000 (15:51 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Oct 2015 18:08:07 +0000 (15:08 -0300)
commit1e5a29318ba8506f52a8d727b5c6a53143f9882a
tree30dc329ee8052a0525bf69947035a34bd340fb81
parent2322f573f8131da9c6d1fab01fe0a0c2c23aa549
perf stat: Cache aggregated map entries in extra cpumap

Currently any time we need to access socket or core id for given cpu, we
access the sysfs topology file.

Adding a cpus_aggr_map cpu_map to cache those entries.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Kan Liang <kan.liang@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1445784728-21732-3-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c