Any tracing mechanism can track the executed instructions of a user process in the kernel?
Aruna Hewapathirane
aruna.hewapathirane at gmail.com
Mon Oct 18 00:09:14 EDT 2021
On Sun, Oct 17, 2021 at 10:46 PM Dongliang Mu <mudongliangabcd at gmail.com>
wrote:
> Hi all,
>
> I am writing to kindly ask one question: is there any tracing
> mechanism in Linux kernel that can trace all the executed instructions
> of a user process?
Use gdb -p <pid> to attach to the process your interested in
The gdb command: display/i $pc shows you the instruction before it
executes. display $pc shows the line of code before n or s executes it.
> If this user process is run on different
> processors, traces of this process on different processors should be
> also recorded.
>
This am not too sure about, someone more knowledgeable will probably let
us know ( Valdis ? )
>
> Any comment is welcome.
>
> --
> My best regards to you.
>
> No System Is Safe!
> Dongliang Mu
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20211018/4c178ef1/attachment.html>
More information about the Kernelnewbies
mailing list