public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH tip 0/3] Improvements of scheduler related Tracepoints
@ 2017-12-14 20:20 Teng Qin
  2017-12-14 20:20 ` [PATCH tip 1/3] Improve sched_switch Tracepoint Teng Qin
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Teng Qin @ 2017-12-14 20:20 UTC (permalink / raw)
  To: peterz; +Cc: mingo, ast, bgregg, daniel, yhs, linux-kernel, Kernel-team,
	Teng Qin

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(-)

-- 
2.9.5

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-12-21  2:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-14 20:20 [PATCH tip 0/3] Improvements of scheduler related Tracepoints Teng Qin
2017-12-14 20:20 ` [PATCH tip 1/3] Improve sched_switch Tracepoint Teng Qin
2017-12-14 20:20 ` [PATCH tip 2/3] Improve sched_process_fork Tracepoint Teng Qin
2017-12-14 20:20 ` [PATCH tip 3/3] Improve sched_process_exit Tracepoint Teng Qin
2017-12-14 20:49 ` [PATCH tip 0/3] Improvements of scheduler related Tracepoints Peter Zijlstra
2017-12-15  3:16   ` Alexei Starovoitov
2017-12-15  7:39     ` Peter Zijlstra
2017-12-15  8:53       ` Teng Qin
2017-12-15  9:53         ` Peter Zijlstra
2017-12-15 17:09       ` Alexei Starovoitov
2017-12-18  9:11         ` Peter Zijlstra
2017-12-21  2:03           ` tracepoint_probe_register and bpf. Was: " Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox