Page MenuHomeFreeBSD

Eliminate p_elf_machine from struct proc.
ClosedPublic

Authored by dchagin on Jun 28 2021, 5:25 PM.
Tags
None
Referenced Files
F162221552: D30926.id91513.diff
Sat, Jul 11, 12:51 AM
Unknown Object (File)
Sat, Jul 4, 9:21 PM
Unknown Object (File)
Fri, Jul 3, 10:05 PM
Unknown Object (File)
Fri, Jul 3, 3:20 AM
Unknown Object (File)
Tue, Jun 30, 9:30 AM
Unknown Object (File)
Wed, Jun 24, 6:52 AM
Unknown Object (File)
Wed, Jun 24, 3:14 AM
Unknown Object (File)
Sun, Jun 21, 11:15 PM
Subscribers

Details

Summary

Instead of p_elf_machine use machine member of the Elf_Brandinfo which is now
cached in the struct proc at p_elf_brandinfo member.

As p_elf_flags alignment is 8 bytes here is a hole, should I remove p_reserved?

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib added inline comments.
sys/sys/proc.h
702–703

We do not leave the cruft in system structures (in HEAD), even if it is padding.

This revision is now accepted and ready to land.Jun 28 2021, 5:56 PM
This revision was automatically updated to reflect the committed changes.