mirror of
https://github.com/daeuniverse/dae.git
synced 2025-02-10 19:12:13 +07:00
docs: need CONFIG_KPROBE_EVENTS for bpf features judging
This commit is contained in:
parent
40bcbd6c9b
commit
948cfd3f7f
@ -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
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ dae needs:
|
||||
```
|
||||
CONFIG_DEBUG_INFO_BTF=y
|
||||
CONFIG_BPF_EVENTS=y
|
||||
CONFIG_KPROBE_EVENTS=y
|
||||
CONFIG_NET_CLS_ACT=y
|
||||
CONFIG_NET_SCH_INGRESS=m
|
||||
CONFIG_NET_INGRESS=y
|
||||
@ -47,7 +48,7 @@ CONFIG_NET_EGRESS=y
|
||||
Check them using command like:
|
||||
|
||||
```shell
|
||||
(zcat /proc/config.gz || cat /boot/{config,config-$(uname -r)}) | grep -E 'CONFIG_(DEBUG_INFO_BTF|CONFIG_BPF_EVENTS|NET_CLS_ACT|NET_SCH_INGRESS|NET_INGRESS|NET_EGRESS)='
|
||||
(zcat /proc/config.gz || cat /boot/{config,config-$(uname -r)}) | grep -E 'CONFIG_(DEBUG_INFO_BTF|BPF_EVENTS|KPROBE_EVENTS|NET_CLS_ACT|NET_SCH_INGRESS|NET_INGRESS|NET_EGRESS)='
|
||||
```
|
||||
|
||||
> **Note**
|
||||
|
Loading…
Reference in New Issue
Block a user