Blame SOURCES/ruby-exercise.stp

79386f
/* Example tapset file.
79386f
 *
79386f
 * You can execute the tapset using following command (please adjust the path
79386f
 * prior running the command, if needed):
79386f
 * 
79386f
 * stap /usr/share/doc/ruby-2.0.0.0/ruby-exercise.stp -c "ruby -e \"puts 'test'\""
79386f
 */
79386f
79386f
probe ruby.cmethod.entry {
79386f
  printf("%d -> %s::%s %s:%d\n", tid(), classname, methodname, file, line);
79386f
}
79386f
79386f
probe ruby.cmethod.return {
79386f
  printf("%d <- %s::%s %s:%d\n", tid(), classname, methodname, file, line);
79386f
}
79386f
79386f
probe ruby.method.entry {
79386f
  printf("%d -> %s::%s %s:%d\n", tid(), classname, methodname, file, line);
79386f
}
79386f
79386f
probe ruby.method.return {
79386f
  printf("%d <- %s::%s %s:%d\n", tid(), classname, methodname, file, line);
79386f
}
79386f
79386f
probe ruby.gc.mark.begin { printf("%d gc.mark.begin\n", tid()); }
79386f
79386f
probe ruby.gc.mark.end { printf("%d gc.mark.end\n", tid()); }
79386f
79386f
probe ruby.gc.sweep.begin { printf("%d gc.sweep.begin\n", tid()); }
79386f
79386f
probe ruby.gc.sweep.end { printf("%d gc.sweep.end\n", tid()); }
79386f
79386f
probe ruby.object.create{
79386f
  printf("%d obj.create %s %s:%d\n", tid(), classname, file, line);
79386f
}
79386f
79386f
probe ruby.raise {
79386f
  printf("%d raise %s %s:%d\n", tid(), classname, file, line);
79386f
}