summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-03-12 11:39:52 -0800
committerJosh Stone <jistone@redhat.com>2010-03-12 11:39:52 -0800
commit8d2d198796f66c82b7147cd9167c1a43265b9ba2 (patch)
tree6e50d43d8ae342b4ad443f0fdbd7529d243b6f34 /testsuite
parentcd4d1d39af22d4a06ebe48209feb0b408c331887 (diff)
downloadsystemtap-steved-8d2d198796f66c82b7147cd9167c1a43265b9ba2.tar.gz
systemtap-steved-8d2d198796f66c82b7147cd9167c1a43265b9ba2.tar.xz
systemtap-steved-8d2d198796f66c82b7147cd9167c1a43265b9ba2.zip
Get d_path's root natively with @cast
As mjw's aborted commit 5ab0b1b6 attempted, we can use a @cast to get the filesystem root for the current task instead of embedded-C. I've left it using the kernel debuginfo instead of headers for now, because all of the neighboring @casts are doing the same. * tapset/dentry.stp (d_path): Use @cast to get the root. (__dentry_get_current_root): Remove, no longer needed. * testsuite/buildok/dentry.stp: Test that dentry's functions all build.
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/buildok/dentry.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/buildok/dentry.stp b/testsuite/buildok/dentry.stp
new file mode 100755
index 00000000..ed9b7c08
--- /dev/null
+++ b/testsuite/buildok/dentry.stp
@@ -0,0 +1,8 @@
+#! stap -p4
+
+probe begin
+{
+ println(d_name(0))
+ println(d_path(0))
+ println(reverse_path_walk(0))
+}