Blame SOURCES/ruby-exercise.stp

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