aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorDon Zickus <[email protected]>2014-04-07 18:55:21 +0000
committerJiri Olsa <[email protected]>2014-04-22 15:39:12 +0000
commit7780c25bae59fd042281710f5e1243268e2c18dc (patch)
treed829ae6b0a4f48152326e79c0927f52f23e4a660 /tools/perf/builtin-annotate.c
parentperf tools: Fix pmu object compilation error (diff)
downloadkernel-7780c25bae59fd042281710f5e1243268e2c18dc.tar.gz
kernel-7780c25bae59fd042281710f5e1243268e2c18dc.zip
perf tools: Allow ability to map cpus to nodes easily
This patch figures out the max number of cpus and nodes that are on the system and creates a map of cpu to node. This allows us to provide a cpu and quickly get the node associated with it. It was mostly copied from builtin-kmem.c and tweaked slightly to use less memory (use possible cpus instead of max). It also calculates the max number of nodes. Signed-off-by: Don Zickus <[email protected]> Reviewed-by: Namhyung Kim <[email protected]> Link: http://lkml.kernel.org/r/[email protected] [ Removing out label code in init_cpunode_map ] [ Adding check for snprintf error ] [ Removing unneeded returns ] Signed-off-by: Jiri Olsa <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions