Query on mechanisms to communicate between kernel modules in Linux
valdis.kletnieks at vt.edu
valdis.kletnieks at vt.edu
Thu Feb 8 14:20:25 EST 2018
On Thu, 08 Feb 2018 23:38:01 +0530, Neil Thomas said:
> I am just a beginner. I have tried procfs, Netlink socket to communicate
> between user space and kernel space and it works fine.
>
> I am developing a monitoring utility to trace the VFS operation and find
> the frequency of VFS function calls. This monitoring utility runs in kernel
> space. We have to record the occurrence of each VFS function calls (like
> vfs_open(), vfs_read()). I don't know which is best mechanism to report
> this VFS event to the monitoring utility.
>
> Could anyone please suggest the best mechanism to transfer data frequently
> between kernel modules.
There's a perfectly good perf-based function trace facility that will provide
this info to userspace.
http://www.brendangregg.com/perf.html#StaticKernelTracing
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180208/22633464/attachment.sig>
More information about the Kernelnewbies
mailing list