]> sourceware.org Git - systemtap.git/commitdiff
BZ1431263: Remove "too many hardware breakpoint probes" warning.
authorDavid Smith <dsmith@redhat.com>
Mon, 27 Mar 2017 16:16:53 +0000 (11:16 -0500)
committerDavid Smith <dsmith@redhat.com>
Mon, 27 Mar 2017 16:16:53 +0000 (11:16 -0500)
* 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.

tapsets.cxx

index ccd7cbb0b6f6f7468769e6aff46f7fe351c78c8e..c80e831b11a55bfb7f3e652d2c32977e233b060c 100644 (file)
@@ -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
This page took 0.045336 seconds and 5 git commands to generate.