From 9e6edd108990251e64bd9d37d2324a38b88f7914 Mon Sep 17 00:00:00 2001 From: fche Date: Mon, 1 Aug 2005 23:27:38 +0000 Subject: [PATCH] typo --- tapsets.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tapsets.cxx b/tapsets.cxx index 0335146c2..d3d29282d 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1362,9 +1362,12 @@ dwarf_derived_probe::emit_probe_entries (translator_output* o, unsigned probenum // the entry function. The entry function will call the probe function. o->newline(); o->newline() << "static int "; - o->newline() << probe_entry_function_name(probenum) - << " (void *_ignored, struct pt_regs *regs) {"; - // NB: the void* first param matches both kretprobes and kprobes + o->newline() << probe_entry_function_name(probenum) << " ("; + if (has_return) + o->line() << "struct kretprobe_instance *_ignored"; + else + o->line() << "struct kprobe *_ignored"; + o->line() << ", struct pt_regs *regs) {"; o->newline(1) << "struct context *c = & contexts [smp_processor_id()];"; o->newline(); -- 2.43.5