方法:

  1. 从ctags/cscope中提取函数调用关系,例如devm_pinctrl_get() -> devres_add()
  2. 将关系转化为dot文件(graphviz使用的描述图结构的一种非常简单的语法)
  3. 使用graphviz中的工具(man dot)对dot文件进行布局(渲染?)并输出到特定格式的文件,如svg,ps(详见man dot)

这能有啥效果呢?请看图:

alt text

系统消息 若觉得内容不错,请点击左上角的"赞"图标,以优化网站的内容呈现。 另外,请及时验证注册邮箱,否则收不到21QA发出的红包。 官方Q群:250203055
This 问题 is marked "community wiki".

asked 18 Oct '14, 23:16

perr's gravatar image

perr
406364151

编辑于 08 Feb '17, 10:59

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link: [text](http://url.com/ "title")
  • image: ![alt](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×85

question asked: 18 Oct '14, 23:16

question was seen: 933 times

last updated: 08 Feb '17, 10:59

powered by O*S*Q*A

粤ICP备14040061号-1