File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,33 @@ struct btf * __weak btf__load_from_kernel_by_id(__u32 id)
33
33
return err ? ERR_PTR (err ) : btf ;
34
34
}
35
35
36
+ struct bpf_program * __weak
37
+ bpf_object__next_program (const struct bpf_object * obj , struct bpf_program * prev )
38
+ {
39
+ #pragma GCC diagnostic push
40
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
41
+ return bpf_program__next (prev , obj );
42
+ #pragma GCC diagnostic pop
43
+ }
44
+
45
+ struct bpf_map * __weak
46
+ bpf_object__next_map (const struct bpf_object * obj , const struct bpf_map * prev )
47
+ {
48
+ #pragma GCC diagnostic push
49
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
50
+ return bpf_map__next (prev , obj );
51
+ #pragma GCC diagnostic pop
52
+ }
53
+
54
+ const void * __weak
55
+ btf__raw_data (const struct btf * btf_ro , __u32 * size )
56
+ {
57
+ #pragma GCC diagnostic push
58
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
59
+ return btf__get_raw_data (btf_ro , size );
60
+ #pragma GCC diagnostic pop
61
+ }
62
+
36
63
static int snprintf_hex (char * buf , size_t size , unsigned char * data , size_t len )
37
64
{
38
65
int ret = 0 ;
You can’t perform that action at this time.
0 commit comments