diff options
author | guanglei <guanglei> | 2006-05-18 02:24:06 +0000 |
---|---|---|
committer | guanglei <guanglei> | 2006-05-18 02:24:06 +0000 |
commit | d4c790043910cb1d7062cf576eef2a27391de6cc (patch) | |
tree | 277a5702eac4064b85643b46dbdfa19a11afd317 /testsuite | |
parent | 7018ffc32898930158a83d04248554581d3168f4 (diff) | |
download | systemtap-steved-d4c790043910cb1d7062cf576eef2a27391de6cc.tar.gz systemtap-steved-d4c790043910cb1d7062cf576eef2a27391de6cc.tar.xz systemtap-steved-d4c790043910cb1d7062cf576eef2a27391de6cc.zip |
testcases checking in for ioscheduler.stp, memory.stp, networking.stp,
scsi.stp, tskschedule.stp
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/buildok/ioscheduler.stp | 7 | ||||
-rwxr-xr-x | testsuite/buildok/memory.stp | 5 | ||||
-rwxr-xr-x | testsuite/buildok/networking.stp | 6 | ||||
-rwxr-xr-x | testsuite/buildok/scsi.stp | 28 | ||||
-rwxr-xr-x | testsuite/buildok/tskschedule.stp | 6 |
5 files changed, 52 insertions, 0 deletions
diff --git a/testsuite/buildok/ioscheduler.stp b/testsuite/buildok/ioscheduler.stp new file mode 100755 index 00000000..7a39c455 --- /dev/null +++ b/testsuite/buildok/ioscheduler.stp @@ -0,0 +1,7 @@ +#! stap -p4 + +probe ioscheduler.* +{ + printf("ppname: %s, elv_name: %s, %d, %d", probefunc(), + elevator_name, disk_major, disk_minor) +} diff --git a/testsuite/buildok/memory.stp b/testsuite/buildok/memory.stp new file mode 100755 index 00000000..c184e487 --- /dev/null +++ b/testsuite/buildok/memory.stp @@ -0,0 +1,5 @@ +#! stap -p4 +probe pagefault +{ + printf("ppname: %s, %d, %p\n", probefunc(), write_access, address) +} diff --git a/testsuite/buildok/networking.stp b/testsuite/buildok/networking.stp new file mode 100755 index 00000000..24f22b09 --- /dev/null +++ b/testsuite/buildok/networking.stp @@ -0,0 +1,6 @@ +#! stap -p4 +probe netdev.* +{ + printf("ppname: %s, dev_name: %s, %d, %d, %d\n", probefunc(), + dev_name, length, protocol, truesize) +} diff --git a/testsuite/buildok/scsi.stp b/testsuite/buildok/scsi.stp new file mode 100755 index 00000000..82eee0a5 --- /dev/null +++ b/testsuite/buildok/scsi.stp @@ -0,0 +1,28 @@ +#! stap -p4 +probe scsi.ioentry +{ + printf("ppname: %s, %d, %d, %d\n", probefunc(), + disk_major, disk_minor, device_state) +} + +probe scsi.iodispatching +{ + 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) +} + + +probe scsi.iodone +{ + printf("ppname: %s, %d, %d, %d, %d, %d, %d, %d\n", probefunc(), + host_no, channel, lun, dev_id, device_state, data_direction, + scsi_timer_pending) +} + +probe scsi.iocompleted +{ + printf("ppname: %s, %d, %d, %d, %d, %d, %d, %d\n", probefunc(), + host_no, channel, lun, dev_id, device_state, data_direction, + goodbytes) +} diff --git a/testsuite/buildok/tskschedule.stp b/testsuite/buildok/tskschedule.stp new file mode 100755 index 00000000..5c58b192 --- /dev/null +++ b/testsuite/buildok/tskschedule.stp @@ -0,0 +1,6 @@ +#! stap -p4 + +probe tskdispatch.ctxswitch +{ + printf("%d, %d, %d\n", prev_pid, next_pid, prevtsk_state); +} |