Sindbad~EG File Manager

Current Path : /proc/1603417/root/usr/share/systemtap/examples/general/
Upload File :
Current File : //proc/1603417/root/usr/share/systemtap/examples/general/para-callgraph.stp

#!/usr/bin/stap

function trace(entry_p, extra) {
  %( $# > 1 %? if (tid() in trace) %)
  printf("%s%s%s %s\n",
         thread_indent (entry_p),
         (entry_p>0?"->":"<-"),
         ppfunc (),
         extra)
}


%( $# > 1 %?
global trace
probe $2.call {
  trace[tid()] = 1
}
probe $2.return {
  delete trace[tid()]
}
%)

probe $1.call   { trace(1, $$parms) }
probe $1.return { trace(-1, $$return) }

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists