From c4a048331603a3fe19c886498e957f5f2a577ed9 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 20 Nov 2014 16:30:20 -0500 Subject: [PATCH] PR17126: put hcall_* kernel tracepoints into blacklist for powerpc * tapsets.cxx (tracepoint_query::handle_query_func): Implement baby blacklist. --- tapsets.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tapsets.cxx b/tapsets.cxx index 6e2bae5bf..0b4e0d870 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -10900,6 +10900,20 @@ tracepoint_query::handle_query_func(Dwarf_Die * func) if (!probed_names.insert(tracepoint_instance).second) return DWARF_CB_OK; + // PR17126: blacklist + if (!sess.guru_mode) + { + if ((sess.architecture.substr(0,3) == "ppc" || + sess.architecture.substr(0,7) == "powerpc") && + (tracepoint_instance == "hcall_entry" || + tracepoint_instance == "hcall_exit")) + { + sess.print_warning(_F("tracepoint %s is blacklisted on architecture %s", + tracepoint_instance.c_str(), sess.architecture.c_str())); + return DWARF_CB_OK; + } + } + derived_probe *dp = new tracepoint_derived_probe (dw.sess, dw, *func, tracepoint_instance, base_probe, base_loc); -- 2.43.5