|
HPCToolkit
|
#include <sys/syscall.h>#include <unistd.h>#include <linux/types.h>#include <linux/perf_event.h>#include <linux/version.h>#include <lib/prof-lean/hpcrun-fmt.h>#include <sample_event.h>#include "perf_constants.h"

Go to the source code of this file.
Classes | |
| struct | event_threshold_s |
| struct | perf_mmap_data_s |
| struct | event_info_s |
| struct | event_thread_s |
Macros | |
| #define | KERNEL_SAMPLING_ENABLED (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)) |
| #define | MAX_CALLCHAIN_FRAMES 32 |
Typedefs | |
| typedef struct perf_mmap_data_s | perf_mmap_data_t |
| typedef struct event_info_s | event_info_t |
| typedef struct perf_event_mmap_page | pe_mmap_t |
| typedef struct event_thread_s | event_thread_t |
Enumerations | |
| enum | threshold_e { PERIOD, FREQUENCY } |
Functions | |
| void | perf_util_init () |
| int | perf_util_attr_init (const char *event_name, struct perf_event_attr *attr, bool usePeriod, u64 threshold, u64 sampletype) |
| bool | perf_util_is_ksym_available () |
| int | perf_util_get_paranoid_level () |
| cct_node_t * | perf_util_add_kernel_callchain (cct_node_t *leaf, void *data_aux) |
| void | perf_util_get_default_threshold (struct event_threshold_s *threshold) |
| int | perf_util_check_precise_ip_suffix (char *event) |
| #define KERNEL_SAMPLING_ENABLED (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)) |
Definition at line 58 of file perf-util.h.
| #define MAX_CALLCHAIN_FRAMES 32 |
Definition at line 65 of file perf-util.h.
| typedef struct event_info_s event_info_t |
| typedef struct event_thread_s event_thread_t |
| typedef struct perf_event_mmap_page pe_mmap_t |
Definition at line 144 of file perf-util.h.
| typedef struct perf_mmap_data_s perf_mmap_data_t |
| enum threshold_e |
| Enumerator | |
|---|---|
| PERIOD | |
| FREQUENCY | |
Definition at line 71 of file perf-util.h.
| cct_node_t* perf_util_add_kernel_callchain | ( | cct_node_t * | leaf, |
| void * | data_aux | ||
| ) |
Definition at line 358 of file perf-util.c.


| int perf_util_attr_init | ( | const char * | event_name, |
| struct perf_event_attr * | attr, | ||
| bool | usePeriod, | ||
| u64 | threshold, | ||
| u64 | sampletype | ||
| ) |
Definition at line 403 of file perf-util.c.


| int perf_util_check_precise_ip_suffix | ( | char * | event | ) |
| void perf_util_get_default_threshold | ( | struct event_threshold_s * | threshold | ) |
| int perf_util_get_paranoid_level | ( | ) |
| void perf_util_init | ( | ) |
Definition at line 303 of file perf-util.c.


| bool perf_util_is_ksym_available | ( | ) |