mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 21:36:42 +07:00
c8539e3fc6
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>
16 lines
455 B
C
16 lines
455 B
C
#ifndef _PERF_PSTACK_
|
|
#define _PERF_PSTACK_
|
|
|
|
#include <stdbool.h>
|
|
|
|
struct pstack;
|
|
struct pstack *pstack__new(unsigned short max_nr_entries);
|
|
void pstack__delete(struct pstack *pstack);
|
|
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_ */
|