summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/pstack.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2015-04-24 03:15:32 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-05-05 23:13:22 +0200
commitc8539e3fc630067020814657636b45095edfb5bb (patch)
tree2fcfbf34968411b8be0d8fea7b93285b9d260986 /tools/perf/util/pstack.h
parentperf hists browser: Split popup menu actions - part 2 (diff)
downloadlinux-c8539e3fc630067020814657636b45095edfb5bb.tar.xz
linux-c8539e3fc630067020814657636b45095edfb5bb.zip
perf tools: Introduce pstack_peek()
The pstack_peek() is to get the topmost entry without removing it. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1429838133-14001-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/pstack.h')
-rw-r--r--tools/perf/util/pstack.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/pstack.h b/tools/perf/util/pstack.h
index c3cb6584d527..ded7f2e36624 100644
--- a/tools/perf/util/pstack.h
+++ b/tools/perf/util/pstack.h
@@ -10,5 +10,6 @@ bool pstack__empty(const struct pstack *pstack);
void pstack__remove(struct pstack *pstack, void *key);
void pstack__push(struct pstack *pstack, void *key);
void *pstack__pop(struct pstack *pstack);
+void *pstack__peek(struct pstack *pstack);
#endif /* _PERF_PSTACK_ */