From a3b4f52cd67ff11dfc12e8e878744ea1319308ef Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 27 Aug 2009 15:43:51 -0700 Subject: PR10568: Ensure that aliases pull in their tapset When a probe alias is resolved in a tapset, the contents of that tapset should be included in the compiled script, just as we do for global variables and functions. * elaborate.cxx (alias_expansion_builder::build): When an alias is instantiated, add its stapfile to the session files. * testsuite/systemtap.base/tapset_includes.exp: New test. * testsuite/systemtap.base/tapset/*.stp: Testing tapsets for above. --- testsuite/systemtap.base/tapset/function.stp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 testsuite/systemtap.base/tapset/function.stp (limited to 'testsuite/systemtap.base/tapset/function.stp') diff --git a/testsuite/systemtap.base/tapset/function.stp b/testsuite/systemtap.base/tapset/function.stp new file mode 100644 index 00000000..45c5f372 --- /dev/null +++ b/testsuite/systemtap.base/tapset/function.stp @@ -0,0 +1,6 @@ +function test_function:long() { + return 1 +} +probe begin { + println("included function") +} -- cgit