mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: samuelkorpi@myway.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Calling kernel functions from kprobes/jprobes
Date: Tue, 27 Jun 2006 10:53:28 +0100	[thread overview]
Message-ID: <1151402008.32186.1.camel@localhost.localdomain> (raw)
In-Reply-To: <20060627080021.453306776E@mprdmxin.myway.com>

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


  reply	other threads:[~2006-06-27 10:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-27  8:00 Samuel
2006-06-27  9:53 ` Alan Cox [this message]
2006-06-27 15:12 ` Frank Ch. Eigler
2006-06-27 11:20 Samuel Korpi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1151402008.32186.1.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=samuelkorpi@myway.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®