Skip to content

Improvements of scheduler related Tracepoints

Teng Qin lkml netdev 1 version NAK

Status from this message: NAK

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/3Improve sched_switch Tracepointinclude/trace/events/sched.h+6 -00 replies
2/3Improve sched_process_fork Tracepointinclude/trace/events/sched.h kernel/fork.c+10 -30 replies
3/3Improve sched_process_exit Tracepointinclude/trace/events/sched.h kernel/exit.c+30 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH tip 0/3] Improvements of scheduler related Tracepoints

This set of commits attempts to improve three scheduler related
Tracepoints: sched_switch, sched_process_fork, sched_process_exit.

Firstly, these commit add additional flag values, namely preempt, clone_flags and group_dead to these Tracepoints, to make information exposed via the Tracepoints more useful and complete.

Secondly, these commits exposes task_struct pointers in these Tracepoints. The task_struct pointers are arguments of the Tracepoints and currently only used to compute struct field values. But for BPF programs attached to these Tracepoints, we may want to read additional task information via the task_struct pointers. This is currently either impossible, or we have to make assumption of whether the Tracepoint is running from previous / parent or next / child, and use current pointer instead. Exposing the task_struct pointers explicitly makes such use case easier and more reliable.

Teng Qin (3):
Improve sched_switch Tracepoint
Improve sched_process_fork Tracepoint
Improve sched_process_exit Tracepoint

 include/trace/events/sched.h | 54 ++++++++++++++++++++++++++++++++++++--------
 kernel/exit.c                |  2 +-
 kernel/fork.c                |  2 +-
 3 files changed, 46 insertions(+), 12 deletions(-)
Signature · 1 line
2.9.5