Skip to content

Sleep Profiling v2

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

Changes since v1 from the cover letter

* Define a new sched_stat tracepoint
* Rebased to -tip

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched: Retain sleep/block informationkernel/sched/fair.c+4 -20 replies
2/2tracing, sched: Add a new tracepoint for sleeptimeinclude/trace/events/sched.h kernel/sched/core.c+49 -06 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 v2

Changes since v1:

* Define a new sched_stat tracepoint
* Rebased to -tip

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_stat_sleeptime --filter "sleeptime > 10000" -- ./test perf report --stdio -g graph -G

Arun Sharma (2):
sched: Retain sleep/block information tracing, sched: Add a new tracepoint for sleeptime

 include/trace/events/sched.h |   48 ++++++++++++++++++++++++++++++++++++++++++
 kernel/sched/core.c          |    1 +
 kernel/sched/fair.c          |    6 +++-
 3 files changed, 53 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.4