ProgramTypeForPlatform returns a platform specific program type. Use this if the library doesn't provide a constant yet.
(plat string, value uint32)
| 254 | // |
| 255 | // Use this if the library doesn't provide a constant yet. |
| 256 | func ProgramTypeForPlatform(plat string, value uint32) (ProgramType, error) { |
| 257 | return platform.EncodeConstant[ProgramType](plat, value) |
| 258 | } |
| 259 | |
| 260 | // AttachType of the eBPF program, needed to differentiate allowed context accesses in |
| 261 | // some newer program types like CGroupSockAddr. Should be set to AttachNone if not required. |
no outgoing calls
no test coverage detected
searching dependent graphs…