aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/stream.h
diff options
context:
space:
mode:
authorJin Yao <yao.jin@linux.intel.com>2020-10-09 10:28:40 +0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-10-14 13:30:13 -0300
commitdd1d841810158086086417133a22c90dfabaeecb (patch)
tree7f708c71ec5b264c58b554ac96215d77b1a53415 /tools/perf/util/stream.h
parentperf streams: Introduce branch history "streams" (diff)
downloadlinux-dev-dd1d841810158086086417133a22c90dfabaeecb.tar.xz
linux-dev-dd1d841810158086086417133a22c90dfabaeecb.zip
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>
Diffstat (limited to 'tools/perf/util/stream.h')
-rw-r--r--tools/perf/util/stream.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/stream.h b/tools/perf/util/stream.h
index 35bc64df554c..f01335677479 100644
--- a/tools/perf/util/stream.h
+++ b/tools/perf/util/stream.h
@@ -27,4 +27,7 @@ void evlist_streams__delete(struct evlist_streams *els);
struct evlist_streams *evlist__create_streams(struct evlist *evlist,
int nr_streams_max);
+struct evsel_streams *evsel_streams__entry(struct evlist_streams *els,
+ int evsel_idx);
+
#endif /* __PERF_STREAM_H */