This is the mail archive of the
systemtap@sources.redhat.com
mailing list for the systemtap project.
Re: register_kprobe undefined symbol on 2.6.11 of X86_64
Martin,
I get the address by nm vmlinux | grep do_fork. It is still same.
How do you get the address from your kernel?
Thanks,
Neo
On Wed, 2005-07-06 at 14:55 -0700, Martin Hunt wrote:
> 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
>
--
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!