Re[2]: How to check which FIB has a given process
Здравствуйте, Anton. Вы писали 16 апреля 2009 г., 15:19:43: AY> 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>> AY> It is not easy, but possible via kgdb. AY> under root run: AY> cd /usr/obj/usr/src/sys/GENERIC AY> (if you use custom kernel replace GENERIC by kernel name) AY> make gdbinit AY> kgdb kernel.debug /dev/mem AY> (kgdb) ps AY> find interesting process, than copy proc address (2-nd column) AY> (kgdb) set $pp = (struct proc*) 0xff000fff3000 AY> And see FIB for this process: AY> (kgdb) p $pp.p_fibnum AY> $1 = 0x0 It is really not easy. I expected something like: checkfib =) Thank you for answer -- С уважением, KES mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How to check which FIB has a given process
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*) 0xff000fff3000 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
How to check which FIB has a given process
Hi, Freebsd-questions. I can set process to have some FIB setfib X /some/programm How to check which FIB has some process? -- С уважением, KES mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"