Вопрос

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?

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top