有辦法查看函式被誰呼叫嗎? - Linux

Table of Contents

各位大大們好,最近小弟在對於
linux kernel的部分學習了解,
目前主要是用ctag的方式去找
出程式碼的脈絡或定義,不過
在過程中有時候也需要往下追,
不知道有沒有可以找出函式被誰呼叫的
這種工具呢?


謝謝大家

--

All Comments

Olive avatarOlive2013-09-26
呃 ... grep -r function_name .
Xanthe avatarXanthe2013-09-27
改成 grep -rn --color 好了,比較好讀 XD
Rachel avatarRachel2013-09-30
用cscope吧,可以查該symbol出現在哪裡
Rosalind avatarRosalind2013-10-02
backtrace, 或者用dump_stack (如果那玩意真的是function)
Bethany avatarBethany2013-10-04
cscope, eclipse+cdt, Windows下商業軟體source insight
Leila avatarLeila2013-10-06
還有cscope的前端kscope,不過這套我很久沒用就是了
Kelly avatarKelly2013-10-09
推一下 Eclipse CDT
James avatarJames2013-10-12
可以有很多地方呼叫這個 function 啊 這樣推不容易找
如果能 runtime 來找的話 可能容易些 用 ftrace 可以知道
James avatarJames2013-10-13