[DTrace-devel] [PATCH 2/7] Implement the sched provider

Eugene Loh eugene.loh at oracle.com
Sun May 14 23:20:19 UTC 2023


A few more comments.

I see probe "remain-cpu" mentioned in probe_args[], but it's not 
otherwise mentioned in the file.  When will it fire?

Also, this patch has "on-cpu" firing with schedule_tail(). Meanwhile, if 
I look at kernel code (admittedly a little old) for DTv1, it has 
DTRACE_SCHED(on__cpu) in finish_task_switch(), which is called from 
schedule_tail() but also from context_switch(). So, does the new meaning 
of "on-cpu" differ from the DTv1 meaning?  In general, how closely do we 
expect these probes to match meanings from DTv1?




More information about the DTrace-devel mailing list