perf streams: Get the evsel_streams by evsel_idx
authorJin Yao <yao.jin@linux.intel.com>
Fri, 9 Oct 2020 02:28:40 +0000 (10:28 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Oct 2020 16:30:13 +0000 (13:30 -0300)
commitdd1d841810158086086417133a22c90dfabaeecb
tree7f708c71ec5b264c58b554ac96215d77b1a53415
parent480accbb17609be01abcd09517605a930791bfdb
perf streams: Get the evsel_streams by evsel_idx

In previous patch, we have created evsel_streams array.

This patch returns the specified evsel_streams according to the
evsel_idx.

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-3-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