diff options
author | Jin Yao <yao.jin@linux.intel.com> | 2020-10-09 05:28:40 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2020-10-14 19:30:13 +0300 |
commit | dd1d841810158086086417133a22c90dfabaeecb (patch) | |
tree | 7f708c71ec5b264c58b554ac96215d77b1a53415 /tools/perf/util/stream.h | |
parent | 480accbb17609be01abcd09517605a930791bfdb (diff) | |
download | linux-dd1d841810158086086417133a22c90dfabaeecb.tar.xz |
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.h | 3 |
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 */ |