From 1d3a40b69576b5509671647e556b79ff5d6d17b7 Mon Sep 17 00:00:00 2001 From: dsmith Date: Wed, 11 Oct 2006 14:56:09 +0000 Subject: 2006-10-11 David Smith * tapsets.cxx (in_kprobes_function): New function that looks up the values of '__kprobes_text_start' and '__kprobes_text_end' in the kernel to be able to automatically exclude functions marked as '__kprobes' (BZ# 2639). (blacklisted_p): Calls in_kprobes_function(). (query_kernel_module): Utility function that finds the kernel module. * session.h (struct systemtap_session): Added kprobes_text variables - kprobes_text_initialized, kprobes_text_start, and kprobes_text_end. * elaborate.cxx (systemtap_session::systemtap_session): kprobes_text variables get initialized. --- session.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'session.h') diff --git a/session.h b/session.h index fa8d375a..75e13136 100644 --- a/session.h +++ b/session.h @@ -16,6 +16,10 @@ #include #include +extern "C" { +#include +} + // forward decls for all referenced systemtap types struct match_node; @@ -109,6 +113,11 @@ struct systemtap_session translator_output* op; unparser* up; + // kprobes_text data + bool kprobes_text_initialized; + Dwarf_Addr kprobes_text_start; + Dwarf_Addr kprobes_text_end; + unsigned num_errors; // void print_error (const parse_error& e); void print_error (const semantic_error& e); -- cgit