sysprogs / kgdboe

A network interface for GDB for Linux Kernel
62 stars 25 forks source link

Module fails to load with 'Missing tracepoints' error #4

Open strfry opened 5 years ago

strfry commented 5 years ago

I built a custom kernel with KGDB and CONFIG_TRACEPOINTS enabled, and also built KGDBoE from that tree. When loading the module, i get an error like kgdboe: Missing tracepoints for netif_receive_skb. Aborting

It is unclear to me why this is happening, the __tracepoint_netif_receive_skb symbol seems to exist in the kernel image, but cannot be found by kallsyms_lookup_name

I tried both a recent master-branch (4.20-rc2), and the 4.15 release tag (because there's a PR that mentions it as working).

crojewsk commented 4 years ago

Hello @strfry ,

Please ensure CONFIG_KALLSYMS_ALL option is enabled as CONFIG_KALLSYMS alone does not cut it. This should fix your problem.

Regards, Czarek