systemtap/tests/Regression/second-command-not-captured/ruby-exercise.stp
Martin Cermak ca4fdbacfc CI Tests: make Regression/second-command-not-captured less flaky
Make Regression/second-command-not-captured less flaky by restricting
the output flow, preventing the transport buffers flood (PR29108).
2022-05-11 14:49:56 +02:00

10 lines
367 B
Plaintext

probe ruby.method.entry, ruby.cmethod.entry {
if((classname =~ "Array") && (methodname =~ "push"))
printf("%d -> %s::%s %s:%d\n", tid(), classname, methodname, file, line);
}
probe ruby.method.return, ruby.cmethod.return {
if((classname =~ "Array") && (methodname =~ "push"))
printf("%d <- %s::%s %s:%d\n", tid(), classname, methodname, file, line);
}