summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/cast.stp
Commit message (Collapse)AuthorAgeFilesLines
* PR5930: Address-op for $target and @cast membersJosh Stone2009-07-151-0/+9
| | | | | | | | | | | | | | | | This allows the '&' operator to get the address of @cast and $target variable expressions. * staptree.h (target_symbol): add addressof field * staptree.cxx (target_symbol::print): print '&' for addressof (cast_op::print): ditto * parse.cxx (parser::parse_value): allow '&' prefix on $target/@cast * dwflpp.cxx (dwflpp::translate_final_fetch_or_store): allow taking the computed address without actually doing a final fetch. * tapset* (*::visit_target_symbol): throw errors for $vars w/o addresses * testsuite/systemtap.base/cast.stp: add &@cast test * testsuite/semok/target_addr.stp: test '&' on different member types * testsuite/semko/target_addr?.stp: test failure on bitfields/registers
* Use sockaddr instead of timeval in @cast testJosh Stone2009-04-291-10/+14
| | | | | | | | Using timeval had problems on big-endian multi-arch platforms (ppc64), because the user tv_sec used in the @cast didn't match the kernel tv_sec used to provide a pointer. Hopefully reading from a sockaddr should be more robust, as that type doesn't appear to need any compat wrappers for multi-archs.
* Refine the @cast-with-header syntaxJosh Stone2009-04-211-2/+2
| | | | | | | 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).
* Add tests for @cast-generated modulesJosh Stone2009-04-201-0/+21
|
* Add simple testcases for @castJosh Stone2009-03-111-0/+22