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. --- stapprobes.5.in | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'stapprobes.5.in') diff --git a/stapprobes.5.in b/stapprobes.5.in index d457f260..a5e20526 100644 --- a/stapprobes.5.in +++ b/stapprobes.5.in @@ -95,8 +95,17 @@ variant places a probe near the beginning of the named function, so that parameters are available as context variables. The .B .return variant places a probe at the moment of return from the named function, so -the return value is available as the "$retvalue" context variable. +the return value is available as the "$retvalue" context variable. The +.B .inline +variant is similar to +.B .function +but probes inline functions. Inline functions do not have an identifiable +return point, so +.B .return +is not supported on +.B .inline +probes. The .B .statement variant places a probe at the exact spot, exposing those local variables that are visible there. @@ -105,10 +114,14 @@ kernel.function(PATTERN) .br kernel.function(PATTERN).return .br +kernel.inline(PATTERN) +.br module(MPATTERN).function(PATTERN) .br module(MPATTERN).function(PATTERN).return .br +module(MPATTERN).inline(PATTERN) +.br kernel.statement(PATTERN) .br module(MPATTERN).statement(PATTERN) -- cgit