1 #include "../src/libbpf_internal.h"
2
3 enum libbpf_strict_mode libbpf_mode = 0;
4
5
6 // Another approach would be to log here, but we just return in order to avoid
7 // spamming logs since some paths use libbpf_print fairly heavily. Actual error
8 // cases generally return informative errors anyway.
9 __attribute__((format(printf, 2, 3)))
libbpf_print(enum libbpf_print_level level,const char * format,...)10 void libbpf_print(enum libbpf_print_level level, const char *format, ...)
11 {
12 return;
13 }
14
kernel_supports(const struct bpf_object * obj,enum kern_feature_id feat_id)15 bool kernel_supports(const struct bpf_object *obj, enum kern_feature_id feat_id)
16 {
17 return false;
18 }
19
feat_supported(struct kern_feature_cache * cache,enum kern_feature_id feat_id)20 bool feat_supported(struct kern_feature_cache *cache, enum kern_feature_id feat_id)
21 {
22 return false;
23 }
24
25