diff options
author | Jin Yao <yao.jin@linux.intel.com> | 2018-05-21 22:57:44 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-05-21 14:40:54 -0300 |
commit | e2bdbe80a0b7dea9ba73582701b8a67c01e1da4f (patch) | |
tree | ba58f3373ad835f91a99ace73487b156128c4dc2 /scripts | |
parent | 2996123e7e589d78e73cfeb7e7f14d49127eb1b0 (diff) | |
download | linux-e2bdbe80a0b7dea9ba73582701b8a67c01e1da4f.tar.gz linux-e2bdbe80a0b7dea9ba73582701b8a67c01e1da4f.tar.bz2 linux-e2bdbe80a0b7dea9ba73582701b8a67c01e1da4f.zip |
perf evlist: Introduce force_leader() method
For non-explicit group (e.g. those created with -e '{eventA,eventB}'),
'perf report' supports a option '--group' which can enable group output.
We also need to support 'perf annotate' with the same '--group'.
Create a new function perf_evlist__force_leader() which contains common
code to force setting the group leader.
Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1526914666-31839-2-git-send-email-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions