perf_counter: PERF_TYPE_HW_CACHE is a hardware counter too
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 11 Jun 2009 15:56:09 +0000 (17:56 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 12 Jun 2009 12:28:51 +0000 (14:28 +0200)
commitf1a3c979059b2033d0b1cc4f9ee5c90bf92b5f94
tree912e8284ffb749c8b9a8be51551144faaaab4849
parent4c921126fe553440261f56691c5f60fbaaa486d6
perf_counter: PERF_TYPE_HW_CACHE is a hardware counter too

is_software_counter() was missing the new HW_CACHE category.

( This could have caused some counter scheduling artifacts
  with mixed sw and hw counters and counter groups. )

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_counter.h