From: Arun Sharma <asharma@fb.com>
To: linux-kernel@vger.kernel.org
Cc: Arun Sharma <asharma@fb.com>
Subject: [PATCH 0/2] Sleep profiling
Date: Mon, 19 Dec 2011 15:23:23 -0800 [thread overview]
Message-ID: <1324337005-31718-1-git-send-email-asharma@fb.com> (raw)
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(-)
--
1.7.4
next reply other threads:[~2011-12-19 23:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-19 23:23 Arun Sharma [this message]
2011-12-19 23:23 ` [PATCH 1/2] tracing, sched: move the sched_switch tracepoint Arun Sharma
2011-12-19 23:29 ` Peter Zijlstra
2011-12-19 23:36 ` Peter Zijlstra
2011-12-19 23:40 ` Mathieu Desnoyers
2011-12-19 23:23 ` [PATCH 2/2] tracing, sched: Add delay info to sched_switch Arun Sharma
2011-12-19 23:28 ` Peter Zijlstra
2011-12-19 23:34 ` Steven Rostedt
2011-12-19 23:40 ` Arun Sharma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1324337005-31718-1-git-send-email-asharma@fb.com \
--to=asharma@fb.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).