Revert "perf tools: Default to cpu// for events v5"
authorKan Liang <kan.liang@intel.com>
Tue, 7 Oct 2014 15:08:49 +0000 (11:08 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 15 Oct 2014 19:04:33 +0000 (16:04 -0300)
commit42f60c2d63b0d3f7230d28ac37c1da4885d4ee65
tree1bf548cb6295e696b5279dfdf9f7bf893b849b3d
parentb56d5beff4825f9f216f1fc4a54a5d07d4b68b71
Revert "perf tools: Default to cpu// for events v5"

This reverts commit 50e200f07948 ("perf tools: Default to cpu// for
events v5")

The fixup cannot handle the case that
new style format(which without //) mixed with
other different formats.

For example,
group events with new style format: {mem-stores,mem-loads}
some hardware event + new style event: cycles,mem-loads
Cache event + new style event: LLC-loads,mem-loads
Raw event + new style event:
cpu/event=0xc8,umask=0x08/,mem-loads
old style event and new stytle mixture: mem-stores,cpu/mem-loads/

Signed-off-by: Kan Liang <kan.liang@intel.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1412694532-23391-2-git-send-email-kan.liang@intel.com
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