From d4c790043910cb1d7062cf576eef2a27391de6cc Mon Sep 17 00:00:00 2001 From: guanglei Date: Thu, 18 May 2006 02:24:06 +0000 Subject: testcases checking in for ioscheduler.stp, memory.stp, networking.stp, scsi.stp, tskschedule.stp --- testsuite/buildok/ioscheduler.stp | 7 +++++++ testsuite/buildok/memory.stp | 5 +++++ testsuite/buildok/networking.stp | 6 ++++++ testsuite/buildok/scsi.stp | 28 ++++++++++++++++++++++++++++ testsuite/buildok/tskschedule.stp | 6 ++++++ 5 files changed, 52 insertions(+) create mode 100755 testsuite/buildok/ioscheduler.stp create mode 100755 testsuite/buildok/memory.stp create mode 100755 testsuite/buildok/networking.stp create mode 100755 testsuite/buildok/scsi.stp create mode 100755 testsuite/buildok/tskschedule.stp (limited to 'testsuite') 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); +} -- cgit