perf tools: Fix perf regs mask generation
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Thu, 28 Apr 2016 09:31:10 +0000 (15:01 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 11:54:06 +0000 (21:54 +1000)
commitf47822078dece7189cad0a5f472f148e5e916736
tree5a8b4aa8b1123d1d1fb28dd7c97fb3edb795ed60
parentc4522469e6418fb547fbcd9d3aeb73bea0f6f859
perf tools: Fix perf regs mask generation

On some architectures (powerpc in particular), the number of registers
exceeds what can be represented in an integer bitmask. Ensure we
generate the proper bitmask on such platforms.

Fixes: 71ad0f5e4 ("perf tools: Support for DWARF CFI unwinding on post processing")
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/perf/util/perf_regs.c