linux/tools/perf/bench
Petr Holasek b81a48ea87 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 <pholasek@redhat.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Petr Benas <pbenas@redhat.com>
Link: http://lkml.kernel.org/r/1380821325-4017-1-git-send-email-pholasek@redhat.com
Signed-off-by: Petr Benas <pbenas@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-10-11 12:17:38 -03:00
..
bench.h perf tools: Fix LIBNUMA build with glibc 2.12 and older. 2013-03-14 08:06:21 -03:00
mem-memcpy-arch.h tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORT 2013-10-09 08:48:28 +02:00
mem-memcpy-x86-64-asm-def.h perf bench: Also allow measuring alternative memcpy implementations 2012-01-24 19:51:01 -02:00
mem-memcpy-x86-64-asm.S Merge branch 'perf/urgent' into perf/core 2012-02-06 19:11:02 -02:00
mem-memcpy.c tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORT 2013-10-09 08:48:28 +02:00
mem-memset-arch.h tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORT 2013-10-09 08:48:28 +02:00
mem-memset-x86-64-asm-def.h perf bench: Also allow measuring memset() 2012-01-24 20:25:32 -02:00
mem-memset-x86-64-asm.S perf tool: Fix perf stack to non executable on x86_64 2012-02-06 19:14:17 -02:00
mem-memset.c tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORT 2013-10-09 08:48:28 +02:00
numa.c perf bench: Fix failing assertions in numa bench 2013-10-11 12:17:38 -03:00
sched-messaging.c perf tools: Use __maybe_used for unused variables 2012-09-11 12:19:15 -03:00
sched-pipe.c perf bench sched: Add --threaded option 2013-10-11 12:17:25 -03:00