diff options
author | dsmith <dsmith> | 2006-10-11 14:56:09 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2006-10-11 14:56:09 +0000 |
commit | 1d3a40b69576b5509671647e556b79ff5d6d17b7 (patch) | |
tree | 3d412ded6c556114fbd683076a5585a2a909fc1b /elaborate.cxx | |
parent | 6e5aef4f27a2d02de416539062987acbf209e841 (diff) | |
download | systemtap-steved-1d3a40b69576b5509671647e556b79ff5d6d17b7.tar.gz systemtap-steved-1d3a40b69576b5509671647e556b79ff5d6d17b7.tar.xz systemtap-steved-1d3a40b69576b5509671647e556b79ff5d6d17b7.zip |
2006-10-11 David Smith <dsmith@redhat.com>
* 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.
Diffstat (limited to 'elaborate.cxx')
-rw-r--r-- | elaborate.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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) { } |