summaryrefslogtreecommitdiffstats
path: root/stap.1.in
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 /stap.1.in
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 'stap.1.in')
-rw-r--r--stap.1.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/stap.1.in b/stap.1.in
index e1b38878..01fb9aba 100644
--- a/stap.1.in
+++ b/stap.1.in
@@ -844,9 +844,12 @@ The translator can create its own module with type information from a header
surrounded by angle brackets, in case normal debuginfo is not available. For
kernel headers, prefix it with "kernel" to use the appropriate build system.
All other headers are build with default GCC parameters into a user module.
+Multiple headers may be specified in sequence to resolve a codependency.
.SAMPLE
@cast(tv, "timeval", "<sys/time.h>")->tv_sec
@cast(task, "task_struct", "kernel<linux/sched.h>")->tgid
+@cast(task, "task_struct",
+ "kernel<linux/sched.h><linux/fs_struct.h>")->fs->umask
.ESAMPLE
.PP
When in guru mode, the translator will also allow scripts to assign new