aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/ordered-events.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2018-12-06 14:38:52 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-12-17 15:02:17 -0300
commit83356b3d124af5ae472ce1358222f6b7749d2322 (patch)
tree6e01096df1dd928e0fd26f8e65136b770800de71 /tools/perf/util/ordered-events.h
parentperf trace: Move event delivery to a new deliver_event() function (diff)
downloadlinux-dev-83356b3d124af5ae472ce1358222f6b7749d2322.tar.xz
linux-dev-83356b3d124af5ae472ce1358222f6b7749d2322.zip
perf ordered_events: Add first_time() method
To get the timestamp in the first event in the queue. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Dmitry Levin <ldv@altlinux.org> Cc: Eugene Syromiatnikov <esyr@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Luis Cláudio Gonçalves <lclaudio@uudg.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt (VMware) <rostedt@goodmis.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/n/tip-appp27jw1ul8kgg872j43r5o@git.kernel.org [ split from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/ordered-events.h')
-rw-r--r--tools/perf/util/ordered-events.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/ordered-events.h b/tools/perf/util/ordered-events.h
index f352af20e167..0920fb0ec6cc 100644
--- a/tools/perf/util/ordered-events.h
+++ b/tools/perf/util/ordered-events.h
@@ -61,6 +61,7 @@ void ordered_events__init(struct ordered_events *oe, ordered_events__deliver_t d
void *data);
void ordered_events__free(struct ordered_events *oe);
void ordered_events__reinit(struct ordered_events *oe);
+u64 ordered_events__first_time(struct ordered_events *oe);
static inline
void ordered_events__set_alloc_size(struct ordered_events *oe, u64 size)