diff options
author | Jiri Olsa <jolsa@kernel.org> | 2019-07-21 13:24:57 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-07-29 18:34:46 -0300 |
commit | 384c4ad192a01fe235c7ac9e9fd8605d12a807e8 (patch) | |
tree | 26e77abfcfc086a555a5d5703fbe8cd1d9a033ef /tools/perf/lib/evsel.c | |
parent | fcc97c3e7a9d6fd3fda7674f52fb005f4e8453e7 (diff) | |
download | lwn-384c4ad192a01fe235c7ac9e9fd8605d12a807e8.tar.gz lwn-384c4ad192a01fe235c7ac9e9fd8605d12a807e8.zip |
libperf: Add perf_evsel__attr() function
Add a perf_evsel__attr() function to get attr pointer from a perf_evsel
instance.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190721112506.12306-71-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/lib/evsel.c')
-rw-r--r-- | tools/perf/lib/evsel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/lib/evsel.c b/tools/perf/lib/evsel.c index 8dbe0e841b8f..24abc80dd767 100644 --- a/tools/perf/lib/evsel.c +++ b/tools/perf/lib/evsel.c @@ -225,3 +225,8 @@ struct perf_thread_map *perf_evsel__threads(struct perf_evsel *evsel) { return evsel->threads; } + +struct perf_event_attr *perf_evsel__attr(struct perf_evsel *evsel) +{ + return &evsel->attr; +} |