All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Masami Hiramatsu <mhiramat@redhat.com>
Cc: torvalds@linux-foundation.org, ananth@in.ibm.com,
	linux-kernel@vger.kernel.org, mhiramat@redhat.com
Subject: Re: [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency
Date: Tue, 30 Jun 2009 14:38:06 -0700	[thread overview]
Message-ID: <20090630143806.9ab4519d.akpm@linux-foundation.org> (raw)
In-Reply-To: <20090622210302.4984.82798.stgit@localhost.localdomain>

On Mon, 22 Jun 2009 17:03:02 -0400
Masami Hiramatsu <mhiramat@redhat.com> wrote:

> Select CONFIG_KALLSYMS_ALL when CONFIG_KPROBES_SANITY_TEST=y.
> Kprobe selftest always fail without CONFIG_KALLSYMS_ALL=y, because
> kallsyms doesn't list up the target functions which are probed in this
> test.
> 
> Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
> ---
> 
>  lib/Kconfig.debug |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index 23067ab..661c675 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -727,6 +727,7 @@ config KPROBES_SANITY_TEST
>  	bool "Kprobes sanity tests"
>  	depends on DEBUG_KERNEL
>  	depends on KPROBES
> +	select KALLSYMS_ALL
>  	default n
>  	help
>  	  This option provides for testing basic kprobes functionality on

KALLSYMS_ALL depends on KALLSYMS, so what happens here if KALLSYMS=n?

Ah, KPROBES depends on KALLSYMS, so that problem won't be occurring.

Still, the end result is significently more complex and fragile than a
`depends on' would have been.  But I suppose we've done worse.  Oh well.



  reply	other threads:[~2009-06-30 21:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-22 21:03 [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency Masami Hiramatsu
2009-06-30 21:38 ` Andrew Morton [this message]
2009-06-30 21:41   ` Linus Torvalds
2009-06-30 22:11     ` Masami Hiramatsu
2009-06-30 23:19       ` Masami Hiramatsu
2009-06-30 23:23         ` Ingo Molnar
2009-06-30 23:48           ` Masami Hiramatsu
2009-07-01  0:09             ` Masami Hiramatsu
2009-07-01  8:43               ` Ingo Molnar
2009-07-01 12:02                 ` Masami Hiramatsu

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=20090630143806.9ab4519d.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=ananth@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhiramat@redhat.com \
    --cc=torvalds@linux-foundation.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.