aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/lib
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2019-07-27 22:42:56 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-09-25 09:51:46 -0300
commit8df7a869818ec278969d34e4792985f12b24f23d (patch)
treed7cac6bb7b2b342b0b26d7710e002737e4fa2074 /tools/perf/lib
parentlibperf: Add prev/start/end to struct perf_mmap (diff)
downloadlinux-dev-8df7a869818ec278969d34e4792985f12b24f23d.tar.xz
linux-dev-8df7a869818ec278969d34e4792985f12b24f23d.zip
libperf: Add 'overwrite' to 'struct perf_mmap'
Move 'overwrite' from tools/perf's mmap to libperf's perf_mmap struct. Committer notes: Add stdbool.h as we start using 'bool'. 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-17-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/lib')
-rw-r--r--tools/perf/lib/include/internal/mmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/lib/include/internal/mmap.h b/tools/perf/lib/include/internal/mmap.h
index ebf5b93754fd..47c09f375fb6 100644
--- a/tools/perf/lib/include/internal/mmap.h
+++ b/tools/perf/lib/include/internal/mmap.h
@@ -4,6 +4,7 @@
#include <linux/refcount.h>
#include <linux/types.h>
+#include <stdbool.h>
/**
* struct perf_mmap - perf's ring buffer mmap details
@@ -19,6 +20,7 @@ struct perf_mmap {
u64 prev;
u64 start;
u64 end;
+ bool overwrite;
};
#endif /* __LIBPERF_INTERNAL_MMAP_H */