Re: [PATCH] Add ELF core dump support for s390x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Michael Holzheu" <holzheu@xxxxxxxxxxxxxxxxxx> wrote:

> Dave,
> 
> On Mon, 2010-02-15 at 16:56 -0500, Dave Anderson wrote:
> > ----- "Michael Holzheu" <holzheu@xxxxxxxxxxxxxxxxxx> wrote:
> > > Sorry, I did not read your note carefully. If you want to do that then
> > > my current implementation is wrong. The problem is that now I expect ELF
> > > note structures and will always do. It is not possible to support
> > > multiple dump formats with my current approach.
> > 
> > Sure it's possible.  In the (unlikely) case s390x ever needs to support anything
> > else, the first int argument can be made a uniquely-identifiable "command"
> > or some such.
> 
> First of all: It is VERY likely that we will support a new dump format
> in the near future. Believe me.

I was talking about the ELF format specifically, and even if the ELF format needs
another tweak for s390x, it can be handled easily.  
 
> Second, how should that work? The callback has an integer and a void
> pointer. The integer is currently used to specify the CPU number. The
> void pointer is used to hold the ELF note information. How the hell can
> I code the information for a new dump format. Or am I missing
> something?

Make the first command command -- in the unlikely event this feature
would ever be required -- start with a #define of NR_CPUS+1, or with the
high bits encoded, or whatever. 

Dave

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux