#ifndef LLC_HH #define LLC_HH #include #include long perf_event_open(struct perf_event_attr* hw_event, pid_t pid, int cpu, int group_fd, unsigned long flags); void config_event(struct perf_event_attr* pe); int init_event(struct perf_event_attr* pe); void activate_event(int fd); void close_event(int fd); long long query_BE_monitor(int fd); bool do_block_BE(int fd, long long max_misses); int setup_BE_monitor(); void close_BE_monitor(int fd); const int ALL_PIDS = -1; const int ALL_CPUS = -1; const int LEADER = -1; const unsigned long NO_FLAGS = 0; #endif