linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Sleep Profiling v2
@ 2011-12-20 18:09 Arun Sharma
  2011-12-20 18:09 ` [PATCH 1/2] sched: Retain sleep/block information Arun Sharma
  2011-12-20 18:09 ` [PATCH 2/2] tracing, sched: Add a new tracepoint for sleeptime Arun Sharma
  0 siblings, 2 replies; 9+ messages in thread
From: Arun Sharma @ 2011-12-20 18:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: Arun Sharma

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

-- 
1.7.4


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

end of thread, other threads:[~2012-01-19 22:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-20 18:09 [PATCH 0/2] Sleep Profiling v2 Arun Sharma
2011-12-20 18:09 ` [PATCH 1/2] sched: Retain sleep/block information Arun Sharma
2011-12-20 18:09 ` [PATCH 2/2] tracing, sched: Add a new tracepoint for sleeptime Arun Sharma
2011-12-20 18:16   ` Steven Rostedt
2011-12-20 18:22     ` Arun Sharma
2011-12-20 19:19       ` Steven Rostedt
2011-12-21 10:43   ` Andrey Vagin
2011-12-22  0:18     ` Arun Sharma
2012-01-19 22:30     ` Arun Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).