Skip to content
Prev Previous commit
Next Next commit
provide usage example
  • Loading branch information
nickchen120235 committed Dec 5, 2022
commit 8cf0d6d6d9ff940789641c30f06cab4caa18791f
3 changes: 3 additions & 0 deletions lkmpg.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,9 @@ \section{System Calls}
During the first call, \cpp|parent_ip| points to somewhere within the kernel,
while during the second call it points to somewhere in our ``spying'' function, which is within the module.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto, the comma.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't point out all of the cases. Please check again.


When inserting the module, you should provide the uid you want to spy on as an parameter.
For example, you can spy on yourself by \verb|sudo insmod syscall-ftrace.ko uid=$UID|.

\samplec{examples/syscall-ftrace.c}

\section{Blocking Processes and threads}
Expand Down