From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [lttng-dev] using --function/--probe
Date: Tue, 5 Jun 2012 11:49:50 -0400 [thread overview]
Message-ID: <20120605154950.GA21955@Krystal> (raw)
In-Reply-To: <3551.1338647739@cloud.rain.com>
* Bill Trost (trost at cloud.rain.com) wrote:
> Hi,
>
> I'm trying to investigate a problem under Linux 2.6.39.4 involving
> kworker threads and am pretty much stymied. I've tried enabling
> various events using --function and --probe and it's been
> very hit or miss. Very often, "lttng enable-event" comes back
> with nothing more specific than "bad ioctl", but every once
> in a while I'll find a symbol I can add a probe point for.
>
> So: What does "--probe" mean?
--probe allows to put a kprobe (breakpoint) at a kernel text address or
symbol.
> What does "--function" mean,
--function allows to put a kretprobes at a function entry site (using
its symbol name), which will trigger events at function entry return.
> and how does
> it differ from "--probe"? How do I determine what symbols are valid for
> each of these options?
It entirely depends on which functions are blacklisted in the kernel
(this is an attribute added to the functions specifically for kprobes).
The keyword is "__kprobes".
> And, maybe as a worked example, how do I
> trace what work is being enqueued and run by the kworker threads?
For this level of details, I think kprobes/kretprobes will not currently
allow you to fetch it. The two options we have are:
- use static tracepoints. Is there a tracepoint that targets the
information you are looking for ? Try "lttng list -k".
- or extend the dynamic probing to allow fetching variables from
debug information,
Thanks,
Mathieu
>
> Thanks,
> Bill
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
next prev parent reply other threads:[~2012-06-05 15:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-02 14:35 Bill Trost
2012-06-05 15:49 ` Mathieu Desnoyers [this message]
2012-06-06 14:48 ` Bill Trost
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=20120605154950.GA21955@Krystal \
--to=mathieu.desnoyers@efficios.com \
/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