libbpf: don't fail when feature probing fails
[muen/linux.git] / tools / lib / bpf / libbpf.c
index 7e3b79d..3562b6e 100644 (file)
@@ -1696,7 +1696,7 @@ bpf_object__probe_caps(struct bpf_object *obj)
        for (i = 0; i < ARRAY_SIZE(probe_fn); i++) {
                ret = probe_fn[i](obj);
                if (ret < 0)
-                       return ret;
+                       pr_debug("Probe #%d failed with %d.\n", i, ret);
        }
 
        return 0;