Skip to content

Commit d38d272

Browse files
olsajirigregkh
authored andcommitted
perf tools: Synthesize GROUP_DESC feature in pipe mode
[ Upstream commit e8fedff ] Stephan reported, that pipe mode does not carry the group information and thus the piped report won't display the grouped output for following command: # perf record -e '{cycles,instructions,branches}' -a sleep 4 | perf report It has no idea about the group setup, so it will display events separately: # Overhead Command Shared Object ... # ........ ............... ....................... # 6.71% swapper [kernel.kallsyms] 2.28% offlineimap libpython2.7.so.1.0 0.78% perf [kernel.kallsyms] ... Fix GROUP_DESC feature record to be synthesized in pipe mode, so the report output is grouped if there are groups defined in record: # Overhead Command Shared ... # ........................ ............... ....... # 7.57% 0.16% 0.30% swapper [kernel 1.87% 3.15% 2.46% offlineimap libpyth 1.33% 0.00% 0.00% perf [kernel ... Reported-by: Stephane Eranian <[email protected]> Signed-off-by: Jiri Olsa <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Tested-by: Stephane Eranian <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: David Ahern <[email protected]> Cc: David Carrillo-Cisneros <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d074912 commit d38d272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/util/header.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2209,7 +2209,7 @@ static const struct feature_ops feat_ops[HEADER_LAST_FEATURE] = {
22092209
FEAT_OPR(NUMA_TOPOLOGY, numa_topology, true),
22102210
FEAT_OPN(BRANCH_STACK, branch_stack, false),
22112211
FEAT_OPR(PMU_MAPPINGS, pmu_mappings, false),
2212-
FEAT_OPN(GROUP_DESC, group_desc, false),
2212+
FEAT_OPR(GROUP_DESC, group_desc, false),
22132213
FEAT_OPN(AUXTRACE, auxtrace, false),
22142214
FEAT_OPN(STAT, stat, false),
22152215
FEAT_OPN(CACHE, cache, true),

0 commit comments

Comments
 (0)