summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/cast.stp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-03-10 19:17:40 -0800
committerJosh Stone <jistone@redhat.com>2010-03-10 19:24:14 -0800
commitda9e11bd5cd3cbedbf794a0e8a83956bd178ba60 (patch)
treed727a14411eeda77c767fa30fe09ab4895b43798 /testsuite/semok/cast.stp
parente54c1d239a7dba1954dfc8359e62c94329b44a6a (diff)
downloadsystemtap-steved-da9e11bd5cd3cbedbf794a0e8a83956bd178ba60.tar.gz
systemtap-steved-da9e11bd5cd3cbedbf794a0e8a83956bd178ba60.tar.xz
systemtap-steved-da9e11bd5cd3cbedbf794a0e8a83956bd178ba60.zip
PR11370: Add multi-header @casts
Sometimes you need multiple headers to fully describe a type, so we now permit them to be listed together, e.g. "kernel<foo.h><bar.h>". * buildrun.cxx (make_typequery): Split the input string into a vector. (make_typequery_kmod, make_typequery_umod): Use the vector of headers. * testsuite/semok/cast.stp: Add a multi-header case. * stap.1.in, NEWS: Document it.
Diffstat (limited to 'testsuite/semok/cast.stp')
-rwxr-xr-xtestsuite/semok/cast.stp3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/semok/cast.stp b/testsuite/semok/cast.stp
index 14401886..d3606a50 100755
--- a/testsuite/semok/cast.stp
+++ b/testsuite/semok/cast.stp
@@ -15,6 +15,9 @@ probe begin {
println(@cast(0, "task_struct", "kernel<linux/sched.h>")->tgid)
println(@cast(0, "timeval", "<sys/time.h>")->tv_sec)
+ // sometimes multiple headers are needed in tandem
+ println(@cast(0, "task_struct", "kernel<linux/sched.h><linux/fs_struct.h>")->fs->umask)
+
// make sure that bogus @casts can get optimized away
@cast(0, "task_struct")->no_such_field
@cast(0, "task_struct")->parent->no_such_field