lkml.org 
[lkml]   [2009]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectKernel module, undefined symbol show_regs
From
Hello. I can't solve problem that happens while I'm making my kernel module.

part of my module:
// ...
#include <linux/sched.h>
//....
static u32 task_syscall_entry(enum utrace_resume_action action,
                                struct utrace_engine *engine,
                                struct task_struct *task,
                                struct pt_regs *regs){
    // ...
        show_regs(regs);

}
But, while making I get:

WARNING: "show_regs" [/home/tehhi/module/trace.ko] undefined!

extern void show_regs(struct pt_regs *);  define in header
linux/sched.h, place of source code is
linux/arch/x86/kernel/process_32.c
It use extern void __show_regs(struct pt_regs *); and extern
asmlinkage void __backtrace(void);
I think that extern means that I can use it (and there are no static
symbols in this function).

When trying to insert module, it predictably complains of an unknown
symbol show_regs.

What am I missing here?

Thanks in advance.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-11-25 13:29    [W:0.059 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site