perf tools: Fix assertion failure on dynamic entry
authorNamhyung Kim <[email protected]>
Sun, 21 Feb 2016 14:22:34 +0000 (23:22 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 22 Feb 2016 15:07:14 +0000 (12:07 -0300)
commitdd42baf1f64d7257258fa4f20064aee5160df369
treeee84a994f8523bc2640400780bf3ae8199dbb42d
parent0c0af78d472f96efe04daaaccede7522b2394b76
perf tools: Fix assertion failure on dynamic entry

The dynamic entry is created for each field in a tracepoint event.
Since they have no fixed hpp format index, it should skip when
perf_hpp__reset_width() is called.

This caused following assertion failure..

  $ perf record -e sched:sched_switch -a sleep 1

  $ perf report -s comm,next_pid --stdio
  perf: ui/hist.c:651: perf_hpp__reset_width:
    Assertion `!(fmt->idx >= PERF_HPP__MAX_INDEX)' failed.

Signed-off-by: Namhyung Kim <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/ui/hist.c