diff options
author | Dave Brolley <brolley@redhat.com> | 2009-10-13 11:52:22 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-10-13 11:52:22 -0400 |
commit | 8f6d8c2bd3e5c1d2881e2ebe1c7ad5deb389e581 (patch) | |
tree | f8a2e01b07e9fd351a1d598846b5d51ee69736f1 /tapset-been.cxx | |
parent | 2865d17a48d055b3aef6e45506292908800cdb21 (diff) | |
download | systemtap-steved-8f6d8c2bd3e5c1d2881e2ebe1c7ad5deb389e581.tar.gz systemtap-steved-8f6d8c2bd3e5c1d2881e2ebe1c7ad5deb389e581.tar.xz systemtap-steved-8f6d8c2bd3e5c1d2881e2ebe1c7ad5deb389e581.zip |
Ensure that unprivileged-authorized probe point functions are hashed differently
than non-authorized ones for the purpose of removing duplicates.
2009-10-13 Dave Brolley <brolley@redhat.com>
* elaborate.h (print_dupe_stamp_unprivileged): New static method
of derived_probe.
(print_dupe_stamp_unprivileged_process_owner): Likewise.
* elaborate.cxx (print_dupe_stamp_unprivileged): New static method
of derived_probe.
(print_dupe_stamp_unprivileged_process_owner): Likewise.
* tapset-been.cxx (print_dupe_stamp): New virtual method of be_derived_p
robe
and never_derived_probe.
* tapset-utrace.cxx (print_dupe_stamp): New virtual method of utrace_der
ived_probe
* tapset-itrace.cxx (itrace_derived_probe::emit_unprivileged_assertion):
Removed.
(itrace_builder::check_unprivileged): Removed.
* tapsets.cxx (print_dupe_stamp): New virtual method of uprobe_derived_p
robe
Diffstat (limited to 'tapset-been.cxx')
-rw-r--r-- | tapset-been.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tapset-been.cxx b/tapset-been.cxx index 002bf66a..d7d74c33 100644 --- a/tapset-been.cxx +++ b/tapset-been.cxx @@ -56,6 +56,8 @@ struct be_derived_probe: public derived_probe // unprivileged users. void emit_unprivileged_assertion (translator_output*) {} + void print_dupe_stamp(ostream& o) { print_dupe_stamp_unprivileged (o); } + bool needs_global_locks () { return false; } // begin/end probes don't need locks around global variables, since // they aren't run concurrently with any other probes @@ -197,7 +199,7 @@ struct never_derived_probe: public derived_probe never_derived_probe (probe* p, probe_point* l): derived_probe (p, l) {} void join_group (systemtap_session&) { /* thus no probe_group */ } void emit_unprivileged_assertion (translator_output*) {} - + void print_dupe_stamp(ostream& o) { print_dupe_stamp_unprivileged (o); } }; |