aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/lib/include/internal/mmap.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2019-07-27 22:31:17 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-09-25 09:51:45 -0300
commit2cf07b294a604aecd6b583e60724eaa1607f0fbc (patch)
treea77fa32ad8df14ae89c139ea2b3fd54d0d353fc9 /tools/perf/lib/include/internal/mmap.h
parentlibperf: Add 'mask' to struct perf_mmap (diff)
downloadlinux-dev-2cf07b294a604aecd6b583e60724eaa1607f0fbc.tar.xz
linux-dev-2cf07b294a604aecd6b583e60724eaa1607f0fbc.zip
libperf: Add 'fd' to struct perf_mmap
Move 'fd' from tools/perf's mmap to libperf's perf_mmap struct. 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-13-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/lib/include/internal/mmap.h')
-rw-r--r--tools/perf/lib/include/internal/mmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/lib/include/internal/mmap.h b/tools/perf/lib/include/internal/mmap.h
index 1caa1e8ee5c6..892cbd401d8d 100644
--- a/tools/perf/lib/include/internal/mmap.h
+++ b/tools/perf/lib/include/internal/mmap.h
@@ -10,6 +10,7 @@
struct perf_mmap {
void *base;
int mask;
+ int fd;
};
#endif /* __LIBPERF_INTERNAL_MMAP_H */