From da9e11bd5cd3cbedbf794a0e8a83956bd178ba60 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 10 Mar 2010 19:17:40 -0800 Subject: 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". * 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. --- testsuite/semok/cast.stp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testsuite/semok') 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")->tgid) println(@cast(0, "timeval", "")->tv_sec) + // sometimes multiple headers are needed in tandem + println(@cast(0, "task_struct", "kernel")->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 -- cgit