Drop 'linux/perf_events.h' wrapper
[lttng-modules.git] / src / lttng-context-perf-counters.c
index 372f05e0cc902c311611604875d6922372c1dc48..ac79d3eeb72872f998989a9296f3c246ba831d9d 100644 (file)
@@ -18,7 +18,6 @@
 #include <ringbuffer/frontend_types.h>
 #include <wrapper/cpu.h>
 #include <wrapper/vmalloc.h>
-#include <wrapper/perf.h>
 #include <lttng/tracer.h>
 
 static
@@ -126,8 +125,8 @@ int lttng_cpuhp_perf_counter_online(unsigned int cpu,
        struct perf_event_attr *attr = perf_field->attr;
        struct perf_event *pevent;
 
-       pevent = wrapper_perf_event_create_kernel_counter(attr,
-                       cpu, NULL, overflow_callback);
+       pevent = perf_event_create_kernel_counter(attr,
+                       cpu, NULL, overflow_callback, NULL);
        if (!pevent || IS_ERR(pevent))
                return -EINVAL;
        if (pevent->state == PERF_EVENT_STATE_ERROR) {
@@ -188,8 +187,8 @@ int lttng_perf_counter_cpu_hp_callback(struct notifier_block *nb,
        switch (action) {
        case CPU_ONLINE:
        case CPU_ONLINE_FROZEN:
-               pevent = wrapper_perf_event_create_kernel_counter(attr,
-                               cpu, NULL, overflow_callback);
+               pevent = perf_event_create_kernel_counter(attr,
+                               cpu, NULL, overflow_callback, NULL);
                if (!pevent || IS_ERR(pevent))
                        return NOTIFY_BAD;
                if (pevent->state == PERF_EVENT_STATE_ERROR) {
@@ -307,8 +306,8 @@ int lttng_add_perf_counter_to_ctx(uint32_t type,
 #endif
                lttng_cpus_read_lock();
                for_each_online_cpu(cpu) {
-                       events[cpu] = wrapper_perf_event_create_kernel_counter(attr,
-                                               cpu, NULL, overflow_callback);
+                       events[cpu] = perf_event_create_kernel_counter(attr,
+                                               cpu, NULL, overflow_callback, NULL);
                        if (!events[cpu] || IS_ERR(events[cpu])) {
                                ret = -EINVAL;
                                goto counter_error;
This page took 0.023942 seconds and 4 git commands to generate.