From: Arnaldo Carvalho de Melo <acme@redhat.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>,
Ming Lei <tom.leiming@gmail.com>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Andrew Morton <akpm@linux-foundation.org>,
Steven Rostedt <srostedt@redhat.com>
Subject: Re: [RFC] ftrace: support tracing functions in one module
Date: Mon, 4 Aug 2008 14:18:56 -0300 [thread overview]
Message-ID: <20080804171856.GB17964@ghostprotocols.net> (raw)
In-Reply-To: <alpine.DEB.1.10.0808041225330.19776@gandalf.stny.rr.com>
Em Mon, Aug 04, 2008 at 12:28:12PM -0400, Steven Rostedt escreveu:
>
> On Mon, 4 Aug 2008, Arnaldo Carvalho de Melo wrote:
> > >
> > > Do you have the plan to support tracing functions in one module or in one kernel
> > > address range?
> >
> > What about using:
> >
> > [acme@doppio pahole]$ nm --defined-only /usr/lib/debug/lib/modules/2.6.24.7-75.el5rt/kernel/drivers/net/tg3.ko.debug | grep ' t ' | cut -d' ' -f3 | head
> > __tg3_set_coalesce
> > __tg3_set_mac_addr
> > __tg3_set_rx_mode
> > _tw32_flush
> > tg3_5700_link_polarity
> > tg3_abort_hw
> > tg3_alloc_rx_skb
> > tg3_ape_driver_state_change
> > tg3_bmcr_reset
> > tg3_change_mtu
> > [acme@doppio pahole]$
> >
> > Feed this to /sys/kernel/debug/tracing/set_ftrace_filter and you should
> > be set, no?
> >
> > Ok, you need to have the kernel-debuginfo package installed, and I guess
> > we can get away with that, but for now, isn't that enough?
>
>
> Or simply (again for tg3 :
>
>
> # awk '/\[tg3\]/ { print $3 }' /proc/kallsyms \
> > /debug/tracing/set_ftrace_filter
For the drivers that do proper namespacing, yes, that should be enough
in most cases :)
- Arnaldo
next prev parent reply other threads:[~2008-08-04 17:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-03 7:50 [RFC] ftrace: support tracing functions in one module Ming Lei
2008-08-03 12:19 ` Frank Ch. Eigler
2008-08-03 14:45 ` Steven Rostedt
2008-08-04 2:11 ` Ming Lei
2008-08-04 16:15 ` Arnaldo Carvalho de Melo
2008-08-04 16:28 ` Steven Rostedt
2008-08-04 17:18 ` Arnaldo Carvalho de Melo [this message]
2008-08-03 15:16 ` Abhishek Sagar
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=20080804171856.GB17964@ghostprotocols.net \
--to=acme@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=srostedt@redhat.com \
--cc=tom.leiming@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.