BPF Type Attributes (Using the GNU Compiler Collection (GCC)) (original) (raw)

Next: PowerPC Type Attributes, Previous: ARM Type Attributes, Up: Specifying Attributes of Types [Contents][Index]


6.37.4 BPF Type Attributes

BPF Compile Once - Run Everywhere (CO-RE) support. When attached to astruct or union type definition, indicates that CO-RE relocation information should be generated for any access to a variable of that type. The behavior is equivalent to the programmer manually wrapping every such access with __builtin_preserve_access_index.