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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frank Ch. Eigler
Date: Sunday, August 3, 2008 - 5:19 am

"Ming Lei" <tom.leiming@gmail.com> writes:


Until ftrace gains this ability, you could use systemtap:

# cat callret.stp
probe $1.call { printf ("%s <- %s\n", thread_indent(1), probefunc()) }
probe $1.return { printf ("%s -> %s\n", thread_indent(-1), probefunc()) }
# stap callret.stp 'module("usbcore").function("*")'
[...]
^C
#

(One can also add conditions based on function parameters, processes,
whatever; soon it'll be easy to trace all function parameters.)


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