2

I'd like to keep track of which modules are loaded by the Linux kernel over a course of several weeks.

Q: How can I log each module load to a file?

3

Suggest you try SystemTap.

This SystemTap script is a decent example, tracks process stop/start as well as kernel module load/delete. Easy to remove the process stop/start aspect.

https://sourceware.org/systemtap/examples/process/procmod_watcher.stp

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.