| 343 | } |
| 344 | |
| 345 | static void |
| 346 | bpf_program_buffer_free(epoch_context_t ctx) |
| 347 | { |
| 348 | struct bpf_program_buffer *ptr; |
| 349 | |
| 350 | ptr = __containerof(ctx, struct bpf_program_buffer, epoch_ctx); |
| 351 | #ifdef BPF_JITTER |
| 352 | if (ptr->func != NULL) |
| 353 | bpf_destroy_jit_filter(ptr->func); |
| 354 | #endif |
| 355 | free(ptr, M_BPF); |
| 356 | } |
| 357 | |
| 358 | /* |
| 359 | * Wrapper functions for various buffering methods. If the set of buffer |
no test coverage detected