Skip to content

Sleep profiling

Arun Sharma lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tracing, sched: move the sched_switch tracepointkernel/sched.c+1 -13 replies
2/2tracing, sched: Add delay info to sched_switchinclude/trace/events/sched.h kernel/sched_fair.c kernel/trace/trace_sched_switch.c+22 -73 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] Sleep profiling

When debugging latency, users want to know where their code is executing on the CPU (cycle profiling) as well as where it's waiting sleeping or waiting for IO. The following patch set tries to address the latter.

Normal users can use this tracepoint without root privileges and on a system with lots of context switches, load can be reduced by filtering out uninteresting switches.

Sample command lines:

perf record -gPe sched:sched_switch --filter "delay > 10000" -- ./test perf report --stdio -g graph -G

Arun Sharma (2):
tracing, sched: move the sched_switch tracepoint tracing, sched: Add delay info to sched_switch

 include/trace/events/sched.h      |   21 +++++++++++++++++----
 kernel/sched.c                    |    2 +-
 kernel/sched_fair.c               |    6 ++++--
 kernel/trace/trace_sched_switch.c |    2 +-
 4 files changed, 23 insertions(+), 8 deletions(-)
Signature · 1 line
1.7.4