+2007-10-16 Martin Hunt <hunt@redhat.com>
+
+ PR 5000
+ * systemtap.printf/bin3.stp. Removed.
+ * systemtap.printf/bin3a.stp. Renamed bin3.stp.
+ * systemtap.printf/bin4.stp. Removed.
+ * systemtap.printf/bin4a.stp. Renamed bin4.stp.
+ * systemtap.printf/bin5.stp. Removed.
+ * systemtap.printf/bin5a.stp. Renamed bin5.stp.
+ * systemtap.printf/bin3.exp: Don't run bin3a.stp.
+ * systemtap.printf/bin4.exp: Don't run bin4a.stp.
+ * systemtap.printf/bin5.exp: Don't run bin5a.stp.
+
+ Increase reliability under loads.
+ * systemtap.samples/pfaults.exp: Increase MAXACTION.
+ * systemtap.context/backtrace.tcl: Handle just
+ a single userspace address.
+
2007-10-05 Frank Ch. Eigler <fche@elastic.org>
PR 1119.
incr m5
expect {
-timeout 5
- -re {^ 0x[a-f0-9]+ : [^\r\n]+\r\n} {
+ -re {^ 0x[a-f0-9]+[^\r\n]+\r\n} {
if {$m5 == 1} {incr m5}
}
}
exp_continue
}
- -re {.*---\r\nthe profile stack is 0x[a-f0-9]+ [^\r\n]+\r\n} {
+ -re {.*---\r\nthe profile stack is 0x[a-f0-9]+[^\r\n]+\r\n} {
incr m6
expect {
-timeout 5
- -re {.*---\r\n 0x[a-f0-9]+ : [^\r\n]+\r\n} {
+ -re {.*---\r\n 0x[a-f0-9]+[^\r\n]+\r\n} {
if {$m6 == 1} {incr m6}
}
}
+++ /dev/null
-# test of 16-bit binary prints
-# need to use big_endian2() to get consistent results across
-# different-endian architectures.
-
-probe begin
-{
- set_endian(2)
- printf("%2b", 0x12)
- printf("%2b", 0x34)
- printf("%2b%2b", 0xabcd, 0x5678)
- a = 0x12345678
- b = 0xabcd
- c = 0x8888
- d = 0xcdef
- printf("%2b%2b%2b%2b", a, b, c, d)
- printf("a=%2b b=%2b c=%2b d=%2b",a,b,c,d)
- exit()
-}
set test "bin3"
stap_run_binary $srcdir/$subdir/$test.stp
-set test "bin3a"
-stap_run_binary $srcdir/$subdir/$test.stp
+++ /dev/null
-# test of 16-bit binary prints
-# need to use big_endian2() to get consistent results across
-# different-endian architectures.
-
-probe begin
-{
- printf("%2b", big_endian2(0x12))
- printf("%2b", big_endian2(0x34))
- printf("%2b%2b", big_endian2(0xabcd), big_endian2(0x5678))
- a = big_endian2(0x12345678)
- b = big_endian2(0xabcd)
- c = big_endian2(0x8888)
- d = big_endian2(0xcdef)
- printf("%2b%2b%2b%2b", a, b, c, d)
- printf("a=%2b b=%2b c=%2b d=%2b",a,b,c,d)
- exit()
-}
set test "bin4"
stap_run_binary $srcdir/$subdir/$test.stp
-set test "bin4a"
-stap_run_binary $srcdir/$subdir/$test.stp
+++ /dev/null
-# test of 32-bit binary prints
-# Also tests big_endian4()
-
-probe begin
-{
- printf("%4b", big_endian4(0x12))
- printf("%4b", big_endian4(0x34))
- printf("%4b%4b", big_endian4(0xabcdef00), big_endian4(0x5678))
- a = big_endian4(0x12345678)
- b = big_endian4(0x11112222)
- c = big_endian4(0x88889999)
- d = big_endian4(0xcdef0000)
- printf("%4b%4b%4b%4b", a, b, c, d)
- printf("a=%4b b=%4b c=%4b d=%4b",a,b,c,d)
- exit()
-}
set test "bin5"
stap_run_binary $srcdir/$subdir/$test.stp
-set test "bin5a"
-stap_run_binary $srcdir/$subdir/$test.stp
+++ /dev/null
-# test of 64-bit binary prints
-# need to use big_endian8() to get consistent results across
-# different-endian architectures.
-
-probe begin
-{
- printf("%8b", big_endian8(0x12))
- printf("%8b", big_endian8(0x34))
- printf("%8b%8b", big_endian8(0xabcd000011112222), big_endian8(0x5678567856785678))
- a = big_endian8(0x0012345678abcdef)
- b = big_endian8(0x1111222233334444)
- c = big_endian8(0x88889999aaaabbbb)
- d = big_endian8(0xcdef000011112222)
- printf("%8b%8b%8b%8b", a, b, c, d)
- printf("a=%8b b=%8b c=%8b d=%8b",a,b,c,d)
- exit()
-}
set test "pfaults"
if {![installtest_p]} { untested $test; return }
-spawn stap -g $srcdir/$subdir/pfaults.stp
+spawn stap -DMAXACTION=10000 -g $srcdir/$subdir/pfaults.stp
set pid $spawn_id
set ok 0
expect {
set test "profile"
if {![installtest_p]} { untested $test; return }
-spawn stap $srcdir/$subdir/profile.stp
+spawn stap -DMAXMAPENTRIES=10000 $srcdir/$subdir/profile.stp
set ok 0
expect {
-timeout 360