Skip to contentSkip to conversation

perf mmap: Move perf_mmap and methods to separate mmap.[ch] files

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Oct 24, 2017 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  1695849735752d2ace22d8c424ba579e33df691c
Gitweb:     https://git.kernel.org/tip/1695849735752d2ace22d8c424ba579e33df691c
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Fri, 6 Oct 2017 10:31:47 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Mon, 23 Oct 2017 11:20:53 -0300

perf mmap: Move perf_mmap and methods to separate mmap.[ch] files

To better organize the sources, and we may end up even using it directly, without evlists and evsels.

---
 tools/perf/util/Build              |   1 +
 tools/perf/util/evlist.c           | 248 ------------------------------------
 tools/perf/util/evlist.h           |  76 +----------
 tools/perf/util/mmap.c             | 252 +++++++++++++++++++++++++++++++++++++
 tools/perf/util/mmap.h             |  94 ++++++++++++++
 tools/perf/util/python-ext-sources |   1 +
 6 files changed, 349 insertions(+), 323 deletions(-)
tools/perf/util/Build +1 -0
index 369c316..a3de791 100644
@@ -13,6 +13,7 @@ libperf-y += find_bit.o
 libperf-y += kallsyms.o
 libperf-y += levenshtein.o
 libperf-y += llvm-utils.o
+libperf-y += mmap.o
 libperf-y += memswap.o
 libperf-y += parse-events.o
 libperf-y += perf_regs.o
tools/perf/util/evlist.c +0 -248

282 lines not on this page · raw message

tools/perf/util/evlist.h +1 -75

101 lines not on this page · raw message

tools/perf/util/mmap.c new file +252 -0

252 lines not on this page · raw message

tools/perf/util/mmap.h new file +94 -0

94 lines not on this page · raw message

tools/perf/util/python-ext-sources +1 -0
index e66dc49..b4f2f06 100644
@@ -10,6 +10,7 @@ util/ctype.c
 util/evlist.c
 util/evsel.c
 util/cpumap.c
+util/mmap.c
 util/namespaces.c
 ../lib/bitmap.c
 ../lib/find_bit.c