kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Ftracing in kernel
       [not found] <AANLkTinLPF-gQkh99bi1hNd+84T-H07YZMytZWu=vjsY@mail.gmail.com>
@ 2011-02-21 13:34 ` Erlon Cruz
  2011-02-21 17:29   ` Mulyadi Santosa
  0 siblings, 1 reply; 4+ messages in thread
From: Erlon Cruz @ 2011-02-21 13:34 UTC (permalink / raw)
  To: kernelnewbies

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110221/9a7f5486/attachment-0001.html 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Ftracing in kernel
  2011-02-21 13:34 ` Ftracing in kernel Erlon Cruz
@ 2011-02-21 17:29   ` Mulyadi Santosa
  2011-02-21 18:08     ` Erlon Cruz
  0 siblings, 1 reply; 4+ messages in thread
From: Mulyadi Santosa @ 2011-02-21 17:29 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Ftracing in kernel
  2011-02-21 17:29   ` Mulyadi Santosa
@ 2011-02-21 18:08     ` Erlon Cruz
  2011-02-22  4:56       ` Mulyadi Santosa
  0 siblings, 1 reply; 4+ messages in thread
From: Erlon Cruz @ 2011-02-21 18:08 UTC (permalink / raw)
  To: kernelnewbies

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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Ftracing in kernel
  2011-02-21 18:08     ` Erlon Cruz
@ 2011-02-22  4:56       ` Mulyadi Santosa
  0 siblings, 0 replies; 4+ messages in thread
From: Mulyadi Santosa @ 2011-02-22  4:56 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-22  4:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <AANLkTinLPF-gQkh99bi1hNd+84T-H07YZMytZWu=vjsY@mail.gmail.com>
2011-02-21 13:34 ` Ftracing in kernel Erlon Cruz
2011-02-21 17:29   ` Mulyadi Santosa
2011-02-21 18:08     ` Erlon Cruz
2011-02-22  4:56       ` Mulyadi Santosa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).