How do you know what memory is 'device' memory. I guess we could come
up with a scheme in which you
look at the asinfo entries, but that would be hard to enforce.
Right now it uses the heuristic that PROT_NOCACHE memory is device
memory and should not be dumped,
although it's somewhat stupid in that it still writes it to the logfile
(as -1s) - it would be better
to put out a PT_LOAD segment with a zero filesz (or just omit it
altogether)
You can checkout services/dumper from the repository and hack it to be
aware of whatever method
you like for now - I'm willing to take suggestions/patches though.
Mike Gorchak wrote:
Hello, All!
Is it possible somehow to disable core dumping of mmaped device
memory, in global OS/dumper settings or via some undocumented mmap
flag, doesn't matter.
It's really annoying to wait while dumper finishes its job when driver
segfaults with one gigabyte of mmaped PCI aperture memory, in most
cases - it's not important what device's memory contain.
Thanks in advance ...
... or thanks for ignorance :)
With best regards, Mike Gorchak. E-mail:
mike@malva.ua