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,...)10void 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)15bool kernel_supports(const struct bpf_object *obj, enum kern_feature_id feat_id) 16 { 17 return false; 18 } 19 20 21