Re: [patch 7/7] stacktrace filtering for fault-injectioncapabilities

From: Andrew Morton
Date: Thu Oct 12 2006 - 17:20:42 EST


On Thu, 12 Oct 2006 16:43:12 +0900
Akinobu Mita <akinobu.mita@xxxxxxxxx> wrote:

> From: Akinobu Mita <akinobu.mita@xxxxxxxxx>
>
> This patch provides stacktrace filtering feature.
> The stacktrace filter allows failing only for the caller you are
> interested in.
>
> stacktrace filter is enabled by setting the value of
> /debugfs/*/stacktrace-depth more than 0.
> and specify the range of the virtual address
> by the /debugfs/*/address-start and /debugfs/*/address-end
>
> Please see the example that demostrates how to inject slab allocation
> failures only for a specific module
> in Documentation/fault-injection/fault-injection.txt

I read the documentation but I still don't understand this feature. What
does the stacktrace actually do? It gets stored somewhere and displayed
later? What's it all for?

> --- work-fault-inject.orig/lib/Kconfig.debug
> +++ work-fault-inject/lib/Kconfig.debug
> @@ -472,6 +472,8 @@ config LKDTM
>
> config FAULT_INJECTION
> bool
> + select STACKTRACE
> + select FRAME_POINTER
>
> config FAILSLAB
> bool "fault-injection capabilitiy for kmalloc"
>

Is the selection of FRAME_POINTER really needed? The fancy new unwinder
is supposed to be able to handle frame-pointerless unwinding?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/