]> sourceware.org Git - systemtap.git/commitdiff
Run probefunc inline testcase with --compatible=1.8.
authorMark Wielaard <mjw@redhat.com>
Mon, 19 Nov 2012 20:43:40 +0000 (21:43 +0100)
committerMark Wielaard <mjw@redhat.com>
Mon, 19 Nov 2012 20:43:40 +0000 (21:43 +0100)
In the new implementation we will observe the name of the function where
this gets inlined, not the inlined function name itself. With the old
implementation of probefunc() it would get the name from the actual
probe string. Test the old behavior explicitly.

testsuite/systemtap.base/probefunc.exp

index e5abe22a76a72e65f9f3185a8c6a5e4e6c01f425..e4d6493ea129e26ecb82cee9df6c3f7f3102036a 100644 (file)
@@ -50,7 +50,8 @@ set script [format $systemtap_script $probepoint]
 stap_run $prefix$probepoint sleep_one_sec $output_string -e $script
 
 # test probefunc() with kernel.function().inline
+# NOTE probefunc inline behavior changed after 1.8.
 set output_string "\\mcontext_switch\\M\r\n"
 set probepoint "kernel.function(\"context_switch\").inline"
 set script [format $systemtap_script $probepoint]
-stap_run $prefix$probepoint sleep_one_sec $output_string -e $script
+stap_run $prefix$probepoint sleep_one_sec $output_string -e $script --compatible=1.8
This page took 0.025805 seconds and 5 git commands to generate.