diff options
author | Ian Rogers <[email protected]> | 2021-11-23 16:12:30 -0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-01-12 14:43:22 -0300 |
commit | 0ce05781f4905fcfbbb489519e36be71c7b0bbcc (patch) | |
tree | 537f2832a0bd5f26760c18958009ab196e321ddc /tools/perf/util/bpf-loader.c | |
parent | 6d18804b963b78dcd53851f11e9080408b3d85c2 (diff) |
perf tools: Fix SMT fallback with large core counts
strtoull can only read a 64-bit bitmap. On an AMD EPYC core_cpus may look
like:
00000000,00000000,00000000,00000001,00000000,00000000,00000000,00000001
and so the sibling wasn't spotted. Fix by writing a simple hweight string
parser.
Signed-off-by: Ian Rogers <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: John Garry <[email protected]>
Cc: Kajol Jain <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Konstantin Khlebnikov <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Clarke <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/bpf-loader.c')
0 files changed, 0 insertions, 0 deletions