docs: need CONFIG_KPROBE_EVENTS for bpf features judging

This commit is contained in:
mzz2017
2023-03-21 16:11:11 +08:00
parent 40bcbd6c9b
commit 948cfd3f7f
2 changed files with 3 additions and 2 deletions

View File

@ -214,7 +214,7 @@ retryLoadBpf:
} else if strings.Contains(err.Error(), "unknown func bpf_trace_printk") {
err = fmt.Errorf(`%w: please try to compile dae without bpf_printk; example of cross-compilation to arm64: make GOARCH=arm64 CGO_ENABLED=0 CFLAGS="-D__REMOVE_BPF_PRINTK"`, err)
} else if strings.Contains(err.Error(), "unknown func bpf_probe_read") {
err = fmt.Errorf(`%w: please re-compile linux kernel with CONFIG_BPF_EVENTS=y"`, err)
err = fmt.Errorf(`%w: please re-compile linux kernel with CONFIG_BPF_EVENTS=y and CONFIG_KPROBE_EVENTS=y"`, err)
}
return err
}