commit 77c4dcf7aa81f59532859783e4775143ebf17a23
Author: David Smith <dsmith@redhat.com>
Date: Mon Mar 27 11:16:53 2017 -0500
BZ1431263: Remove "too many hardware breakpoint probes" warning.
* tapsets.cxx (hwbkpt_derived_probe_group::enroll): Remove warning about
too many hardware breakpoint probes, since we can't really know how many
this system supports until we try to register them.
diff --git a/tapsets.cxx b/tapsets.cxx
index ccd7cbb..c80e831 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -10166,16 +10166,6 @@ void hwbkpt_derived_probe::join_group (systemtap_session& s)
void hwbkpt_derived_probe_group::enroll (hwbkpt_derived_probe* p, systemtap_session& s)
{
hwbkpt_probes.push_back (p);
-
- unsigned max_hwbkpt_probes_by_arch = 0;
- if (s.architecture == "i386" || s.architecture == "x86_64")
- max_hwbkpt_probes_by_arch = 4;
- else if (s.architecture == "s390")
- max_hwbkpt_probes_by_arch = 1;
-
- if (hwbkpt_probes.size() >= max_hwbkpt_probes_by_arch)
- s.print_warning (_F("Too many hardware breakpoint probes requested for %s (%zu vs. %u)",
- s.architecture.c_str(), hwbkpt_probes.size(), max_hwbkpt_probes_by_arch));
}
void