public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency
@ 2009-06-22 21:03 Masami Hiramatsu
  2009-06-30 21:38 ` Andrew Morton
  0 siblings, 1 reply; 10+ messages in thread
From: Masami Hiramatsu @ 2009-06-22 21:03 UTC (permalink / raw)
  To: Linus Torvalds, Ananth N Mavinakayanahalli, lkml
  Cc: Masami Hiramatsu, Ananth N Mavinakayanahalli

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


-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency
  2009-06-22 21:03 [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency Masami Hiramatsu
@ 2009-06-30 21:38 ` Andrew Morton
  2009-06-30 21:41   ` Linus Torvalds
  0 siblings, 1 reply; 10+ messages in thread
From: Andrew Morton @ 2009-06-30 21:38 UTC (permalink / raw)
  To: Masami Hiramatsu; +Cc: torvalds, ananth, linux-kernel, mhiramat

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.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency
  2009-06-30 21:38 ` Andrew Morton
@ 2009-06-30 21:41   ` Linus Torvalds
  2009-06-30 22:11     ` Masami Hiramatsu
  0 siblings, 1 reply; 10+ messages in thread
From: Linus Torvalds @ 2009-06-30 21:41 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Masami Hiramatsu, ananth, linux-kernel



On Tue, 30 Jun 2009, Andrew Morton wrote:
> 
> 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.

Couldn't we just limit the selftest to a set of symbols that doesn't 
require the "all" part?

		Linus

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency
  2009-06-30 21:41   ` Linus Torvalds
@ 2009-06-30 22:11     ` Masami Hiramatsu
  2009-06-30 23:19       ` Masami Hiramatsu
  0 siblings, 1 reply; 10+ messages in thread
From: Masami Hiramatsu @ 2009-06-30 22:11 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Andrew Morton, ananth, linux-kernel

Linus Torvalds wrote:
> 
> On Tue, 30 Jun 2009, Andrew Morton wrote:
>> 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.
> 
> Couldn't we just limit the selftest to a set of symbols that doesn't 
> require the "all" part?

OK. I'll try it.

Thank you,


-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency
  2009-06-30 22:11     ` Masami Hiramatsu
@ 2009-06-30 23:19       ` Masami Hiramatsu
  2009-06-30 23:23         ` Ingo Molnar
  0 siblings, 1 reply; 10+ messages in thread
From: Masami Hiramatsu @ 2009-06-30 23:19 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton, Ingo Molnar; +Cc: ananth, linux-kernel

Oops, I couldn't reproduce this bug on the latest -tip tree.
I'll need to dig it deeper. Andew, and Ingo, could you please drop it?

Masami Hiramatsu wrote:
> Linus Torvalds wrote:
>> On Tue, 30 Jun 2009, Andrew Morton wrote:
>>> 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.
>> Couldn't we just limit the selftest to a set of symbols that doesn't 
>> require the "all" part?
> 
> OK. I'll try it.
> 
> Thank you,
> 
> 

-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency
  2009-06-30 23:19       ` Masami Hiramatsu
@ 2009-06-30 23:23         ` Ingo Molnar
  2009-06-30 23:48           ` Masami Hiramatsu
  0 siblings, 1 reply; 10+ messages in thread
From: Ingo Molnar @ 2009-06-30 23:23 UTC (permalink / raw)
  To: Masami Hiramatsu; +Cc: Linus Torvalds, Andrew Morton, ananth, linux-kernel


* Masami Hiramatsu <mhiramat@redhat.com> wrote:

> Oops, I couldn't reproduce this bug on the latest -tip tree.

maybe because i applied your fix already? ;-)

	Ingo

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency
  2009-06-30 23:23         ` Ingo Molnar
@ 2009-06-30 23:48           ` Masami Hiramatsu
  2009-07-01  0:09             ` Masami Hiramatsu
  0 siblings, 1 reply; 10+ messages in thread
From: Masami Hiramatsu @ 2009-06-30 23:48 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Linus Torvalds, Andrew Morton, ananth, linux-kernel

Ingo Molnar wrote:
> * Masami Hiramatsu <mhiramat@redhat.com> wrote:
> 
>> Oops, I couldn't reproduce this bug on the latest -tip tree.
> 
> maybe because i applied your fix already? ;-)

If so, I'll be happy. But I reverted that change and checked :-(
Maybe, that came from a combination of configs (but I've lost it...)

Thanks,

-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency
  2009-06-30 23:48           ` Masami Hiramatsu
@ 2009-07-01  0:09             ` Masami Hiramatsu
  2009-07-01  8:43               ` Ingo Molnar
  0 siblings, 1 reply; 10+ messages in thread
From: Masami Hiramatsu @ 2009-07-01  0:09 UTC (permalink / raw)
  To: Ingo Molnar, Andrew Morton; +Cc: Linus Torvalds, ananth, linux-kernel

Masami Hiramatsu wrote:
> Ingo Molnar wrote:
>> * Masami Hiramatsu <mhiramat@redhat.com> wrote:
>>
>>> Oops, I couldn't reproduce this bug on the latest -tip tree.
>> maybe because i applied your fix already? ;-)
> 
> If so, I'll be happy. But I reverted that change and checked :-(
> Maybe, that came from a combination of configs (but I've lost it...)

Ok, I found.
Sorry, the problem has been fixed with below commit...

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ac6ca5c86c63dd95acc6a34dff8d33c23b703a37

Thanks,

-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency
  2009-07-01  0:09             ` Masami Hiramatsu
@ 2009-07-01  8:43               ` Ingo Molnar
  2009-07-01 12:02                 ` Masami Hiramatsu
  0 siblings, 1 reply; 10+ messages in thread
From: Ingo Molnar @ 2009-07-01  8:43 UTC (permalink / raw)
  To: Masami Hiramatsu; +Cc: Andrew Morton, Linus Torvalds, ananth, linux-kernel


* Masami Hiramatsu <mhiramat@redhat.com> wrote:

> Masami Hiramatsu wrote:
> > Ingo Molnar wrote:
> >> * Masami Hiramatsu <mhiramat@redhat.com> wrote:
> >>
> >>> Oops, I couldn't reproduce this bug on the latest -tip tree.
> >> maybe because i applied your fix already? ;-)
> > 
> > If so, I'll be happy. But I reverted that change and checked :-(
> > Maybe, that came from a combination of configs (but I've lost it...)
> 
> Ok, I found.
> Sorry, the problem has been fixed with below commit...
> 
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ac6ca5c86c63dd95acc6a34dff8d33c23b703a37

thx - i thus dropped this:

  130c5b2 kprobes: Fix kprobe selftest configuration dependency

Kept the other two patches - one for tracing/urgent (for .31), the 
other for tracing/core (.32). Agreed?

	Ingo

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency
  2009-07-01  8:43               ` Ingo Molnar
@ 2009-07-01 12:02                 ` Masami Hiramatsu
  0 siblings, 0 replies; 10+ messages in thread
From: Masami Hiramatsu @ 2009-07-01 12:02 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Andrew Morton, Linus Torvalds, ananth, linux-kernel

On 2009年07月01日 04:43, Ingo Molnar wrote:
> * Masami Hiramatsu <mhiramat@redhat.com> wrote:
> 
>> Masami Hiramatsu wrote:
>>> Ingo Molnar wrote:
>>>> * Masami Hiramatsu <mhiramat@redhat.com> wrote:
>>>>
>>>>> Oops, I couldn't reproduce this bug on the latest -tip tree.
>>>> maybe because i applied your fix already? ;-)
>>> If so, I'll be happy. But I reverted that change and checked :-(
>>> Maybe, that came from a combination of configs (but I've lost it...)
>> Ok, I found.
>> Sorry, the problem has been fixed with below commit...
>>
>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ac6ca5c86c63dd95acc6a34dff8d33c23b703a37
> 
> thx - i thus dropped this:
> 
>   130c5b2 kprobes: Fix kprobe selftest configuration dependency
> 
> Kept the other two patches - one for tracing/urgent (for .31), the 
> other for tracing/core (.32). Agreed?

Yes, I agreed. :-)

Thanks!

-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-07-01 12:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-22 21:03 [BUGFIX][ PATCH] kprobes: fix kprobe selftest configuration dependency Masami Hiramatsu
2009-06-30 21:38 ` Andrew Morton
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox