From 54efe513a4b01f433dba37f3106e4907028247f0 Mon Sep 17 00:00:00 2001 From: graydon Date: Mon, 17 Oct 2005 23:52:34 +0000 Subject: 2005-10-17 Graydon Hoare * testsuite/semko/twentyone.stp: Check function doesn't match inline. * testsuite/semko/twentytwo.stp: Check inline doesn't match function. * testsuite/buildok/six.stp: Change "function" to "inline". * stapprobes.5.in: Describe "inline" probes. * tapsets.cxx (TOK_INLINE): New token "inline". (dwarf_query::has_inline_str) (dwarf_query::has_inline_num) (dwarf_query::inline_str_val) (dwarf_query::inline_num_val): New members. (dwarf_query::dwarf_query): Load new members. (query_dwarf_inline_instance) (query_dwarf_func) (query_cu) (query_module) (dwarf_derived_probe::add_probe_point) (dwarf_builder::build): Use inline-related members where appropriate. (dwarf_derived_probe::register_inline_variants): New method. (dwarf_derived_probe::register_function_and_statement_variants): Call it. --- testsuite/buildok/six.stp | 2 +- testsuite/semko/twentyone.stp | 8 ++++++++ testsuite/semko/twentytwo.stp | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 testsuite/semko/twentyone.stp create mode 100755 testsuite/semko/twentytwo.stp (limited to 'testsuite') diff --git a/testsuite/buildok/six.stp b/testsuite/buildok/six.stp index a11014fe..589a8b44 100755 --- a/testsuite/buildok/six.stp +++ b/testsuite/buildok/six.stp @@ -4,6 +4,6 @@ # listed in PR 1155 we cannot resolve the parameters of the inline # at the moment. -probe kernel.function("context_switch") { +probe kernel.inline("context_switch") { log ("found an inline function") } diff --git a/testsuite/semko/twentyone.stp b/testsuite/semko/twentyone.stp new file mode 100755 index 00000000..9137a88b --- /dev/null +++ b/testsuite/semko/twentyone.stp @@ -0,0 +1,8 @@ +#! stap -p4 + +# tests that an inline function is *not* matched using +# the function() pattern + +probe kernel.function("context_switch") { + log ("found an inline via function()") +} diff --git a/testsuite/semko/twentytwo.stp b/testsuite/semko/twentytwo.stp new file mode 100755 index 00000000..cb67c896 --- /dev/null +++ b/testsuite/semko/twentytwo.stp @@ -0,0 +1,8 @@ +#! stap -p4 + +# tests that a non-inline function is *not* matched using +# the inline() pattern + +probe kernel.inline("sys_recv") { + log ("found a non-inline via inline()") +} -- cgit