From 1ee6b5fcc17adf0b02417ac9fa0c05523b8d79c4 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 30 Oct 2009 08:10:04 -0400 Subject: PR10839: compute default KRETACTIVE from num_possible_cpus() instead of NR_CPUS * tapsets.cxx (dwarf_ and kprobe_derived_probe_group): Redefine KRETACTIVE. --- tapsets.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tapsets.cxx') 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 -- cgit