Blame SOURCES/ruby-exercise.stp

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