Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reducing the taint graph #29

Closed
yasaminmahmoodi opened this issue Jan 30, 2019 · 4 comments
Closed

Reducing the taint graph #29

yasaminmahmoodi opened this issue Jan 30, 2019 · 4 comments

Comments

@yasaminmahmoodi
Copy link

Hello,

I use taintgrind for SystemC project. It taints all the SystemC library modules which are used in the project. Therefore, the Graphviz file will be a big one, so that it is difficult to visualize.
I would like to know if it is possible to only show the output of my modules in the graph.

Thank you for your help!

@wmkhoo
Copy link
Owner

wmkhoo commented Jan 31, 2019

I'm not familiar with any tools that work with dot files.
You could try manually reducing the graph yourself using any text editor, i.e. remove all the subgraphs you're not interested in.

@wmkhoo wmkhoo changed the title Data graph Reducing the taint graph Jan 31, 2019
@yasaminmahmoodi
Copy link
Author

ok,
Thank you for your help.

@wmkhoo wmkhoo closed this as completed Jun 10, 2019
@yasaminmahmoodi
Copy link
Author

yasaminmahmoodi commented Apr 21, 2021

Hi again,

Thank you for adding head=yes option to limit propagation of tainted data. It is a great option!
It would be also great if there was an option to print output of taintgrind based on the Address/Location part. In this way we could limit the printed output based on some certain modules.
Or if it was possible to skip printing some outputs based on Address/Location.

Thanks

@wmkhoo
Copy link
Owner

wmkhoo commented May 5, 2021

One option is to use grep to filter the desired output, e.g.

$ <taintgrind command> 2>&1 | grep -E "module1|module2"

The above command will print only lines containing the string "module1" or "module2".
Another option is to modify the log2dot.py Python script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants