public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH Latency Tracer] don't panic on failed bootmem alloc
@ 2007-12-06  4:41 Steven Rostedt
  2007-12-06 10:55 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2007-12-06  4:41 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: LKML, RT

Ingo,

This patch prevents a panic on a failed bootmem alloc in the
initialization of the tracer buffers.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>

Index: linux-2.6-latency/kernel/latency_trace.c
===================================================================
--- linux-2.6-latency.orig/kernel/latency_trace.c
+++ linux-2.6-latency/kernel/latency_trace.c
@@ -2720,10 +2720,11 @@ void * __init tracer_alloc_bootmem(unsig
 {
 	void * ret;
 
-	ret =__alloc_bootmem(size, SMP_CACHE_BYTES, ARCH_LOW_ADDRESS_LIMIT);
+	ret =__alloc_bootmem_nopanic(size, SMP_CACHE_BYTES,
+				     ARCH_LOW_ADDRESS_LIMIT);
 	if (ret != NULL && ((unsigned long)ret) < ARCH_LOW_ADDRESS_LIMIT) {
 		free_bootmem(__pa(ret), size);
-		ret = __alloc_bootmem(size,
+		ret = __alloc_bootmem_nopanic(size,
 				SMP_CACHE_BYTES,
 				__pa(MAX_DMA_ADDRESS));
 	}



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

* Re: [PATCH Latency Tracer] don't panic on failed bootmem alloc
  2007-12-06  4:41 [PATCH Latency Tracer] don't panic on failed bootmem alloc Steven Rostedt
@ 2007-12-06 10:55 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2007-12-06 10:55 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: LKML, RT


* Steven Rostedt <rostedt@goodmis.org> wrote:

> Ingo,
> 
> This patch prevents a panic on a failed bootmem alloc in the 
> initialization of the tracer buffers.

thanks, good catch!

	Ingo

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

end of thread, other threads:[~2007-12-06 10:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-06  4:41 [PATCH Latency Tracer] don't panic on failed bootmem alloc Steven Rostedt
2007-12-06 10:55 ` Ingo Molnar

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