summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorfche <fche>2007-02-14 14:17:20 +0000
committerfche <fche>2007-02-14 14:17:20 +0000
commitf41595cc8a4123cb4c4704ffa0d78df953e4cbc3 (patch)
tree62b9574e49d91c84601fd0cc3ad7091367b4c03f /tapsets.cxx
parentc3d648e3068ce04bd4327eb4bbb337d55cb40cd5 (diff)
downloadsystemtap-steved-f41595cc8a4123cb4c4704ffa0d78df953e4cbc3.tar.gz
systemtap-steved-f41595cc8a4123cb4c4704ffa0d78df953e4cbc3.tar.xz
systemtap-steved-f41595cc8a4123cb4c4704ffa0d78df953e4cbc3.zip
2007-02-14 Frank Ch. Eigler <fche@elastic.org>
* tapsets.cxx (emit_module_decls): Assert CONFIG_KPROBES, as suggested by Andreas Kostyrka <andreas@kostyrka.org>.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index f1fee036..06f466cf 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -3569,6 +3569,12 @@ dwarf_derived_probe_group::emit_module_decls (systemtap_session& s)
s.op->newline() << "/* ---- dwarf probes ---- */";
+ // Warn of misconfigured kernels
+ s.op->newline() << "#if ! defined(CONFIG_KPROBES)";
+ s.op->newline() << "#error \"Need CONFIG_KPROBES!\"";
+ s.op->newline() << "#endif";
+ s.op->newline();
+
// Forward declare the master entry functions
s.op->newline() << "static int enter_kprobe_probe (struct kprobe *inst,";
s.op->line() << " struct pt_regs *regs);";