From 8f6d8c2bd3e5c1d2881e2ebe1c7ad5deb389e581 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Tue, 13 Oct 2009 11:52:22 -0400 Subject: 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 * 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 --- elaborate.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'elaborate.h') diff --git a/elaborate.h b/elaborate.h index d41608cb..2da4fa1e 100644 --- a/elaborate.h +++ b/elaborate.h @@ -159,6 +159,9 @@ public: // From within unparser::emit_probe, emit a check that the current // process belongs to the user. + static void print_dupe_stamp_unprivileged(std::ostream& o); + static void print_dupe_stamp_unprivileged_process_owner(std::ostream& o); + virtual bool needs_global_locks () { return true; } // by default, probes need locks around global variables }; -- cgit