aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/lib/include
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2019-07-27 22:39:53 +0200
committerArnaldo Carvalho de Melo <[email protected]>2019-09-25 09:51:46 -0300
commitebe4d72bba86a499ea0935c58ba1c2aea5aafb43 (patch)
treedb2f26cfcbe048a9e79accc21bbec92fcdaed030 /tools/perf/lib/include
parente03edfeac0330eaa2b19b82fc942611c1abf2120 (diff)
libperf: Add prev/start/end to struct perf_mmap
Move prev/start/end from tools/perf's mmap to libperf's perf_mmap struct. Committer notes: Add linux/types.h as we use u64. 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]>
Diffstat (limited to 'tools/perf/lib/include')
-rw-r--r--tools/perf/lib/include/internal/mmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/lib/include/internal/mmap.h b/tools/perf/lib/include/internal/mmap.h
index e6fb850ba47a..ebf5b93754fd 100644
--- a/tools/perf/lib/include/internal/mmap.h
+++ b/tools/perf/lib/include/internal/mmap.h
@@ -3,6 +3,7 @@
#define __LIBPERF_INTERNAL_MMAP_H
#include <linux/refcount.h>
+#include <linux/types.h>
/**
* struct perf_mmap - perf's ring buffer mmap details
@@ -15,6 +16,9 @@ struct perf_mmap {
int fd;
int cpu;
refcount_t refcnt;
+ u64 prev;
+ u64 start;
+ u64 end;
};
#endif /* __LIBPERF_INTERNAL_MMAP_H */