Adding a counter to the *proc* interface
May 16, 2021
The proc interface of Linux kernel contains a huge amount of information about what is going on in the system. The information here is added by the kernel and can be accessed like a part of the regular file system from the userspace. The proc interface contains information about all the sub-systems of the kernel: memory system, interrupts, allocators to name a few.
In case some required counter is not present, we can add it ourself in the kernel code.…