diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tapsets.cxx | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,8 @@ +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>. + 2007-02-12 Frank Ch. Eigler <fche@elastic.org> * tapsets.cxx (query_statement): Tolerate null file name string. 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);"; |