perf evlist: Add --group option
authorNamhyung Kim <namhyung.kim@lge.com>
Tue, 22 Jan 2013 09:09:47 +0000 (18:09 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 31 Jan 2013 16:07:49 +0000 (13:07 -0300)
commite6ab07d027d47e55d8a5c0f33b16dfdd3e18c96f
treee53b70cb5b0517e1783cd10f888b775a4d8f25f3
parent00c7e1f10c6b8ae8a031f5c6a58ecd15d20c52cb
perf evlist: Add --group option

Add '-g/--group' option for showing event groups.  For simplicity it is
currently not compatible with other options.

  $ perf evlist --group
  {ref-cycles,cycles}

  $ perf evlist
  ref-cycles
  cycles

Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1358845787-1350-20-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-evlist.txt
tools/perf/builtin-evlist.c
tools/perf/util/evsel.c