Skip to contentSkip to conversation

perf report --no-children chopping off tracepoint fields

DISCUSSION Arnaldo Carvalho de Melo 2 participants 2 messages Apr 7, 2016 – Apr 8, 2016

lore
Share & tools
lore
#0 lore raw

Hi Namhyung,

If I do:

  # perf record --call dwarf -p 2519 -e syscalls:sys_enter_open

And then run plain 'perf report' I get this on the TUI, perfect:

Samples: 1 of event 'syscalls:sys_enter_open', Event count (approx.): 1
Children Self Trace output
+ 100.00% 100.00% filename: 0x7efe0cc9a96a, flags: 0x00000000, mode: 0x7fffa3da07f0

But if I use 'perf report --no-children' I get it chopped off at the start of the first tp arg value:

Samples: 1 of event 'syscalls:sys_enter_open', Event count (approx.): 1
Overhead Trace output
+ 100.00% filename: 0x

:-\

- Arnaldo

#1 lore raw

Hi Arnaldo,

Quoted 12 lines · Arnaldo Carvalho de Melo

Hi Namhyung,

If I do:

  # perf record --call dwarf -p 2519 -e syscalls:sys_enter_open

And then run plain 'perf report' I get this on the TUI, perfect:

Samples: 1 of event 'syscalls:sys_enter_open', Event count (approx.): 1
Children Self Trace output
+ 100.00% 100.00% filename: 0x7efe0cc9a96a, flags: 0x00000000, mode: 0x7fffa3da07f0

Quoted 8 lines

But if I use 'perf report --no-children' I get it chopped off at the start of the first tp arg value:

Samples: 1 of event 'syscalls:sys_enter_open', Event count (approx.): 1
Overhead Trace output
+ 100.00% filename: 0x

:-\

Hmm.. I cannot reproduce the problem. All (non-filtered) entries have trace_output should calculate the column length in the output_resort() -> hists__calc_col_len().

Btw it seems the --children is meaningless if symbol or dso sort keys are not used.

Thanks,
Namhyung