aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorAndi Kleen <[email protected]>2016-05-20 00:09:55 +0000
committerIngo Molnar <[email protected]>2016-06-03 07:41:21 +0000
commit70b8301f6b8f7bc053377a9cbd0c4e42e29d9807 (patch)
treed29e04218ccc32b9e7da313c398a86a4c3b52c50 /tools/perf/scripts/python/netdev-times.py
parenttools/perf: Handle -EOPNOTSUPP for sampling events (diff)
downloadkernel-70b8301f6b8f7bc053377a9cbd0c4e42e29d9807.tar.gz
kernel-70b8301f6b8f7bc053377a9cbd0c4e42e29d9807.zip
x86/topology: Add topology_max_smt_threads()
For SMT specific workarounds it is useful to know if SMT is active on any online CPU in the system. This currently requires a loop over all online CPUs. Add a global variable that is updated with the maximum number of smt threads on any CPU on online/offline, and use it for topology_max_smt_threads() The single call is easier to use than a loop. Not exported to user space because user space already can use the existing sibling interfaces to find this out. Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vince Weaver <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions