I want to kprobe
the function that maps new files onto the memory, but i'm having difficulty finding the function that checks if the file descriptor is already loaded.
I tried hooking the mmap
syscall but that's not really helping because I get already mapped files like libc.so
.
I can't seem to figure out if it's filesystem related or memory related, I looked in both places and can't find where it happens.