fishinabarrel / linux-kernel-module-rust

Framework for writing Linux kernel modules in safe Rust
GNU General Public License v2.0
1.33k stars 120 forks source link

Investigate ftrace and live patching #256

Open geofft opened 4 years ago

geofft commented 4 years ago

A question from today's Linux Plumbers Conference session: do things like ftrace and kgraft work properly? Do they work properly in a GCC-compiled host kernel (i.e., LLVM for Rust and GCC for C)?

I think they do, because I think this support just uses __fentry__ which both LLVM and GCC implement (I think) in the same way, but we should test it.

alex commented 4 years ago

I'm not super familiar with ftrace, can someone suggest what a test for this might look like?