File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1618,8 +1618,7 @@ int bpf_program__nth_fd(struct bpf_program *prog, int n)
1618
1618
return fd ;
1619
1619
}
1620
1620
1621
- static void bpf_program__set_type (struct bpf_program * prog ,
1622
- enum bpf_prog_type type )
1621
+ void bpf_program__set_type (struct bpf_program * prog , enum bpf_prog_type type )
1623
1622
{
1624
1623
prog -> type = type ;
1625
1624
}
Original file line number Diff line number Diff line change 25
25
#include <stdint.h>
26
26
#include <stdbool.h>
27
27
#include <sys/types.h> // for size_t
28
+ #include <linux/bpf.h>
28
29
29
30
enum libbpf_errno {
30
31
__LIBBPF_ERRNO__START = 4000 ,
@@ -185,6 +186,7 @@ int bpf_program__set_sched_cls(struct bpf_program *prog);
185
186
int bpf_program__set_sched_act (struct bpf_program * prog );
186
187
int bpf_program__set_xdp (struct bpf_program * prog );
187
188
int bpf_program__set_perf_event (struct bpf_program * prog );
189
+ void bpf_program__set_type (struct bpf_program * prog , enum bpf_prog_type type );
188
190
189
191
bool bpf_program__is_socket_filter (struct bpf_program * prog );
190
192
bool bpf_program__is_tracepoint (struct bpf_program * prog );
You can’t perform that action at this time.
0 commit comments