38 #ifndef __PERF_UTIL_H__ 39 #define __PERF_UTIL_H__ 41 #include <sys/syscall.h> 45 #include <linux/types.h> 46 #include <linux/perf_event.h> 47 #include <linux/version.h> 58 #define KERNEL_SAMPLING_ENABLED (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)) 65 #define MAX_CALLCHAIN_FRAMES 32 85 struct perf_event_header header;
138 struct perf_event_attr attr;
170 const char *event_name,
171 struct perf_event_attr *attr,
183 #if KERNEL_SAMPLING_ENABLED
cct_node_t * perf_util_add_kernel_callchain(cct_node_t *leaf, void *data_aux)
#define MAX_CALLCHAIN_FRAMES
struct event_info_s event_info_t
int perf_util_check_precise_ip_suffix(char *event)
int perf_util_attr_init(const char *event_name, struct perf_event_attr *attr, bool usePeriod, u64 threshold, u64 sampletype)
struct event_custom_s * metric_custom
struct perf_event_mmap_page pe_mmap_t
enum threshold_e threshold_type
int perf_util_get_paranoid_level()
bool perf_util_is_ksym_available()
struct event_thread_s event_thread_t
static int const threshold
struct perf_mmap_data_s perf_mmap_data_t
void perf_util_get_default_threshold(struct event_threshold_s *threshold)