summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx2
1 files changed, 1 insertions, 1 deletions
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 << "));";