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>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
ea7cd59233
commit
c8539e3fc6
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user