* Dumpfile filtering and PGC_xxx flags
@ 2012-08-24 12:50 Petr Tesarik
2012-08-24 22:48 ` Jan Beulich
0 siblings, 1 reply; 2+ messages in thread
From: Petr Tesarik @ 2012-08-24 12:50 UTC (permalink / raw)
To: xen-devel
Hello folks,
I've been trying to add support for xen-4.0+ to makedumpfile (a utility that
can filter out some content from a kernel dump file). In particular, I'm now
struggling with implementing option "-X", which should filter out all domU
pages, but keep hypervisor internal data and dom0 pages. Unused pages (free
pages, broken pages, offlined pages, etc.) should also be filtered out,
because they are usually not needed for dump analysis.
I'm relying on the contents of frame_table to do the job, but I'm lost in the
hierarchy of PGC_xxx flags. My first naive idea was that I could keep pages
that have:
1. PGC_allocated and
2. the right owner (dom_xen, dom_io, or dom0).
But that doesn't include Xen internal structures. In fact, the page_info
structs for pages corresponding to Xen code and static data seem to be
completely unitialized (all zero).
Thanks for any advice,
Petr Tesarik
SUSE Linux
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Dumpfile filtering and PGC_xxx flags
2012-08-24 12:50 Dumpfile filtering and PGC_xxx flags Petr Tesarik
@ 2012-08-24 22:48 ` Jan Beulich
0 siblings, 0 replies; 2+ messages in thread
From: Jan Beulich @ 2012-08-24 22:48 UTC (permalink / raw)
To: xen-devel, Petr Tesarik
>>> On 24.08.12 at 14:50, Petr Tesarik <ptesarik@suse.cz> wrote:
> Hello folks,
>
> I've been trying to add support for xen-4.0+ to makedumpfile (a utility that
> can filter out some content from a kernel dump file). In particular, I'm now
>
> struggling with implementing option "-X", which should filter out all domU
> pages, but keep hypervisor internal data and dom0 pages. Unused pages (free
> pages, broken pages, offlined pages, etc.) should also be filtered out,
> because they are usually not needed for dump analysis.
>
> I'm relying on the contents of frame_table to do the job, but I'm lost in
> the
> hierarchy of PGC_xxx flags. My first naive idea was that I could keep pages
> that have:
>
> 1. PGC_allocated and
> 2. the right owner (dom_xen, dom_io, or dom0).
That looks reasonable.
> But that doesn't include Xen internal structures. In fact, the page_info
> structs for pages corresponding to Xen code and static data seem to be
> completely unitialized (all zero).
Yes, because the page allocator never gets to see those pages.
But for the (static) Xen image it ought to be possible to determine
which pages it consists of without relying on struct page_info,
based on virtual address (and its translation to physical).
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-24 22:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24 12:50 Dumpfile filtering and PGC_xxx flags Petr Tesarik
2012-08-24 22:48 ` Jan Beulich
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.