summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4
diff options
context:
space:
mode:
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>2018-05-02 15:17:18 +0530
committerDavid S. Miller <davem@davemloft.net>2018-05-14 13:46:04 -0400
commit7efe48df8a3df6d089d2e9a1d429c82cc5dcf2de (patch)
treef45031a2cfdc393c0e360e7668c4d9dd0a9d9590 /drivers/net/ethernet/chelsio/cxgb4
parent2724273e8fd00b512596a77ee063f49b25f36507 (diff)
downloadop-kernel-dev-7efe48df8a3df6d089d2e9a1d429c82cc5dcf2de.zip
op-kernel-dev-7efe48df8a3df6d089d2e9a1d429c82cc5dcf2de.tar.gz
vmcore: append device dumps to vmcore as elf notes
Update read and mmap logic to append device dumps as additional notes before the other elf notes. We add device dumps before other elf notes because the other elf notes may not fill the elf notes buffer completely and we will end up with zero-filled data between the elf notes and the device dumps. Tools will then try to decode this zero-filled data as valid notes and we don't want that. Hence, adding device dumps before the other elf notes ensure that zero-filled data can be avoided. This also ensures that the device dumps and the other elf notes can be properly mmaped at page aligned address. Incorporate device dump size into the total vmcore size. Also update offsets for other program headers after the device dumps are added. Suggested-by: Eric Biederman <ebiederm@xmission.com>. Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud