mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-16 23:51:44 +00:00

Add a monitor for checking that real-time tasks do not go to sleep in a manner that may cause undesirable latency. Also change RV depends on TRACING to RV select TRACING to avoid the following recursive dependency: error: recursive dependency detected! symbol TRACING is selected by PREEMPTIRQ_TRACEPOINTS symbol PREEMPTIRQ_TRACEPOINTS depends on TRACE_IRQFLAGS symbol TRACE_IRQFLAGS is selected by RV_MON_SLEEP symbol RV_MON_SLEEP depends on RV symbol RV depends on TRACING Cc: John Ogness <john.ogness@linutronix.de> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/75bc5bcc741d153aa279c95faf778dff35c5c8ad.1752088709.git.namcao@linutronix.de Reviewed-by: Gabriele Monaco <gmonaco@redhat.com> Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
15 lines
432 B
C
15 lines
432 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
* Snippet to be included in rv_trace.h
|
|
*/
|
|
|
|
#ifdef CONFIG_RV_MON_SLEEP
|
|
DEFINE_EVENT(event_ltl_monitor_id, event_sleep,
|
|
TP_PROTO(struct task_struct *task, char *states, char *atoms, char *next),
|
|
TP_ARGS(task, states, atoms, next));
|
|
DEFINE_EVENT(error_ltl_monitor_id, error_sleep,
|
|
TP_PROTO(struct task_struct *task),
|
|
TP_ARGS(task));
|
|
#endif /* CONFIG_RV_MON_SLEEP */
|