]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix PMU format parsing test failure
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Thu, 17 Jan 2013 17:11:30 +0000 (09:11 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 24 Jan 2013 19:40:47 +0000 (16:40 -0300)
commit0e54c8ec4a0754408b9558853d18a0b5c1f148a8
tree1c51d41a40fd6088aeae65a6bdb1e25c26ff8da0
parentd8924a9c8ea57c0c17722686d4bb2b08c5741422
perf tools: Fix PMU format parsing test failure

On POWER, the 'perf format parsing' test always fails.

Looks like it is because memset() is being passed number of longs rather
than number of bytes. It is interesting that the test always passes on
my x86 box.

With this patch, the test passes on POWER and continues to pass on x86.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Anton Blanchard <anton@au1.ibm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@ozlabs.org
Link: http://lkml.kernel.org/r/20130117172814.GA18882@us.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/include/linux/bitops.h
tools/perf/util/pmu.c