Hi folks, I've configured my kernel(2.6.35) to support ftrace*. Everything seems to be ok. After I mounted the debugfs folder I can find all tracing stuffs there. The problem is not of all functions on my module seems to be listed in the funtions supported for tracing. In the file *available_filter_functions *that suppose to list all functions traced, only show 4 or 5 functions of my module. Does anyone knows why some functions are not listed? Regards, Erlon *CONFIG_FUNCTION_TRACER CONFIG_FUNCTION_GRAPH_TRACER CONFIG_STACK_TRACER CONFIG_DYNAMIC_FTRACE
On Mon, Feb 21, 2011 at 20:34, Erlon Cruz <sombrafam@gmail.com> wrote:
Hi folks, I've configured my kernel(2.6.35) to support ftrace*. Everything seems to be ok. After I mounted the debugfs folder I can find all tracing stuffs there. The problem is not of all functions on my module seems to be listed in the funtions supported for tracing. In the file available_filter_functions that suppose to list all functions traced, only show 4 or 5 functions of my module. Does anyone knows why some functions are not listed?
wild guess, because they are either static or inlined or both? -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
Hmm...interesting guess. I made this change, declaring all functions as non static and the trace worked on then. Sweet! What made me get confused is that before this change, some of the functions traced correctly with ftrace were static. On Mon, Feb 21, 2011 at 2:29 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote:
On Mon, Feb 21, 2011 at 20:34, Erlon Cruz <sombrafam@gmail.com> wrote:
Hi folks, I've configured my kernel(2.6.35) to support ftrace*. Everything seems to be ok. After I mounted the debugfs folder I can find all tracing stuffs there. The problem is not of all functions on my module seems to be listed in the funtions supported for tracing. In the file available_filter_functions that suppose to list all functions traced, only show 4 or 5 functions of my module. Does anyone knows why some functions are not listed?
wild guess, because they are either static or inlined or both?
-- regards,
Mulyadi Santosa Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
On Tue, Feb 22, 2011 at 01:08, Erlon Cruz <sombrafam@gmail.com> wrote:
Hmm...interesting guess. I made this change, declaring all functions as non static and the trace worked on then. Sweet! What made me get confused is that before this change, some of the functions traced correctly with ftrace were static.
Congrats :) Well, perhaps it is something related to symbol lookup...but all in all, it's a good note for all of us..... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
participants (2)
-
Erlon Cruz -
Mulyadi Santosa