Debian Codegraph @

runtime/linux/perf_event_counter_context.c

raw
1 #include <linux/perf_event.h>
2
3 /* void *context parameter is new since linux commit 4dc0da. */
4 struct perf_event *
5 pref_ec_context(struct perf_event_attr *attr,
6 int cpu,
7 struct task_struct *task,
8 perf_overflow_handler_t callback,
9 void *context);
10
11 struct perf_event *
12 pref_ec_context(struct perf_event_attr *attr,
13 int cpu,
14 struct task_struct *task,
15 perf_overflow_handler_t callback,
16 void *context)
17 {
18 return perf_event_create_kernel_counter(attr, cpu, task, callback, context);
19 }