summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-10-30 08:10:04 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-30 08:11:26 -0400
commit1ee6b5fcc17adf0b02417ac9fa0c05523b8d79c4 (patch)
treeb05f760f06a153ace75740c1301c68dd1c6f6621 /tapsets.cxx
parent49e20063710b1d5dbb4efeb53d751b684835413c (diff)
downloadsystemtap-steved-1ee6b5fcc17adf0b02417ac9fa0c05523b8d79c4.tar.gz
systemtap-steved-1ee6b5fcc17adf0b02417ac9fa0c05523b8d79c4.tar.xz
systemtap-steved-1ee6b5fcc17adf0b02417ac9fa0c05523b8d79c4.zip
PR10839: compute default KRETACTIVE from num_possible_cpus() instead of NR_CPUS
* tapsets.cxx (dwarf_ and kprobe_derived_probe_group): Redefine KRETACTIVE.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 31d162a2..c117b139 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -3047,7 +3047,7 @@ dwarf_derived_probe_group::emit_module_decls (systemtap_session& s)
s.op->newline();
s.op->newline() << "#ifndef KRETACTIVE";
- s.op->newline() << "#define KRETACTIVE (max(15,6*NR_CPUS))";
+ s.op->newline() << "#define KRETACTIVE (max(15,6*(int)num_possible_cpus()))";
s.op->newline() << "#endif";
// Forward declare the master entry functions
@@ -5036,7 +5036,7 @@ kprobe_derived_probe_group::emit_module_decls (systemtap_session& s)
s.op->newline();
s.op->newline() << "#ifndef KRETACTIVE";
- s.op->newline() << "#define KRETACTIVE (max(15,6*NR_CPUS))";
+ s.op->newline() << "#define KRETACTIVE (max(15,6*(int)num_possible_cpus()))";
s.op->newline() << "#endif";
// Forward declare the master entry functions