diff options
author | Don Zickus <dzickus@redhat.com> | 2014-04-07 14:55:21 -0400 |
---|---|---|
committer | Jiri Olsa <jolsa@redhat.com> | 2014-04-22 17:39:12 +0200 |
commit | 7780c25bae59fd042281710f5e1243268e2c18dc (patch) | |
tree | d829ae6b0a4f48152326e79c0927f52f23e4a660 /usr/.gitignore | |
parent | 7c2f8164e5415ef48954f6929f4acae5764afdb4 (diff) | |
download | blackbird-op-linux-7780c25bae59fd042281710f5e1243268e2c18dc.tar.gz blackbird-op-linux-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 <dzickus@redhat.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1396896924-129847-2-git-send-email-dzickus@redhat.com
[ Removing out label code in init_cpunode_map ]
[ Adding check for snprintf error ]
[ Removing unneeded returns ]
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Diffstat (limited to 'usr/.gitignore')
0 files changed, 0 insertions, 0 deletions