Yes (to a degree) :) Check out https://github.com/iovisor/bpftrace and the example tools/ for a taste. You'll likely want to play with kprobes/kretprobes.
Have you looked into using eBPF instead of writing a kernel module? http://ebpf.io for some more insights. At the very least, it'll provide some useful tooling for you to debug problems in kernel-space.
Yes (to a degree) :) Check out https://github.com/iovisor/bpftrace and the example tools/ for a taste. You'll likely want to play with kprobes/kretprobes.
Have you looked into using eBPF instead of writing a kernel module? http://ebpf.io for some more insights. At the very least, it'll provide some useful tooling for you to debug problems in kernel-space.