Linux Perf
pstack.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PERF_PSTACK_
3 #define _PERF_PSTACK_
4 
5 #include <stdbool.h>
6 
7 struct pstack;
8 struct pstack *pstack__new(unsigned short max_nr_entries);
9 void pstack__delete(struct pstack *pstack);
10 bool pstack__empty(const struct pstack *pstack);
11 void pstack__remove(struct pstack *pstack, void *key);
12 void pstack__push(struct pstack *pstack, void *key);
13 void *pstack__pop(struct pstack *pstack);
14 void *pstack__peek(struct pstack *pstack);
15 
16 #endif /* _PERF_PSTACK_ */
void pstack__remove(struct pstack *pstack, void *key)
Definition: pstack.c:39
void * pstack__pop(struct pstack *pstack)
Definition: pstack.c:65
struct pstack * pstack__new(unsigned short max_nr_entries)
Definition: pstack.c:20
const char * key
Definition: bpf-loader.c:196
bool pstack__empty(const struct pstack *pstack)
Definition: pstack.c:34
void * pstack__peek(struct pstack *pstack)
Definition: pstack.c:79
unsigned short max_nr_entries
Definition: pstack.c:16
Definition: pstack.c:14
void pstack__push(struct pstack *pstack, void *key)
Definition: pstack.c:56
void pstack__delete(struct pstack *pstack)
Definition: pstack.c:29