]> git.baikalelectronics.ru Git - kernel.git/commit
perf hists: Do not link a pair if already linked
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 7 Aug 2019 13:45:30 +0000 (10:45 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 12 Aug 2019 19:26:02 +0000 (16:26 -0300)
commit51ec41ca11ca2a9251d9dff9a9e1d18460e60cae
treeb2ce28a282c3d33ad918638302b8fb308683275e
parentf4525779aed1ba6f265e5a2dfc04b0f5f08cd8bd
perf hists: Do not link a pair if already linked

When we have multiple events in a group we link hist_entries in the
non-leader evsel hists to the one in the leader that points to the same
sorting criteria, in hists__match().

For 'perf report' we do this just once and then print the results, but
for 'perf top' we need to look if this was already done in the previous
refresh of the screen, so check for that and don't try to link again.

This is part of having 'perf top' using the hists browser for showing
multiple events in multiple columns.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-iwvb37rgb7upswhruwpcdnhw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c