aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorShai Fultheim <[email protected]>2012-04-20 01:09:11 +0300
committerIngo Molnar <[email protected]>2012-05-07 15:27:37 +0200
commitddc5681ed33a279fdc188e98e71f0c539f08c6e6 (patch)
treee8c70c59ed3c4c0a466e39e0a3cc26e7fe991351 /tools/perf/util/scripting-engines/trace-event-python.c
parentfebb72a6e4cc6c8cffcc1ea649a3fb364f1ea432 (diff)
x86/cache_info: Fix setup of l2/l3 ids
On some architectures (such as vSMP), it is possible to have CPUs with a different number of cores sharing the same cache. The current implementation implicitly assumes that all CPUs will have the same number of cores sharing caches, and as a result, different CPUs can end up with the same l2/l3 ids. Fix this by masking out the shared cache bits, instead of shifting the APICID. By doing so, it is guaranteed that the generated cache ids are always unique. Signed-off-by: Shai Fultheim <[email protected]> [ rebased, simplified, and reworded the commit message] Signed-off-by: Ido Yariv <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Andreas Herrmann <[email protected]> Cc: Mike Travis <[email protected]> Cc: Dave Jones <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions