Re: [PATCH net-next v1] net: stmmac: Drop useless code related to ethtool rx-copybreak
From: Jakub Kicinski
Date: Wed Dec 18 2024 - 19:42:26 EST
On Wed, 18 Dec 2024 16:48:38 +0100 Alexander Lobakin wrote:
> If sizeof(dma_addr_t) == 8, you're clearly introducing a 4-byte hole
> here. Perhaps you could reshuffle the struct a bit to avoid this.
>
> It's always good to inspect the .kos with pahole after modifying
> structures to make sure there are no regressions.
Pretty off topic but I have a dumb question - how do you dump a struct
with pahole using debug info or BTF from a random .ko?
Ever since pahole got converted to BTF modules stopped working for me :S
I never cared enough to check as most interesting stuff is built-in
in Meta's kernels but it annoys me every now and then..