Date: Mon, 5 Nov 2018 10:45:40 +0330 From: mohammad aghamir <moh.aghamir@gmail.com> To: freebsd-questions@freebsd.org Subject: Kernel mode processes Message-ID: <CAJ6H0M49xNvLyqUPdYpT33LEwhVchWwkr5jMNjHQGqVG=nUKdA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I want to find the execution context of each process by looking at it proc struct <https://people.freebsd.org/~meganm/data/tutorials/ddwg/ddwg63.html>. There is a solution <https://stackoverflow.com/questions/25253231/context-of-linux-kernel-threads> in Linux which solve this by looking at thread_struct->sp(kernel stack pointer). Is there a similar solution or even better to finding process execution context? P.S.: I'm really sorry if this question is "how to" and if not considering as technical one. I'm really sticking to this and not found any solutions. I'm really appreciated if you guide me.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ6H0M49xNvLyqUPdYpT33LEwhVchWwkr5jMNjHQGqVG=nUKdA>