diff options
author | fche <fche> | 2007-02-14 14:17:20 +0000 |
---|---|---|
committer | fche <fche> | 2007-02-14 14:17:20 +0000 |
commit | f41595cc8a4123cb4c4704ffa0d78df953e4cbc3 (patch) | |
tree | 62b9574e49d91c84601fd0cc3ad7091367b4c03f | |
parent | c3d648e3068ce04bd4327eb4bbb337d55cb40cd5 (diff) | |
download | systemtap-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>.
-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);"; |