diff --git a/tests/Regression/second-command-not-captured/ruby-exercise.stp b/tests/Regression/second-command-not-captured/ruby-exercise.stp index 404fdd1..8c5f42b 100644 --- a/tests/Regression/second-command-not-captured/ruby-exercise.stp +++ b/tests/Regression/second-command-not-captured/ruby-exercise.stp @@ -1,7 +1,9 @@ probe ruby.method.entry, ruby.cmethod.entry { - printf("%d -> %s::%s %s:%d\n", tid(), classname, methodname, file, line); + if((classname =~ "Array") && (methodname =~ "push")) + printf("%d -> %s::%s %s:%d\n", tid(), classname, methodname, file, line); } probe ruby.method.return, ruby.cmethod.return { - printf("%d <- %s::%s %s:%d\n", tid(), classname, methodname, file, line); + if((classname =~ "Array") && (methodname =~ "push")) + printf("%d <- %s::%s %s:%d\n", tid(), classname, methodname, file, line); } diff --git a/tests/Regression/second-command-not-captured/runtest.sh b/tests/Regression/second-command-not-captured/runtest.sh index fddabd1..65a749f 100755 --- a/tests/Regression/second-command-not-captured/runtest.sh +++ b/tests/Regression/second-command-not-captured/runtest.sh @@ -34,7 +34,7 @@ rlJournalStart rlPhaseStartTest rlLog "`which stap`" rlLog "`stap -V`" - rlRun "stap -s 100 -v ./ruby-exercise.stp -c ./test.sh -o stap.log" + rlRun "stap -v ./ruby-exercise.stp -c ./test.sh -o stap.log" rlRun "grep 'Array::push' stap.log" || rlFileSubmit "stap.log" rlPhaseEnd