aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/perf/xyarray.c
diff options
context:
space:
mode:
authorAlexey Budankov <[email protected]>2019-12-03 11:45:27 +0000
committerArnaldo Carvalho de Melo <[email protected]>2020-01-06 14:46:09 +0000
commit8384a2600c7ddfc875f64e160d8b423aca4e203a (patch)
treeed90ff3719bfd1e7bbcc6fa4a7716745cc596016 /tools/lib/perf/xyarray.c
parentperf mmap: Declare type for cpu mask of arbitrary length (diff)
downloadkernel-8384a2600c7ddfc875f64e160d8b423aca4e203a.tar.gz
kernel-8384a2600c7ddfc875f64e160d8b423aca4e203a.zip
perf record: Adapt affinity to machines with #CPUs > 1K
Use struct mmap_cpu_mask type for the tool's thread and mmap data buffers to overcome current 1024 CPUs mask size limitation of cpu_set_t type. Currently glibc's cpu_set_t type has an internal mask size limit of 1024 CPUs. Moving to the 'struct mmap_cpu_mask' type allows overcoming that limit. The tools bitmap API is used to manipulate objects of 'struct mmap_cpu_mask' type. Committer notes: To print the 'nbits' struct member we must use %zd, since it is a size_t, this fixes the build in some toolchains/arches. Reported-by: Andi Kleen <[email protected]> Signed-off-by: Alexey Budankov <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/perf/xyarray.c')
0 files changed, 0 insertions, 0 deletions