Program represents BPF program loaded into the kernel. It is not safe to close a Program which is used by other goroutines.
| 234 | // |
| 235 | // It is not safe to close a Program which is used by other goroutines. |
| 236 | type Program struct { |
| 237 | // Contains the output of the kernel verifier if enabled, |
| 238 | // otherwise it is empty. |
| 239 | VerifierLog string |
| 240 | |
| 241 | fd *sys.FD |
| 242 | name string |
| 243 | pinnedPath string |
| 244 | typ ProgramType |
| 245 | |
| 246 | btf *btf.Handle |
| 247 | } |
| 248 | |
| 249 | // NewProgram creates a new Program. |
| 250 | // |
nothing calls this directly
no outgoing calls
no test coverage detected