mirror of
https://github.com/daeuniverse/dae.git
synced 2025-03-10 12:51:49 +07:00
docs: need CONFIG_BPF_EVENTS for bpf features judging
This commit is contained in:
parent
950e446183
commit
40bcbd6c9b
@ -213,6 +213,8 @@ retryLoadBpf:
|
||||
err = fmt.Errorf("%w: you should re-compile linux kernel with BTF configurations; see docs for more information", err)
|
||||
} 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)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ zcat /proc/config.gz || cat /boot/{config,config-$(uname -r)}
|
||||
dae needs:
|
||||
```
|
||||
CONFIG_DEBUG_INFO_BTF=y
|
||||
CONFIG_BPF_EVENTS=y
|
||||
CONFIG_NET_CLS_ACT=y
|
||||
CONFIG_NET_SCH_INGRESS=m
|
||||
CONFIG_NET_INGRESS=y
|
||||
@ -46,7 +47,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|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|CONFIG_BPF_EVENTS|NET_CLS_ACT|NET_SCH_INGRESS|NET_INGRESS|NET_EGRESS)='
|
||||
```
|
||||
|
||||
> **Note**
|
||||
|
Loading…
Reference in New Issue
Block a user