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. --- elaborate.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'elaborate.cxx') diff --git a/elaborate.cxx b/elaborate.cxx index c3b9cbe9..99126fb5 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -997,7 +997,10 @@ semantic_pass (systemtap_session& s) systemtap_session::systemtap_session (): pattern_root(new match_node), - user_file (0), op (0), up (0), num_errors (0) + user_file (0), op (0), up (0), + kprobes_text_initialized (false), + kprobes_text_start (0), kprobes_text_end (0), + num_errors (0) { } -- cgit