cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

pstack.h (494B)


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