Blame SOURCES/ruby-exercise.stp

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