Re: [RFC] ftrace: support tracing functions in one module

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arnaldo Carvalho de Melo
Date: Monday, August 4, 2008 - 9:15 am

Em Mon, Aug 04, 2008 at 10:11:17AM +0800, Ming Lei escreveu:

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?

- Arnaldo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] ftrace: support tracing functions in one module, Frank Ch. Eigler, (Sun Aug 3, 5:19 am)
Re: [RFC] ftrace: support tracing functions in one module, Steven Rostedt, (Sun Aug 3, 7:45 am)
Re: [RFC] ftrace: support tracing functions in one module, Abhishek Sagar, (Sun Aug 3, 8:16 am)
Re: [RFC] ftrace: support tracing functions in one module, Arnaldo Carvalho de Melo, (Mon Aug 4, 9:15 am)
Re: [RFC] ftrace: support tracing functions in one module, Steven Rostedt, (Mon Aug 4, 9:28 am)
Re: [RFC] ftrace: support tracing functions in one module, Arnaldo Carvalho de Melo, (Mon Aug 4, 10:18 am)