How can I list all the calls to a particular function in the kernel (linux)? For instance, if I'm trying to audit some kernel code and I want to know all the places where there's a call to copy_from_user(), how do I list them?


There is a web service that does this exact thing for you: the Elixir Cross Referencer.

For example, here are the results for copy_from_user.

If you need the tool for your own use, the source code is available on Github.

  • Also, ctags is useful, and there might already be a tags target in the Makefile (if it follows any sort of standard target naming scheme). – Kusalananda Feb 16 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.