Question

I'm trying to see if certain ioctl calls get called when I call a function(this is on linux).There no way to cause the kernel to write a log with this sort of data, is there?

Was it helpful?

Solution

On recent kernel, and if kernel is configured with support for tracing and dynamic tracing, ftrace can probably do what you need.

Another option is to write an ioctl wrapper, load it using LD_PRELOAD, and intercept the interesting ioctl in your wrapper.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top