Saturday, January 6, 2007

Yet Another Fun Tool

So as you've probably noticed I'm becoming a graphviz weenie, meaning I'm trying to write programs that use it as much as possible. It's not the only form of visualization but it's fun none the less especially since pydot makes it so trivial. So on the commute into work the other day I was bored and looking at kdump output. Which if you've ever looked at it tends to be a lot of data. Alot of it's useful however when you want to see calling relationships it can be a pain in the butt. See where I'm going yet?



I wrote a silly little script that takes the textual output of kdump and turns it into graphviz. I'm calling it ktrace-grapher.py. Like most things I seem to be releasing the code is somewhat rough. Feel free to play with it or add features.



Sample output can be found here



Things that need to be handled properly:





  • the exec family of functions

  • layout of multiple paths to functions

  • currently I ignore NAMI and GIO stuff


0 comments: