]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched: Add sched tracepoints for RV task model
authorGabriele Monaco <gmonaco@redhat.com>
Wed, 5 Mar 2025 14:03:54 +0000 (15:03 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 24 Mar 2025 21:27:39 +0000 (17:27 -0400)
commit26f80681a09b95fd64bcf33d02e258e78a30842b
treee98095993f49a45b19669cfd0804c69de3804728
parent41a4d2d3e3b6fe86bd54cc4c3b731378290a0d00
sched: Add sched tracepoints for RV task model

Add the following tracepoints:
* sched_entry(bool preempt, ip)
    Called while entering __schedule
* sched_exit(bool is_switch, ip)
    Called while exiting __schedule
* sched_set_state(task, curr_state, state)
    Called when a task changes its state (to and from running)

These tracepoints are useful to describe the Linux task model and are
adapted from the patches by Daniel Bristot de Oliveira
(https://bristot.me/linux-task-model/).

Cc: Ingo Molnar <mingo@redhat.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Link: https://lore.kernel.org/20250305140406.350227-2-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/linux/rv.h
include/linux/sched.h
include/trace/events/sched.h
kernel/sched/core.c
tools/verification/rv/include/rv.h