mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-17 23:55:34 +00:00

Add 2 per-cpu monitors as part of the sched model: * sco: scheduling context operations Monitor to ensure sched_set_state happens only in thread context * tss: task switch while scheduling Monitor to ensure sched_switch happens only in scheduling context To: Ingo Molnar <mingo@redhat.com> To: Peter Zijlstra <peterz@infradead.org> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: John Kacur <jkacur@redhat.com> Cc: Clark Williams <williams@redhat.com> Link: https://lore.kernel.org/20250305140406.350227-4-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_SCO
|
|
DEFINE_EVENT(event_da_monitor, event_sco,
|
|
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_sco,
|
|
TP_PROTO(char *state, char *event),
|
|
TP_ARGS(state, event));
|
|
#endif /* CONFIG_RV_MON_SCO */
|