summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-04-21 12:08:42 -0700
committerJosh Stone <jistone@redhat.com>2009-04-21 12:34:43 -0700
commitd90053e72a515371936e10bf83ecb822aec91b17 (patch)
tree4589b3f1e0cb79b47d7d02c0eb49ac97079713fc /testsuite
parent31a0ad65c838d0530b321c75c5b328828daa71ac (diff)
downloadsystemtap-steved-d90053e72a515371936e10bf83ecb822aec91b17.tar.gz
systemtap-steved-d90053e72a515371936e10bf83ecb822aec91b17.tar.xz
systemtap-steved-d90053e72a515371936e10bf83ecb822aec91b17.zip
Refine the @cast-with-header syntax
The special syntax to generate a module for type information is now: - "kernel<path/to/header.h>" to use the kernel's build environment - "<path/to/header.h>" to use no special build environment, and so use gcc's default parameters only (for user mode).
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/semok/cast.stp4
-rw-r--r--testsuite/systemtap.base/cast.stp4
2 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/semok/cast.stp b/testsuite/semok/cast.stp
index d30823cd..769335f2 100755
--- a/testsuite/semok/cast.stp
+++ b/testsuite/semok/cast.stp
@@ -12,6 +12,6 @@ probe begin {
// but who knows what debuginfo is installed...
// check modules generated from headers
- println(@cast(0, "task_struct", "kmod<linux/sched.h>")->tgid)
- println(@cast(0, "timeval", "umod<sys/time.h>")->tv_sec)
+ println(@cast(0, "task_struct", "kernel<linux/sched.h>")->tgid)
+ println(@cast(0, "timeval", "<sys/time.h>")->tv_sec)
}
diff --git a/testsuite/systemtap.base/cast.stp b/testsuite/systemtap.base/cast.stp
index 33a14a28..6298a06d 100644
--- a/testsuite/systemtap.base/cast.stp
+++ b/testsuite/systemtap.base/cast.stp
@@ -11,7 +11,7 @@ probe begin
printf("PID %d != %d\n", pid, cast_pid)
// Compare PIDs using a generated kernel module
- cast_pid = @cast(curr, "task_struct", "kmod<linux/sched.h>")->tgid
+ cast_pid = @cast(curr, "task_struct", "kernel<linux/sched.h>")->tgid
if (pid == cast_pid)
println("PID2 OK")
else
@@ -27,7 +27,7 @@ probe begin
// Compare tv_sec using a generated user module
sec = 42
- cast_sec = @cast(get_timeval(sec), "timeval", "umod<sys/time.h>")->tv_sec
+ cast_sec = @cast(get_timeval(sec), "timeval", "<sys/time.h>")->tv_sec
if (sec == cast_sec)
println("tv_sec OK")
else