runtime/linux/perf.h - systemtap
Data types defined
Macros defined
Source code
#ifndef _PERF_H_
#define _PERF_H_
struct stap_perf_probe {
struct perf_event_attr attr;
perf_overflow_handler_t callback;
const struct stap_probe * const probe;
union
{
struct perf_event **events;
struct
{
struct perf_event *per_thread_event;
struct stap_task_finder_target tgt;
} t;
} e;
unsigned system_wide : 1;
unsigned task_finder : 1;
};
static long _stp_perf_init (struct stap_perf_probe *stp, struct task_struct* task);
static int _stp_perf_init_n (struct stap_perf_probe *probes, size_t n, const char **ppfail);
static void _stp_perf_del (struct stap_perf_probe *stp);
static void _stp_perf_del_n (struct stap_perf_probe *probes, size_t n);
#endif