From da4e78db674a1ca836a15120a49848308c00270f Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 30 Mar 2006 17:24:40 +0000 Subject: 2006-03-30 Martin Hunt * tapsets.cxx (dwarf_derived_probe::emit_registrations): Change maxactive so single-processor kernels using kretprobes don't get lots of dropped probes. --- tapsets.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tapsets.cxx') 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 << "));"; -- cgit