grafana / beyla

eBPF-based autoinstrumentation of web applications and network metrics
https://grafana.com/oss/beyla-ebpf/
Apache License 2.0
1.44k stars 102 forks source link

need kernel > 5.4 ? #292

Closed Maple1401 closed 10 months ago

Maple1401 commented 1 year ago

ERROR Message

time=2023-09-19T10:26:01.225+08:00 level=ERROR msg="couldn't trace process" component=ebpf.TracerProvider err="loading and assigning BPF objects: field UprobeWriteHeader: program uprobe_WriteHeader: map events: map create: invalid argument (without BTF k/v)" path=/coredns pid=2646

when i upgrade the kernel to 5.15 , this problem was fixed.

1473371932 commented 1 year ago

Document description > 4.17, but I tried both 4.19 and 5.4, but it didn’t work. I upgraded to 5.15 and it was no problem.

mariomac commented 1 year ago

Hi @Maple1401 and @1473371932 , thank you for your input.

It was probably caused because the older Kernel didn't have BTF enabled and a later upgrade included BTF.

We will anyway review the current functions and adjust the requirements to it.

CoderPoet commented 10 months ago

Document description > 4.17, but I tried both 4.19 and 5.4, but it didn’t work. I upgraded to 5.15 and it was no problem.

struct {
    __uint(type, BPF_MAP_TYPE_RINGBUF);
    __uint(max_entries, 1 << 24);
} events SEC(".maps");

Because ringbuf requires kernel version >= 5.8

mariomac commented 10 months ago

We actually upgraded the requirements to Kernel 5.8 in the documentation: https://grafana.com/docs/beyla/latest/#requirements

Closing this task. Thank you for your input!