]> git.karo-electronics.de Git - linux-beck.git/commit
perf tools: Default to cpu// for events v5
authorAndi Kleen <ak@linux.intel.com>
Sat, 20 Apr 2013 18:02:28 +0000 (11:02 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Jul 2013 16:53:52 +0000 (13:53 -0300)
commit50e200f07948400694238e08e7add73df5ba8f83
tree91a2b5a0e0d06d1d7690bac23077d7d4c7c42c11
parent380512345e13c3af64e59627f1b993c4faa94a84
perf tools: Default to cpu// for events v5

When an event fails to parse and it's not in a new style format,
try to parse it again as a cpu event.

This allows to use sysfs exported events directly without //, so you can use

perf record -e mem-loads ...

instead of

perf record -e cpu/mem-loads/

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1366480949-32292-1-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/include/linux/string.h
tools/perf/util/parse-events.c
tools/perf/util/string.c