* [HELP] How to use ftrace to learn how a function is ivoked?
@ 2014-04-03 6:36 Du, ChangbinX
2014-04-03 7:03 ` Li, Aubrey
0 siblings, 1 reply; 2+ messages in thread
From: Du, ChangbinX @ 2014-04-03 6:36 UTC (permalink / raw)
To: linux-kernel@vger.kernel.org
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 643 bytes --]
Hi, All,
I have a question for ftrace usage. It is that if I have a function A, then I want to
know how function A is ivoked?
I know ftrace can show me what sub-functions that A called by below steps:
# echo function_graph > current_tracer
¡¡¡¡# echo function_A > set_graph_function
# cat trace
Then a call stack will show what functions A has called. But sometimes I want to
know how A is called. Is there a method to do this? Please help me!
Regards and Thanks!
Du, Changbin
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [HELP] How to use ftrace to learn how a function is ivoked?
2014-04-03 6:36 [HELP] How to use ftrace to learn how a function is ivoked? Du, ChangbinX
@ 2014-04-03 7:03 ` Li, Aubrey
0 siblings, 0 replies; 2+ messages in thread
From: Li, Aubrey @ 2014-04-03 7:03 UTC (permalink / raw)
To: Du, ChangbinX, linux-kernel@vger.kernel.org
On 2014/4/3 14:36, Du, ChangbinX wrote:
> Hi, All,
> I have a question for ftrace usage. It is that if I have a function A, then I want to
> know how function A is ivoked?
> I know ftrace can show me what sub-functions that A called by below steps:
> # echo function_graph > current_tracer
> # echo function_A > set_graph_function
> # cat trace
> Then a call stack will show what functions A has called. But sometimes I want to
> know how A is called. Is there a method to do this? Please help me!
dump_stack(), kprobe, AFAIK.
Thanks,
-Aubrey
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-03 7:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-03 6:36 [HELP] How to use ftrace to learn how a function is ivoked? Du, ChangbinX
2014-04-03 7:03 ` Li, Aubrey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox