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

Steven Rostedt
2024-02-19T18:16:11Z

On Tue, 13 Feb 2024 11:49:42 +0000
Vincent Donnefort <vdonnefort@google.com> 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);