massive-coderunner

module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2022 License: Apache-2.0

README

Massive Roadrunner

基于Funtrace的针对RunC底层代码的分析工具。模块更新中。

Description

用于静态分析RunC的源代码。在functrace的基础上,实现两个定位模块:

  • 函数级的搜索模块:给定一个函数名、或者函数参数的名称后,能够通过AST定位到runc调用链中满足条件的目标函数(或者包含给定参数的函数)
  • 函数内部的搜索模块:给定了一个函数的参数,能够跟踪函数内部对这个参数进行操作的语句

Install

Sample

Usage

To analysis and save and query structured AST tree.

To analysis and save and query structured AST tree.

Usage:
astool analysis <file>
astool locate <function>
astool trace <function>:<arg>
astool -h
astool -v

Options:
analysis <file>         :To analysis target file and gather useful information. 
locate <function>       :To locate function by name. Be sure all files you need to search were resolved successfully before.
trace <function>:<arg>  :To trace the statement inside the function that operates on this parameter.
-h                      :Show this screen.
-v                      :Show version.

分析后的文件存放在./data/<packname>/<filename>.json.

Self-Compile

Attention

  • While inputting filepath, DON'T use \ as separators. Use / instead.

TODO

  • Batch process files
  • Better performance
  • Limited workspace
  • Database added for analysis data?
  • Bad AST handle
  • ...

Directories

Path Synopsis
cmd
pkg
analysis
Package analysis @Title analysis @Description @Reference https://www.codeleading.com/article/56096064668/
Package analysis @Title analysis @Description @Reference https://www.codeleading.com/article/56096064668/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL