Re: [PATCH v17 3/6] tracing: Add snapshot refcount

From: Steven Rostedt
Date: Mon Feb 19 2024 - 13:16:18 EST


On Tue, 13 Feb 2024 11:49:42 +0000
Vincent Donnefort <vdonnefort@xxxxxxxxxx> wrote:

> @@ -9678,7 +9739,9 @@ trace_array_create_systems(const char *name, const char *systems)
> raw_spin_lock_init(&tr->start_lock);
>
> tr->max_lock = (arch_spinlock_t)__ARCH_SPIN_LOCK_UNLOCKED;
> -
> +#ifdef CONFIG_TRCER_MAX_TRACE

Oops!

I'll fix this too.

-- Steve

> + spinlock_init(&tr->snapshot_trigger_lock);
> +#endif
> tr->current_trace = &nop_trace;
>
> INIT_LIST_HEAD(&tr->systems);