X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-context-perf-counters.c;h=239cf0cc35f5ce74fa5fb6a3d7e82c55675d3512;hb=c81f4d1591bfc7cbb6da6310e43f316367cd9200;hp=2c67ecf3eebc3978e965571bacf10d26f76a7c8f;hpb=13ab8b0a749053960f81a4924a3ed27775518f94;p=lttng-modules.git diff --git a/lttng-context-perf-counters.c b/lttng-context-perf-counters.c index 2c67ecf3..239cf0cc 100644 --- a/lttng-context-perf-counters.c +++ b/lttng-context-perf-counters.c @@ -26,11 +26,11 @@ #include #include #include -#include "lttng-events.h" -#include "wrapper/ringbuffer/frontend_types.h" -#include "wrapper/vmalloc.h" -#include "wrapper/perf.h" -#include "lttng-tracer.h" +#include +#include +#include +#include +#include static size_t perf_counter_get_size(size_t offset) @@ -253,6 +253,7 @@ int lttng_add_perf_counter_to_ctx(uint32_t type, field->record = perf_counter_record; field->u.perf_counter = perf_field; perf_field->hp_enable = 1; + lttng_context_update(*ctx); wrapper_vmalloc_sync_all(); return 0; @@ -279,11 +280,3 @@ error_attr: kfree(events); return ret; } - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit Perf Support"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION);