aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorHarish <[email protected]>2020-06-09 13:44:23 +0530
committerMichael Ellerman <[email protected]>2020-07-29 22:30:34 +1000
commit854eb5022be04f81e318765f089f41a57c8e5d83 (patch)
treeabdfe6dce75cf9fb0818cf64bf2a030f290364d9 /tools/perf/util/scripting-engines/trace-event-perl.c
parentcf1ae052e073c7ef6cf1a783a6427f7228253bd3 (diff)
selftests/powerpc: Fix CPU affinity for child process
On systems with large number of cpus, test fails trying to set affinity by calling sched_setaffinity() with smaller size for affinity mask. This patch fixes it by making sure that the size of allocated affinity mask is dependent on the number of CPUs as reported by get_nprocs(). Fixes: 00b7ec5c9cf3 ("selftests/powerpc: Import Anton's context_switch2 benchmark") Reported-by: Shirisha Ganta <[email protected]> Signed-off-by: Sandipan Das <[email protected]> Signed-off-by: Harish <[email protected]> Reviewed-by: Kamalesh Babulal <[email protected]> Reviewed-by: Satheesh Rajendran <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions