Blame SOURCES/rhbz1127591.patch

eb15f5
commit c4a048331603a3fe19c886498e957f5f2a577ed9
eb15f5
Author: Frank Ch. Eigler <fche@redhat.com>
eb15f5
Date:   Thu Nov 20 16:30:20 2014 -0500
eb15f5
eb15f5
    PR17126: put hcall_* kernel tracepoints into blacklist for powerpc
eb15f5
    
eb15f5
    * tapsets.cxx (tracepoint_query::handle_query_func): Implement
eb15f5
      baby blacklist.
eb15f5
eb15f5
diff --git a/tapsets.cxx b/tapsets.cxx
eb15f5
index 6e2bae5..0b4e0d8 100644
eb15f5
--- a/tapsets.cxx
eb15f5
+++ b/tapsets.cxx
eb15f5
@@ -10900,6 +10900,20 @@ tracepoint_query::handle_query_func(Dwarf_Die * func)
eb15f5
   if (!probed_names.insert(tracepoint_instance).second)
eb15f5
     return DWARF_CB_OK;
eb15f5
 
eb15f5
+  // PR17126: blacklist
eb15f5
+  if (!sess.guru_mode)
eb15f5
+    {
eb15f5
+      if ((sess.architecture.substr(0,3) == "ppc" ||
eb15f5
+           sess.architecture.substr(0,7) == "powerpc") &&
eb15f5
+          (tracepoint_instance == "hcall_entry" ||
eb15f5
+           tracepoint_instance == "hcall_exit"))
eb15f5
+        {
eb15f5
+          sess.print_warning(_F("tracepoint %s is blacklisted on architecture %s",
eb15f5
+                                tracepoint_instance.c_str(), sess.architecture.c_str()));
eb15f5
+          return DWARF_CB_OK;
eb15f5
+        }
eb15f5
+  }
eb15f5
+
eb15f5
   derived_probe *dp = new tracepoint_derived_probe (dw.sess, dw, *func,
eb15f5
                                                     tracepoint_instance,
eb15f5
                                                     base_probe, base_loc);