perf tools fixes for v6.5: 3rd batch

- Revert a patch that unconditionally resolved addresses to inlines in
  callchains, something that was done before when DWARF mode was asked
  for, but could as well be done when just frame pointers (the default)
  was selected. This enriches the callchains with inlines but the way to
  resolve it is gross right now, relying on addr2line, and even if we come
  up with an efficient way of processing all the associated DWARF info for
  a big file as vmlinux is, this has to be something people opt-in, as it
  will still result in overheads, so revert it until we get this done in a
  saner way.

- Update the x86 msr-index.h header with the kernel original, no change
  in tooling output, just addresses a tools/perf build warning.

- Resolve a regression where special "tool events", such as
  "duration_time" were being presented for all CPUs, when it only makes
  sense to show it for the workload, that is, just once.

Signed-off-by: Arnaldo Carvalho de Melo <>
perf stat: Don't display zero tool counts

Andi reported (see link below) a regression when printing the
'duration_time' tool event, where it gets printed as "not counted" for
most of the CPUs, fix it by skipping zero counts for tool events.

Reported-by: Andi Kleen <>
Signed-off-by: Ian Rogers <>
Tested-by: Andi Kleen <>
Tested-by: Arnaldo Carvalho de Melo <>
Cc: Adrian Hunter <>
Cc: Alexander Shishkin <>
Cc: Athira Rajeev <>
Cc: Claire Jensen <>
Cc: Ingo Molnar <>
Cc: Jiri Olsa <>
Cc: Kan Liang <>
Cc: Mark Rutland <>
Cc: Namhyung Kim <>
Cc: Peter Zijlstra <>
Signed-off-by: Arnaldo Carvalho de Melo <>
1 file changed