Thursday, January 16, 2020

Bpf related Kernel Devel Error

Symptom:

 When we run bpf program, we get below error
chdir(/lib/modules/4.14.35-1844.5.3.el7uek.x86_64/build): No such file or directory
panic: runtime error: invalid memory address or nil pointer dereference
panic: runtime error: invalid memory address or nil pointer dereference

Solution:

We need to install bcc tools via yum install bcc-tools
We need to install kernel devel
Redhat:               yum install kernel-devel-`uname -r`
Oracle Linux:     yum install kernel-uek-devel-`uname -r`

No comments:

Post a Comment