diff options
author | hunt <hunt> | 2006-03-30 17:24:40 +0000 |
---|---|---|
committer | hunt <hunt> | 2006-03-30 17:24:40 +0000 |
commit | da4e78db674a1ca836a15120a49848308c00270f (patch) | |
tree | 0616162f74e6a9b4e7adeeaa4f97cb6305093247 | |
parent | 5a35c05bb215ff87387136c73eb6b86f6048bd9d (diff) | |
download | systemtap-steved-da4e78db674a1ca836a15120a49848308c00270f.tar.gz systemtap-steved-da4e78db674a1ca836a15120a49848308c00270f.tar.xz systemtap-steved-da4e78db674a1ca836a15120a49848308c00270f.zip |
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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | tapsets.cxx | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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 << "));"; |