This is the mail archive of the systemtap@sources.redhat.com mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: register_kprobe undefined symbol on 2.6.11 of X86_64


On Wed, 2005-07-06 at 16:30 -0500, Neo Jia wrote:
> Jim,
> 
> BTW, I found a definition in the original kernel 2.6.11 confused me a
> little. Could you help me to figure it out?
> 
> in file include/asm-x86_64/kprobes.h
> typedef u8 kprobe_opcode_t;
> 
> in file include/asm-sparc64/kprobes.h
> typedef u32 kprobe_opcode_t;

This is an internal implementation detail that does not affect your
module.

Your module works fine for me, after adding the MODULE_LICENSE line
and putting in the address of do_fork for my kernel.
I see you have hard-coded an address for the probe.  That is the most
likely cause of crashing.  Have you checked that it is still correct?

Martin



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]