#include <linux/cpumask.h>
#include <counter/counter.h>
#include <counter/counter-internal.h>
+#include <wrapper/compiler_attributes.h>
#include <wrapper/vmalloc.h>
#include <wrapper/limits.h>
*underflow = false;
switch (config->alloc) {
- case COUNTER_ALLOC_GLOBAL: /* Fallthrough */
+ case COUNTER_ALLOC_GLOBAL:
+ lttng_fallthrough;
case COUNTER_ALLOC_PER_CPU | COUNTER_ALLOC_GLOBAL:
/* Read global counter. */
ret = lttng_counter_read(config, counter, dimension_indexes,
switch (config->alloc) {
case COUNTER_ALLOC_GLOBAL:
break;
- case COUNTER_ALLOC_PER_CPU | COUNTER_ALLOC_GLOBAL: /* Fallthrough */
+ case COUNTER_ALLOC_PER_CPU | COUNTER_ALLOC_GLOBAL:
+ lttng_fallthrough;
case COUNTER_ALLOC_PER_CPU:
//TODO: integrate with CPU hotplug and online cpus
for (cpu = 0; cpu < num_possible_cpus(); cpu++) {
int cpu, ret;
switch (config->alloc) {
- case COUNTER_ALLOC_GLOBAL: /* Fallthrough */
+ case COUNTER_ALLOC_GLOBAL:
+ lttng_fallthrough;
case COUNTER_ALLOC_PER_CPU | COUNTER_ALLOC_GLOBAL:
/* Clear global counter. */
ret = lttng_counter_clear_cpu(config, counter, dimension_indexes, -1);
switch (config->alloc) {
case COUNTER_ALLOC_GLOBAL:
break;
- case COUNTER_ALLOC_PER_CPU | COUNTER_ALLOC_GLOBAL: /* Fallthrough */
+ case COUNTER_ALLOC_PER_CPU | COUNTER_ALLOC_GLOBAL:
+ lttng_fallthrough;
case COUNTER_ALLOC_PER_CPU:
//TODO: integrate with CPU hotplug and online cpus
for (cpu = 0; cpu < num_possible_cpus(); cpu++) {