Re: Any tracing mechanism can track the executed instructions of a user process in the kernel?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sun, Oct 17, 2021 at 10:46 PM Dongliang Mu <mudongliangabcd@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux