public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* fault-injection framework on ia64
@ 2007-02-15 12:15 Andrew Morton
  2007-02-15 12:44 ` Akinobu Mita
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Andrew Morton @ 2007-02-15 12:15 UTC (permalink / raw)
  To: linux-ia64


lib/built-in.o(.text+0x2c192): In function `should_fail':
: undefined reference to `save_stack_trace'

We could disable the feature on ia64, but then they wouldn't be able to
inject faults.


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

* Re: fault-injection framework on ia64
  2007-02-15 12:15 fault-injection framework on ia64 Andrew Morton
@ 2007-02-15 12:44 ` Akinobu Mita
  2007-02-15 13:17 ` Andrew Morton
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Akinobu Mita @ 2007-02-15 12:44 UTC (permalink / raw)
  To: linux-ia64

2007/2/15, Andrew Morton <akpm@linux-foundation.org>:
>
> lib/built-in.o(.text+0x2c192): In function `should_fail':
> : undefined reference to `save_stack_trace'
>
> We could disable the feature on ia64, but then they wouldn't be able to
> inject faults.

I couldn't understand this build error happend.
(I might misunderstand something)
Because IA64 config always disable CONFIG_STACKTRACE, so
should_fail() doesn't use save_stack_trace() in fail_stacktrace().

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

* Re: fault-injection framework on ia64
  2007-02-15 12:15 fault-injection framework on ia64 Andrew Morton
  2007-02-15 12:44 ` Akinobu Mita
@ 2007-02-15 13:17 ` Andrew Morton
  2007-02-15 13:25 ` Akinobu Mita
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Andrew Morton @ 2007-02-15 13:17 UTC (permalink / raw)
  To: linux-ia64

On Thu, 15 Feb 2007 21:44:34 +0900 "Akinobu Mita" <akinobu.mita@gmail.com> wrote:

> 2007/2/15, Andrew Morton <akpm@linux-foundation.org>:
> >
> > lib/built-in.o(.text+0x2c192): In function `should_fail':
> > : undefined reference to `save_stack_trace'
> >
> > We could disable the feature on ia64, but then they wouldn't be able to
> > inject faults.
> 
> I couldn't understand this build error happend.
> (I might misunderstand something)
> Because IA64 config always disable CONFIG_STACKTRACE, so
> should_fail() doesn't use save_stack_trace() in fail_stacktrace().

OK.  Maybe this patch broke things:


From: "Paolo 'Blaisorblade' Giarrusso" <blaisorblade@yahoo.it>

There is no prompt for STACKTRACE, so it is enabled only when 'select'ed. 
FAULT_INJECTION depends on it, while LOCKDEP selects it.  So
FAULT_INJECTION becomes visible in Kconfig only when LOCKDEP is enabled.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: <stable@kernel.org>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 lib/Kconfig.debug |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN lib/Kconfig.debug~kconfig-fault_injection-can-be-selected-only-if-lockdep-is-enabled lib/Kconfig.debug
--- a/lib/Kconfig.debug~kconfig-fault_injection-can-be-selected-only-if-lockdep-is-enabled
+++ a/lib/Kconfig.debug
@@ -400,7 +400,7 @@ config LKDTM
 config FAULT_INJECTION
 	bool "Fault-injection framework"
 	depends on DEBUG_KERNEL
-	depends on STACKTRACE
+	select STACKTRACE
 	select FRAME_POINTER
 	help
 	  Provide fault-injection framework.
_



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

* Re: fault-injection framework on ia64
  2007-02-15 12:15 fault-injection framework on ia64 Andrew Morton
  2007-02-15 12:44 ` Akinobu Mita
  2007-02-15 13:17 ` Andrew Morton
@ 2007-02-15 13:25 ` Akinobu Mita
  2007-02-15 19:43 ` Blaisorblade
  2007-02-16 17:30 ` Akinobu Mita
  4 siblings, 0 replies; 6+ messages in thread
From: Akinobu Mita @ 2007-02-15 13:25 UTC (permalink / raw)
  To: linux-ia64

> > I couldn't understand this build error happend.
> > (I might misunderstand something)
> > Because IA64 config always disable CONFIG_STACKTRACE, so
> > should_fail() doesn't use save_stack_trace() in fail_stacktrace().
>
> OK.  Maybe this patch broke things:
>
>
> From: "Paolo 'Blaisorblade' Giarrusso" <blaisorblade@yahoo.it>
>
> There is no prompt for STACKTRACE, so it is enabled only when 'select'ed.
> FAULT_INJECTION depends on it, while LOCKDEP selects it.  So
> FAULT_INJECTION becomes visible in Kconfig only when LOCKDEP is enabled.
>

I see. I'll make sub-option for fault injection to enable/disable stacktrace.
It'll fix IA64 build problem and unvisible FAULT_INJECTION without LOCKDEP.

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

* Re: fault-injection framework on ia64
  2007-02-15 12:15 fault-injection framework on ia64 Andrew Morton
                   ` (2 preceding siblings ...)
  2007-02-15 13:25 ` Akinobu Mita
@ 2007-02-15 19:43 ` Blaisorblade
  2007-02-16 17:30 ` Akinobu Mita
  4 siblings, 0 replies; 6+ messages in thread
From: Blaisorblade @ 2007-02-15 19:43 UTC (permalink / raw)
  To: linux-ia64

On Thursday 15 February 2007 14:17, Andrew Morton wrote:
> On Thu, 15 Feb 2007 21:44:34 +0900 "Akinobu Mita" <akinobu.mita@gmail.com> 
wrote:
> > 2007/2/15, Andrew Morton <akpm@linux-foundation.org>:
> > > lib/built-in.o(.text+0x2c192): In function `should_fail':
> > > : undefined reference to `save_stack_trace'
> > >
> > > We could disable the feature on ia64, but then they wouldn't be able to
> > > inject faults.
> >
> > I couldn't understand this build error happend.
> > (I might misunderstand something)
> > Because IA64 config always disable CONFIG_STACKTRACE, so
> > should_fail() doesn't use save_stack_trace() in fail_stacktrace().
>
> OK.  Maybe this patch broke things:

But if STACKTRACE depends on STACKTRACE_SUPPORT, which isn't defined on ia64, 
kconfig should disable FAULT_INJECTION altogether with my patch (as it did 
before it). I don't think that FAULT_INJECTION could be enabled before my 
patch, right?

_BUT_ probably STACKTRACE_SUPPORT should be defined, with default n and no 
prompt, on ia64, or Kconfig gets confused (it should output a warning, 
like 'undefined symbol STACKTRACE_SUPPORT'). We on UML used to get warning 
when INPUT was used but not defined. Hmmm....

I'm interested in this because I also sent the patch to -stable, and Akinobu's 
patch would be worse to merge there.

> From: "Paolo 'Blaisorblade' Giarrusso" <blaisorblade@yahoo.it>
>
> There is no prompt for STACKTRACE, so it is enabled only when 'select'ed.
> FAULT_INJECTION depends on it, while LOCKDEP selects it.  So
> FAULT_INJECTION becomes visible in Kconfig only when LOCKDEP is enabled.
>
> Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
> Cc: <stable@kernel.org>
> Cc: Akinobu Mita <akinobu.mita@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
>  lib/Kconfig.debug |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN
> lib/Kconfig.debug~kconfig-fault_injection-can-be-selected-only-if-lockdep-i
>s-enabled lib/Kconfig.debug ---
> a/lib/Kconfig.debug~kconfig-fault_injection-can-be-selected-only-if-lockdep
>-is-enabled +++ a/lib/Kconfig.debug
> @@ -400,7 +400,7 @@ config LKDTM
>  config FAULT_INJECTION
>  	bool "Fault-injection framework"
>  	depends on DEBUG_KERNEL
> -	depends on STACKTRACE
> +	select STACKTRACE
>  	select FRAME_POINTER
>  	help
>  	  Provide fault-injection framework.
> _

-- 
Inform me of my mistakes, so I can add them to my list!
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade

Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 

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

* Re: fault-injection framework on ia64
  2007-02-15 12:15 fault-injection framework on ia64 Andrew Morton
                   ` (3 preceding siblings ...)
  2007-02-15 19:43 ` Blaisorblade
@ 2007-02-16 17:30 ` Akinobu Mita
  4 siblings, 0 replies; 6+ messages in thread
From: Akinobu Mita @ 2007-02-16 17:30 UTC (permalink / raw)
  To: linux-ia64

> But if STACKTRACE depends on STACKTRACE_SUPPORT, which isn't defined on ia64,
> kconfig should disable FAULT_INJECTION altogether with my patch (as it did
> before it). I don't think that FAULT_INJECTION could be enabled before my
> patch, right?
>
> _BUT_ probably STACKTRACE_SUPPORT should be defined, with default n and no
> prompt, on ia64, or Kconfig gets confused (it should output a warning,
> like 'undefined symbol STACKTRACE_SUPPORT'). We on UML used to get warning
> when INPUT was used but not defined. Hmmm....

Really? I intentionaly removed the STACKTRACE_SUPPORT in x86_64 Kconfig, then
I did make menuconfig. But I didn't get such warning.

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

end of thread, other threads:[~2007-02-16 17:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-15 12:15 fault-injection framework on ia64 Andrew Morton
2007-02-15 12:44 ` Akinobu Mita
2007-02-15 13:17 ` Andrew Morton
2007-02-15 13:25 ` Akinobu Mita
2007-02-15 19:43 ` Blaisorblade
2007-02-16 17:30 ` Akinobu Mita

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