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

2021-10-18 Thread jim . cromie
On Sun, Oct 17, 2021 at 8:46 PM Dongliang Mu 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? If this user process is run on different > processors, traces of this

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

2021-10-18 Thread Valdis Klētnieks
On Mon, 18 Oct 2021 16:41:14 +0800, Dongliang Mu said: > I want to log all the executed instructions of a user process (e.g., > poc.c in syzkaller) in the kernel mode and then would like to leverage > backward analysis to capture the root cause of kernel panic/crash. > Therefore, I need the

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

2021-10-18 Thread Pavel Skripkin
On 10/18/21 05:45, Dongliang Mu 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? If this user process is run on different processors, traces of this process on different

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

2021-10-18 Thread FMDF
On Mon, 18 Oct 2021, 11:48 FMDF, wrote: Now I recall that, by using Perf, somehow I was able to go interactively > down to the assembly code and see where it was stuck in an endless loop. > Ah, yes. The loop was somewhere into glibc. So I'm not sure if it is possible to see the kernel assembly

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

2021-10-18 Thread FMDF
On Mon, 18 Oct 2021, 11:18 Dongliang Mu, wrote: > +Brendan Gregg > Good catch! Take a look at his "System Performance, 2nd ed., ISBN 978-0-13-682015-4. He has an interesting blog at https://www.brendangregg.com/blog/index.html As Greg, Pavel, and I said, use GDB if you need it. However I'd

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

2021-10-18 Thread Dongliang Mu
+Brendan Gregg On Mon, Oct 18, 2021 at 4:41 PM Dongliang Mu wrote: > > On Mon, Oct 18, 2021 at 4:07 PM FMDF wrote: > > > > On Mon, 18 Oct 2021, 04:46 Dongliang Mu, wrote: > >> > >> Hi all, > >> > >> I am writing to kindly ask one question: is there any tracing > >> mechanism in Linux kernel

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

2021-10-18 Thread Greg KH
On Mon, Oct 18, 2021 at 04:41:14PM +0800, Dongliang Mu wrote: > On Mon, Oct 18, 2021 at 4:07 PM FMDF wrote: > > > > On Mon, 18 Oct 2021, 04:46 Dongliang Mu, wrote: > >> > >> Hi all, > >> > >> I am writing to kindly ask one question: is there any tracing > >> mechanism in Linux kernel that can

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

2021-10-18 Thread Dongliang Mu
On Mon, Oct 18, 2021 at 4:07 PM FMDF wrote: > > On Mon, 18 Oct 2021, 04:46 Dongliang Mu, 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? If this user process

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

2021-10-18 Thread FMDF
On Mon, 18 Oct 2021, 04:46 Dongliang Mu, 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? If this user process is run on different > processors, traces of this process