X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flttng-event-notifier-notification.c;h=ecbc0676291c4e9f425cdbbb86ad1ea37656c04a;hb=HEAD;hp=7d345acc8be648f7ab3719fbaed7a63b09b908cd;hpb=60ae08f0b92f06f7e092b5c5e5dc2a65a9e507a0;p=lttng-modules.git diff --git a/src/lttng-event-notifier-notification.c b/src/lttng-event-notifier-notification.c index 7d345acc..29d2d156 100644 --- a/src/lttng-event-notifier-notification.c +++ b/src/lttng-event-notifier-notification.c @@ -5,6 +5,7 @@ * Copyright (C) 2020 Francis Deslauriers */ +#include #include #include @@ -13,7 +14,6 @@ #include #include #include -#include /* * The capture buffer size needs to be below 1024 bytes to avoid the @@ -246,6 +246,7 @@ int capture_sequence_element_unsigned(uint8_t *ptr, return 0; } +static int capture_sequence(struct lttng_msgpack_writer *writer, struct lttng_interpreter_output *output) { @@ -398,11 +399,11 @@ void record_error(struct lttng_kernel_event_notifier *event_notifier) int ret; /* - * lttng_smp_load_acquire paired with lttng_smp_store_release orders - * creation of the error counter and setting error_counter_len - * before the error_counter is used. + * smp_load_acquire paired with smp_store_release orders creation of + * the error counter and setting error_counter_len before the + * error_counter is used. */ - error_counter = lttng_smp_load_acquire(&event_notifier_group->error_counter); + error_counter = smp_load_acquire(&event_notifier_group->error_counter); /* This group may not have an error counter attached to it. */ if (!error_counter) return;