linux/tools/perf/bench
Jakub Jelen 3c52b658b8 perf bench numa: Fix assertion for nodes bitfield
Comparing bits and bytes in numa benchmark assertion

I hit the issue on two socket Power8 machine presenting its numa nodes
as 0,1,16,17 (according to numactl). Therefore I got error (and hang of
parent process):

    perf: bench/numa.c:296: bind_to_memnode: Assertion `!(g->p.nr_nodes > (int)sizeof(nodemask))' failed.

This is obviously false positive. We can fit all the 18 nodes into
bitfield of 8 bytes (long on 64b architecture).

Signed-off-by: Jakub Jelen <jakuje@gmail.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jakub Jelen <jjelen@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: trivial@kernel.org
Link: http://lkml.kernel.org/r/1458388687-24421-1-git-send-email-jakuje@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-03-21 17:46:57 -03:00
..
bench.h perf bench futex: Add lock_pi stresser 2015-07-20 17:49:51 -03:00
Build perf bench: Rename 'mem-memcpy.c' => 'mem-functions.c' 2015-10-19 15:39:39 -03:00
futex-hash.c perf subcmd: Create subcmd library 2015-12-17 14:27:14 -03:00
futex-lock-pi.c perf subcmd: Create subcmd library 2015-12-17 14:27:14 -03:00
futex-requeue.c perf subcmd: Create subcmd library 2015-12-17 14:27:14 -03:00
futex-wake-parallel.c perf subcmd: Create subcmd library 2015-12-17 14:27:14 -03:00
futex-wake.c perf subcmd: Create subcmd library 2015-12-17 14:27:14 -03:00
futex.h perf bench futex: Add lock_pi stresser 2015-07-20 17:49:51 -03:00
mem-functions.c perf subcmd: Create subcmd library 2015-12-17 14:27:14 -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: Fix mem* routines usage after alternatives change 2015-03-03 18:01:10 +01:00
mem-memcpy-x86-64-asm.S perf bench mem: Prepare the x86-64 build for upstream memcpy_mcsafe() changes 2016-03-09 10:40:01 +01: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: Fix mem* routines usage after alternatives change 2015-03-03 18:01:10 +01:00
mem-memset-x86-64-asm.S perf/bench: Fix mem* routines usage after alternatives change 2015-03-03 18:01:10 +01:00
numa.c perf bench numa: Fix assertion for nodes bitfield 2016-03-21 17:46:57 -03:00
sched-messaging.c perf subcmd: Create subcmd library 2015-12-17 14:27:14 -03:00
sched-pipe.c perf subcmd: Create subcmd library 2015-12-17 14:27:14 -03:00