^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _PERF_PSTACK_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _PERF_PSTACK_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <stdbool.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) struct pstack;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) struct pstack *pstack__new(unsigned short max_nr_entries);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) void pstack__delete(struct pstack *pstack);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) bool pstack__empty(const struct pstack *pstack);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) void pstack__remove(struct pstack *pstack, void *key);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) void pstack__push(struct pstack *pstack, void *key);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) void *pstack__pop(struct pstack *pstack);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) void *pstack__peek(struct pstack *pstack);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #endif /* _PERF_PSTACK_ */