+static
+void lttng_cs_set_init(struct lttng_cs __percpu *cs_set)
+{
+ int cpu, i;
+
+ for_each_possible_cpu(cpu) {
+ struct lttng_cs *cs;
+
+ cs = per_cpu_ptr(cs_set, cpu);
+ for (i = 0; i < RING_BUFFER_MAX_NESTING; i++) {
+ struct lttng_cs_dispatch *dispatch;
+
+ dispatch = &cs->dispatch[i];
+ dispatch->stack_trace.entries = dispatch->entries;
+ dispatch->stack_trace.max_entries = MAX_ENTRIES;
+ }
+ }
+}
+