Recurse the members of the unnamed structure/union fields and
insert them in the outer structure, effectivy flattening the
hierarchy.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 7845 Build 7988: arc lint + arc unit
Event Timeline
Comment Actions
Hm, this discards information. For instance, when pretty-printing an mbuf with DTrace, the first few fields are shown to be in a union:
7 36863 ip_input:entry struct mbuf { union { struct mbuf *m_next = 0 struct m_slist = { struct mbuf *sle_next = 0 } struct m_stailq = { struct mbuf *stqe_next = 0 } }
I attempted to handle anonymous structs/unions to some extent with r305055. Where are you seeing problems?
Comment Actions
I'm seeing this with a slightly older 11-stable. I see that r305055 has been MFC'd as r313129 on 2017-02-02. which means the fix is not present on the system I see it in. Both my up-to-date -current and -stable systems seem to work (see example below). So it looks the problem was already fixed!
example:
sudo dtrace -n fbt:kernel:ip_input:entry'{@len = quantize(args[0]->m_pkthdr.len);}'