summaryrefslogtreecommitdiffstats
path: root/tools/perf/lib/include/internal
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2019-10-07 14:53:10 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-10-10 09:40:00 -0300
commite440979faf6ac8048e1792af383df6af78dd1cb0 (patch)
treede71687f93ffcca4115986d57b9d9dc78409b8ab /tools/perf/lib/include/internal
parent353120b48d4f61288e4745b0c8a191784b11c0f4 (diff)
downloadlinux-e440979faf6ac8048e1792af383df6af78dd1cb0.tar.gz
linux-e440979faf6ac8048e1792af383df6af78dd1cb0.tar.bz2
linux-e440979faf6ac8048e1792af383df6af78dd1cb0.zip
libperf: Add 'struct perf_mmap_param'
Add libperf's version of mmap params 'struct perf_mmap_param' object with the basics: 'prot' and 'mask'. Encapsulate it in the current 'struct mmap_params' object. 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 <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20191007125344.14268-3-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/lib/include/internal')
-rw-r--r--tools/perf/lib/include/internal/mmap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/lib/include/internal/mmap.h b/tools/perf/lib/include/internal/mmap.h
index e25890de6a55..b26806b36bb6 100644
--- a/tools/perf/lib/include/internal/mmap.h
+++ b/tools/perf/lib/include/internal/mmap.h
@@ -29,6 +29,11 @@ struct perf_mmap {
char event_copy[PERF_SAMPLE_MAX_SIZE] __aligned(8);
};
+struct perf_mmap_param {
+ int prot;
+ int mask;
+};
+
void perf_mmap__init(struct perf_mmap *map, bool overwrite);
#endif /* __LIBPERF_INTERNAL_MMAP_H */