bcc icon indicating copy to clipboard operation
bcc copied to clipboard

libbpf: failed to add legacy kprobe event for 'vfs_open+0x0': No such file or directory

Open Ephemeraler opened this issue 3 years ago • 5 comments

I execute 'cat /proc/kallsyms | grep vfs_open', it can be found in system. Why I get this error msg.

Ephemeraler avatar Jul 04 '22 08:07 Ephemeraler

Do you have tracefs/debugfs mounted ?

chenhengqi avatar Jul 04 '22 09:07 chenhengqi

Do you have tracefs/debugfs mounted ? @chenhengqi I guess this problem is related to the system configuration, such as CONFIG_KPROBES*. In my system, I find only CONFIG_HAVE_KPROBES=y. But I am not sure which Config about Kprobe is causing this problem.

Ephemeraler avatar Jul 05 '22 00:07 Ephemeraler

Try cat /proc/mounts | grep debug.

chenhengqi avatar Jul 05 '22 01:07 chenhengqi

Try cat /proc/mounts | grep debug.

@chenhengqi yes, the system has mountted tracefs and debugfs. I can use tracepoint on BPF, I will recompile kernel to modify config in order to find cause. Maybe CONFIG_KPROBES need to set.

Ephemeraler avatar Jul 05 '22 01:07 Ephemeraler

Yes, CONFIG_KPROBES is necessary for kprobe support.

yonghong-song avatar Jul 11 '22 04:07 yonghong-song

Please close the issue once resolved :)

irenge avatar Aug 25 '22 08:08 irenge