LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [2.6 patch] x86: make dump_pagetable() static
@ 2008-02-13 21:31 Adrian Bunk
2008-02-13 22:27 ` Harvey Harrison
2008-02-13 22:30 ` Arjan van de Ven
0 siblings, 2 replies; 6+ messages in thread
From: Adrian Bunk @ 2008-02-13 21:31 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, hpa; +Cc: linux-kernel
dump_pagetable() can now become static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
arch/x86/mm/fault.c | 2 +-
include/asm-x86/kdebug.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
fe111b005768f97b9f83af7ad4014a77e7adc249 diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
index 621afb6..fdc6674 100644
--- a/arch/x86/mm/fault.c
+++ b/arch/x86/mm/fault.c
@@ -186,7 +186,7 @@ static int bad_address(void *p)
}
#endif
-void dump_pagetable(unsigned long address)
+static void dump_pagetable(unsigned long address)
{
#ifdef CONFIG_X86_32
__typeof__(pte_val(__pte(0))) page;
diff --git a/include/asm-x86/kdebug.h b/include/asm-x86/kdebug.h
index dd442a1..99dcbaf 100644
--- a/include/asm-x86/kdebug.h
+++ b/include/asm-x86/kdebug.h
@@ -31,7 +31,6 @@ extern void show_trace(struct task_struct *t, struct pt_regs *regs,
unsigned long *sp, unsigned long bp);
extern void __show_regs(struct pt_regs *regs);
extern void show_regs(struct pt_regs *regs);
-extern void dump_pagetable(unsigned long);
extern unsigned long oops_begin(void);
extern void oops_end(unsigned long, struct pt_regs *, int signr);
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [2.6 patch] x86: make dump_pagetable() static
2008-02-13 21:31 [2.6 patch] x86: make dump_pagetable() static Adrian Bunk
@ 2008-02-13 22:27 ` Harvey Harrison
2008-02-13 22:36 ` Adrian Bunk
2008-02-13 22:30 ` Arjan van de Ven
1 sibling, 1 reply; 6+ messages in thread
From: Harvey Harrison @ 2008-02-13 22:27 UTC (permalink / raw)
To: Adrian Bunk, Andi Kleen; +Cc: Thomas Gleixner, Ingo Molnar, hpa, linux-kernel
On Wed, 2008-02-13 at 23:31 +0200, Adrian Bunk wrote:
> dump_pagetable() can now become static.
>
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
>
I believe Andi Kleen wanted this kept global to make it easy to use when
adding debugging code elsewhere.
Cheers,
Harvey
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [2.6 patch] x86: make dump_pagetable() static
2008-02-13 21:31 [2.6 patch] x86: make dump_pagetable() static Adrian Bunk
2008-02-13 22:27 ` Harvey Harrison
@ 2008-02-13 22:30 ` Arjan van de Ven
1 sibling, 0 replies; 6+ messages in thread
From: Arjan van de Ven @ 2008-02-13 22:30 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Thomas Gleixner, Ingo Molnar, hpa, linux-kernel
On Wed, 13 Feb 2008 23:31:31 +0200
Adrian Bunk <bunk@kernel.org> wrote:
> dump_pagetable() can now become static.
>
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
--
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [2.6 patch] x86: make dump_pagetable() static
2008-02-13 22:27 ` Harvey Harrison
@ 2008-02-13 22:36 ` Adrian Bunk
2008-02-14 5:50 ` Ingo Molnar
2008-02-14 7:57 ` Andi Kleen
0 siblings, 2 replies; 6+ messages in thread
From: Adrian Bunk @ 2008-02-13 22:36 UTC (permalink / raw)
To: Harvey Harrison
Cc: Andi Kleen, Thomas Gleixner, Ingo Molnar, hpa, linux-kernel
On Wed, Feb 13, 2008 at 02:27:47PM -0800, Harvey Harrison wrote:
> On Wed, 2008-02-13 at 23:31 +0200, Adrian Bunk wrote:
> > dump_pagetable() can now become static.
> >
> > Signed-off-by: Adrian Bunk <bunk@kernel.org>
> >
>
> I believe Andi Kleen wanted this kept global to make it easy to use when
> adding debugging code elsewhere.
That's not a reason as long as his code isn't in the tree (and he anyway
has to patch the kernel for using it).
> Cheers,
>
> Harvey
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [2.6 patch] x86: make dump_pagetable() static
2008-02-13 22:36 ` Adrian Bunk
@ 2008-02-14 5:50 ` Ingo Molnar
2008-02-14 7:57 ` Andi Kleen
1 sibling, 0 replies; 6+ messages in thread
From: Ingo Molnar @ 2008-02-14 5:50 UTC (permalink / raw)
To: Adrian Bunk
Cc: Harvey Harrison, Andi Kleen, Thomas Gleixner, hpa, linux-kernel
* Adrian Bunk <bunk@kernel.org> wrote:
> On Wed, Feb 13, 2008 at 02:27:47PM -0800, Harvey Harrison wrote:
> > On Wed, 2008-02-13 at 23:31 +0200, Adrian Bunk wrote:
> > > dump_pagetable() can now become static.
> > >
> > > Signed-off-by: Adrian Bunk <bunk@kernel.org>
thanks, applied.
> > I believe Andi Kleen wanted this kept global to make it easy to use
> > when adding debugging code elsewhere.
>
> That's not a reason as long as his code isn't in the tree (and he
> anyway has to patch the kernel for using it).
correct. There's also a new CONFIG_X86_PTDUMP=y pagetable dumping debug
feature now in x86.git#mm that produces much nicer output.
Arjan: i it might be nice to make the new pagetable dumper triggerable
from a SysRq - could you try the kernel/time/timer_list.c's SEQ_printf()
trick to make the dumping dual-purpose? [so that it printk()'s if it
should dump to the console and seq_printf()'s if it should dump via
/proc]
Ingo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [2.6 patch] x86: make dump_pagetable() static
2008-02-13 22:36 ` Adrian Bunk
2008-02-14 5:50 ` Ingo Molnar
@ 2008-02-14 7:57 ` Andi Kleen
1 sibling, 0 replies; 6+ messages in thread
From: Andi Kleen @ 2008-02-14 7:57 UTC (permalink / raw)
To: Adrian Bunk
Cc: Harvey Harrison, Thomas Gleixner, Ingo Molnar, hpa, linux-kernel
Adrian Bunk wrote:
> On Wed, Feb 13, 2008 at 02:27:47PM -0800, Harvey Harrison wrote:
>> On Wed, 2008-02-13 at 23:31 +0200, Adrian Bunk wrote:
>>> dump_pagetable() can now become static.
>>>
>>> Signed-off-by: Adrian Bunk <bunk@kernel.org>
>>>
>> I believe Andi Kleen wanted this kept global to make it easy to use when
>> adding debugging code elsewhere.
>
> That's not a reason as long as his code isn't in the tree (and he anyway
> has to patch the kernel for using it).
It was originally needed for the old cpa patchkit which dumped
the page tables when it detected an internal inconsistency
with the reference counts.
I think something like this would still make sense in a few
cases, although there are no reference counts to check anymore
currently.
-Andi
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-02-14 7:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-13 21:31 [2.6 patch] x86: make dump_pagetable() static Adrian Bunk
2008-02-13 22:27 ` Harvey Harrison
2008-02-13 22:36 ` Adrian Bunk
2008-02-14 5:50 ` Ingo Molnar
2008-02-14 7:57 ` Andi Kleen
2008-02-13 22:30 ` Arjan van de Ven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).