1global tracing 2 3probe process.mark("function__entry") 4{ 5 funcname = user_string($arg2); 6 7 if (funcname == "start") { 8 tracing = 1; 9 } 10} 11 12probe process.mark("gc__start"), process.mark("gc__done") 13{ 14 if (tracing) { 15 printf("%d\t%s:%ld\n", gettimeofday_us(), $$name, $arg1); 16 } 17} 18 19probe process.mark("function__return") 20{ 21 funcname = user_string($arg2); 22 23 if (funcname == "start") { 24 tracing = 0; 25 } 26} 27