Date: Thu, 16 Apr 2009 12:19:43 +0000 (UTC) From: Anton Yuzhaninov <citrin@citrin.ru> To: freebsd-questions@freebsd.org Subject: Re: How to check which FIB has a given process Message-ID: <gs77ov$b03$1@ger.gmane.org> References: <1268944720.20090415200438@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 15 Apr 2009 20:04:38 +0300, KES wrote: K> Hi, Freebsd-questions. K> K> I can set process to have some FIB K> setfib X /some/programm K> K> How to check which FIB has some process? K> It is not easy, but possible via kgdb. under root run: cd /usr/obj/usr/src/sys/GENERIC (if you use custom kernel replace GENERIC by kernel name) make gdbinit kgdb kernel.debug /dev/mem (kgdb) ps find interesting process, than copy proc address (2-nd column) (kgdb) set $pp = (struct proc*) 0xffffff000fff3000 And see FIB for this process: (kgdb) p $pp.p_fibnum $1 = 0x0 -- Anton Yuzhaninov P. S. For amd64 you will need this patch: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/133775
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gs77ov$b03$1>