* [PATCH] Add more debug infos when usable memory range changing
@ 2012-04-13 9:32 Han Pingtian
2012-04-16 0:08 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Han Pingtian @ 2012-04-13 9:32 UTC (permalink / raw)
To: kexec; +Cc: Simon Horman
In the past, we did neglected some usable memory range
changing infos. With those deubg code added, we can now
catch them.
---
kexec/arch/ppc64/crashdump-ppc64.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/kexec/arch/ppc64/crashdump-ppc64.c b/kexec/arch/ppc64/crashdump-ppc64.c
index d52b438..b5ec2c8 100644
--- a/kexec/arch/ppc64/crashdump-ppc64.c
+++ b/kexec/arch/ppc64/crashdump-ppc64.c
@@ -465,12 +465,24 @@ void add_usable_mem_rgns(unsigned long long base, unsigned long long size)
if (base < ustart && end > uend) {
usablemem_rgns.ranges[i].start = base;
usablemem_rgns.ranges[i].end = end;
+#ifdef DEBUG
+ fprintf(stderr, "usable memory rgn %u: new base:%llx new size:%llx\n",
+ i, base, size);
+#endif
return;
} else if (base < ustart) {
usablemem_rgns.ranges[i].start = base;
+#ifdef DEBUG
+ fprintf(stderr, "usable memory rgn %u: new base:%llx new size:%llx",
+ i, base, usablemem_rgns.ranges[i].end - base);
+#endif
return;
} else if (end > uend){
usablemem_rgns.ranges[i].end = end;
+#ifdef DEBUG
+ fprintf(stderr, "usable memory rgn %u: new end:%llx, new size:%llx",
+ i, end, end - usablemem_rgns.ranges[i].start);
+#endif
return;
}
}
--
1.7.7.6
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add more debug infos when usable memory range changing
2012-04-13 9:32 [PATCH] Add more debug infos when usable memory range changing Han Pingtian
@ 2012-04-16 0:08 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2012-04-16 0:08 UTC (permalink / raw)
To: kexec
On Fri, Apr 13, 2012 at 05:32:42PM +0800, Han Pingtian wrote:
> In the past, we did neglected some usable memory range
> changing infos. With those deubg code added, we can now
> catch them.
Thanks, applied.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-16 0:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-13 9:32 [PATCH] Add more debug infos when usable memory range changing Han Pingtian
2012-04-16 0:08 ` Simon Horman
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.