commit | 32fdc2ca7e2ae8ae5d0ff660ca7783acd8ee6396 | [log] [tgz] |
---|---|---|
author | Jiri Olsa <[email protected]> | Mon Oct 07 14:53:19 2019 +0200 |
committer | Arnaldo Carvalho de Melo <[email protected]> | Thu Oct 10 11:45:32 2019 -0300 |
tree | 9924e96fd7075e5697de48eb3a9984b173389e3a | |
parent | 7c4d41824f9afc659ba425a41018546531cffd72 [diff] [blame] |
libperf: Adopt perf_mmap__read_done() from tools/perf Move perf_mmap__read_init() from tools/perf to libperf and export it in the perf/mmap.h header. Signed-off-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Michael Petlan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
diff --git a/tools/perf/tests/keep-tracking.c b/tools/perf/tests/keep-tracking.c index e85da7e..e950907f 100644 --- a/tools/perf/tests/keep-tracking.c +++ b/tools/perf/tests/keep-tracking.c
@@ -49,7 +49,7 @@ static int find_comm(struct evlist *evlist, const char *comm) found += 1; perf_mmap__consume(&md->core); } - perf_mmap__read_done(md); + perf_mmap__read_done(&md->core); } return found; }