summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--tapsets.cxx2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 19c1fff2..b00bba13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-30 Martin Hunt <hunt@redhat.com>
+
+ * tapsets.cxx (dwarf_derived_probe::emit_registrations):
+ Change maxactive so single-processor kernels using
+ kretprobes don't get lots of dropped probes.
+
2006-03-30 Frank Ch. Eigler <fche@elastic.org>
PR 953, part 1
diff --git a/tapsets.cxx b/tapsets.cxx
index 5a2f3bfe..4e6a4c70 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -2929,7 +2929,7 @@ dwarf_derived_probe::emit_registrations (translator_output* o,
{
o->newline() << "#ifdef ARCH_SUPPORTS_KRETPROBES";
o->newline() << probe_name << ".handler = &" << func_name << ";";
- o->newline() << probe_name << ".maxactive = 0;"; // request default
+ o->newline() << probe_name << ".maxactive = max(10, 4 * NR_CPUS);";
// XXX: pending PR 1289
// o->newline() << probe_name << ".kp_fault_handler = &stap_kprobe_fault_handler;";
o->newline() << "rc = rc || register_kretprobe (&(" << probe_name << "));";