diff options
Diffstat (limited to 'src/shared/bpf-program.h')
-rw-r--r-- | src/shared/bpf-program.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/bpf-program.h b/src/shared/bpf-program.h index e54900fa2f..b640fb9d9f 100644 --- a/src/shared/bpf-program.h +++ b/src/shared/bpf-program.h @@ -20,6 +20,7 @@ struct BPFProgram { /* The loaded BPF program, if loaded */ int kernel_fd; uint32_t prog_type; + char *prog_name; /* The code of it BPF program, if known */ size_t n_instructions; @@ -32,7 +33,7 @@ struct BPFProgram { uint32_t attached_flags; }; -int bpf_program_new(uint32_t prog_type, BPFProgram **ret); +int bpf_program_new(uint32_t prog_type, const char *prog_name, BPFProgram **ret); int bpf_program_new_from_bpffs_path(const char *path, BPFProgram **ret); BPFProgram *bpf_program_free(BPFProgram *p); |