libbpf: failed to add legacy kprobe event for 'vfs_open+0x0': No such file or directory
I execute 'cat /proc/kallsyms | grep vfs_open', it can be found in system. Why I get this error msg.
Do you have tracefs/debugfs mounted ?
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.
Try cat /proc/mounts | grep debug.
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.
Yes, CONFIG_KPROBES is necessary for kprobe support.
Please close the issue once resolved :)