+2008-05-21 Frank Ch. Eigler <fche@elastic.org>
+
+ PR 6538
+ * buildok/ioscheduler.stp, nine.stp, scsi.stp, sixteen.stp,
+ socket.stp, stat_insert.stp: Adapt to new warnings.
+ * systemtap.maps/linear_empty.exp, systemtap.samples/args.exp,
+ systemtap.samples/poll_map.stp, systemtap.string/strtol.stp: Ditto.
+
2008-05-20 Frank Ch. Eigler <fche@elastic.org>
PR 6538
-#! stap -p4
+#! stap -wp4
+
+# PR6538: "-w" is above since disk_major/disk_minor are not defined by all aliases.
probe ioscheduler.*
{
function g (arg) { }
probe begin {
- true ? f() : g(1);
+ (true=1) ? f() : g(1);
}
{
printf("ppname: %s, %d, %d, %d, %d, %d, %d, %p, %d\n", probefunc(),
host_no, channel, lun, dev_id, device_state, data_direction,
- request_buffer, req_bufflen)
+ request_buffer, request_bufflen)
}
global a
function foo () {
- if (a[k] == "sayonara") { return 2 }
+ if (a[4] == "sayonara") { return 2 }
}
-#! stap -p4
+#! stap -wp4
probe socket.send, socket.receive,
socket.sendmsg, socket.sendmsg.return,
typ = sock_type_str2num(tstr)
log(sprintf("%d, %d, %s", type, typ, tstr))
- log(sprintf("%d", success))
+ log(sprintf("%d", success)) # -w since success is not universally defined
}
i = 0
logmap[i++, "stewed"] <<< 1
logmap[i++, "boiled"] <<< 1 + 2
- logmap[i++, "baked"] <<< x
- logmap[i++, "fried"] <<< (x * y) + 3
+ logmap[i++, "baked"] <<< (x = 0)
+ logmap[i++, "fried"] <<< (x * (y=2)) + 3
}
function wobble()
set ::result_string {count=0
}
-stap_run2 $srcdir/$subdir/$test.stp
-
+stap_run2 $srcdir/$subdir/$test.stp -w
}
set modname "args_[pid]"
-spawn stap -k -p4 -m $modname $srcdir/$subdir/args.stp
+spawn stap -w -k -p4 -m $modname $srcdir/$subdir/args.stp
set tmpdir NO_SUCH_FILE
expect {
-timeout 120
global called, num_polls
probe kernel.function( "sys_*" ).call {
- called[execname(),name]++
+ called[execname(),probefunc()]++
}
probe timer.ms(1000)
printf("%d\n", strtol(teststr9, 16))
printf("%d\n", strtol(teststr9, 8))
printf("%d\n", strtol(teststr9, 2))
- printf("%d\n", strtol(teststr10, 2))
exit()
}