lkml.org 
[lkml]   [2006]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Calling kernel functions from kprobes/jprobes
From
Date
Ar Maw, 2006-06-27 am 04:00 -0400, ysgrifennodd Samuel:
> Hi,
>
> I am using kprobes/jprobes to try and understand how IP options are
> handled in the kernel. From one of these probes I want to call another
> function inside the kernel, namely ip_options_get_from_user. It is
> defined in net/ipv4/ip_options.c and declared in include/net/ip.h. I
> have included the ip.h header file in my probe, but on compilation I
> get a warning saying the function is undefined. Also, inserting the
> probe fails - "Unknown symbol in module".

Not all symbols are visible or kept. If you want to explore the
internals of the kernel in more depth like this you might find building
user mode linux with debugging enabled and using gdb is both easier and
a lot more fun.

Alan

-
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: 2006-06-27 12:50    [W:0.035 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site