mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 03:22:27 -04:00
The tss monitor currently guarantees task switches can happen only while scheduling, whereas the sncid monitor enforces scheduling occurs with interrupt disabled. Replace the monitors with a more comprehensive specification which implies both but also ensures that: * each scheduler call disable interrupts to switch * each task switch happens with interrupts disabled Cc: Ingo Molnar <mingo@redhat.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Nam Cao <namcao@linutronix.de> Cc: Tomas Glozar <tglozar@redhat.com> Cc: Juri Lelli <jlelli@redhat.com> Cc: Clark Williams <williams@redhat.com> Cc: John Kacur <jkacur@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/20250728135022.255578-8-gmonaco@redhat.com Signed-off-by: Gabriele Monaco <gmonaco@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
16 lines
434 B
C
16 lines
434 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
* Snippet to be included in rv_trace.h
|
|
*/
|
|
|
|
#ifdef CONFIG_RV_MON_STS
|
|
DEFINE_EVENT(event_da_monitor, event_sts,
|
|
TP_PROTO(char *state, char *event, char *next_state, bool final_state),
|
|
TP_ARGS(state, event, next_state, final_state));
|
|
|
|
DEFINE_EVENT(error_da_monitor, error_sts,
|
|
TP_PROTO(char *state, char *event),
|
|
TP_ARGS(state, event));
|
|
#endif /* CONFIG_RV_MON_STS */
|