OSDN Git Service

perf report TUI: Remove needless 'dummy' event from menu
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Jul 2020 12:29:57 +0000 (09:29 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Jul 2020 12:24:02 +0000 (09:24 -0300)
commitbee9ca1c8a237ca178f281062bf162637071ab04
tree67efe2fffa07bef041cbf38f8e26ef61a415775b
parent4c95ad261cfac120dd66238fcae222766754c219
perf report TUI: Remove needless 'dummy' event from menu

Fixing the common case of:

  perf record
  perf report

And getting just the cycles events.

We now have a 'dummy' event to get perf metadata events that take place
while we synthesize metadata records for pre-existing processes by
traversing procfs, so we always have this extra 'dummy' evsel, but we
don't have to offer it as there will be no samples on it, remove this
distraction.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/20200706115452.GA2772@redhat.com/
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/hists.c