perf streams: Link stream pair
authorJin Yao <yao.jin@linux.intel.com>
Fri, 9 Oct 2020 02:28:42 +0000 (10:28 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Oct 2020 16:32:36 +0000 (13:32 -0300)
commitfa79aa6485816b86f37205fd5659616d64f8be7f
tree644f6007f5388991544e9d602774e56c66e231ed
parent47ef8398c369fa77e0fdbadfebb3885879491721
perf streams: Link stream pair

In previous patch, we have created an evsel_streams for one event, and
top N hottest streams will be saved in a stream array in evsel_streams.

This patch compares total streams among two evsel_streams.

Once two streams are fully matched, they will be linked as a pair. From
the pair, we can know which streams are matched.

Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20201009022845.13141-5-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/stream.c
tools/perf/util/stream.h