aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorPetr Holasek <[email protected]>2013-10-03 19:28:45 +0200
committerArnaldo Carvalho de Melo <[email protected]>2013-10-11 12:17:38 -0300
commitb81a48ea877e1a104dace1392d92f708ff208f97 (patch)
tree4d0d2a5b92470e549f6c93085f8fa9782a56d5fc /tools/perf/util/scripting-engines/trace-event-python.c
parentf3c236b0c7a84e5d59cc639a1673a20b0a59ecc0 (diff)
perf bench: Fix failing assertions in numa bench
Patch adds more subtle handling of -C and -N parameters in parse_{cpu,node}_setup_list() functions when there isn't enough NUMA nodes or CPUs present. Instead of assertion and terminating benchmark, partial test is skipped with error message and perf will continue to the next one. Fixed problem can be easily reproduced on machine with only one NUMA node: # Running numa/mem benchmark... # Running main, "perf bench numa mem -a" ... # Running RAM-bw-remote, "perf bench numa mem -p 1 -t 1 -P 1024 -C 0 -M 1 -s perf: bench/numa.c:622: parse_setup_node_list: Assertion `!(bind_node_0 < 0 || bind_node_0 >= g->p.nr_nodes)' failed. Aborted Signed-off-by: Petr Holasek <[email protected]> Acked-by: Ingo Molnar <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Petr Benas <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Petr Benas <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions