Blame SOURCES/ruby-exercise.stp

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