mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
libperf: Add perf_evlist__first()/last() functions
Add perf_evlist__first()/last() functions to libperf, as internal functions and rename perf's origins to evlist__first/last. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lore.kernel.org/lkml/20190913132355.21634-29-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
70c20369ee
commit
515dbe48f6
32 changed files with 145 additions and 129 deletions
|
@ -1568,7 +1568,7 @@ struct evsel *bpf__setup_output_event(struct evlist *evlist, const char *name)
|
|||
return ERR_PTR(-err);
|
||||
}
|
||||
|
||||
evsel = perf_evlist__last(evlist);
|
||||
evsel = evlist__last(evlist);
|
||||
}
|
||||
|
||||
bpf__for_each_map_named(map, obj, tmp, name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue