[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180109153522.14116-38-jolsa@kernel.org>
Date: Tue, 9 Jan 2018 16:35:10 +0100
From: Jiri Olsa <jolsa@...nel.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: lkml <linux-kernel@...r.kernel.org>,
Ingo Molnar <mingo@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
David Ahern <dsahern@...il.com>,
Andi Kleen <ak@...ux.intel.com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>
Subject: [PATCH 37/49] perf tools: Add perf_mmap__read_tail function
It will be used in following patches.
Link: http://lkml.kernel.org/n/tip-4id1fjlu5ypfqnu9kvpo7l3z@git.kernel.org
Signed-off-by: Jiri Olsa <jolsa@...nel.org>
---
tools/perf/util/mmap.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tools/perf/util/mmap.h b/tools/perf/util/mmap.h
index b14bf0040518..b6f7d4a9be01 100644
--- a/tools/perf/util/mmap.h
+++ b/tools/perf/util/mmap.h
@@ -78,6 +78,13 @@ static inline u64 perf_mmap__read_head(struct perf_mmap *mm)
return head;
}
+static inline u64 perf_mmap__read_tail(struct perf_mmap *md)
+{
+ struct perf_event_mmap_page *pc = md->base;
+
+ return pc->data_tail;
+}
+
static inline void perf_mmap__write_tail(struct perf_mmap *md, u64 tail)
{
struct perf_event_mmap_page *pc = md->base;
--
2.13.6
Powered by blists - more mailing lists