]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 297776,297777,297779: Add DDB commands to cxgbe(4).
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 4 Nov 2016 21:43:10 +0000 (21:43 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 4 Nov 2016 21:43:10 +0000 (21:43 +0000)
commit4e2251a38612ed62021868ed1233dd3b79d75649
tree3be4f626b101cfa8ba44ffa1b5d7e828c3b7c805
parentbcc6f2bf2ed260e1f55a2528e50a0d55ff7caedf
MFC 297776,297777,297779: Add DDB commands to cxgbe(4).

297776:
Add a function to lookup a device_t object by name.

This just walks the global list of devices looking for one with the
requested name.  The one use case outside of devctl2's implementation
is for DDB commands that wish to lookup devices by name.

297777:
Add a 'show t4 tcb <nexus> <tid>' command to dump a TCB from DDB.

This allows the contents of a TCB to be extracted from a T4/T5 card in
DDB after a panic.

297779:
Add a 'show t4 devlog <nexus>' DDB command.

This command displays the adapter's firmware device log similar to the
dev.<nexus>.misc.devlog sysctl.

Sponsored by: Chelsio Communications

git-svn-id: svn://svn.freebsd.org/base/stable/10@308318 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/cxgbe/t4_main.c
sys/dev/cxgbe/tom/t4_ddp.c
sys/kern/subr_bus.c
sys/modules/cxgbe/if_cxgbe/Makefile
sys/sys/bus.h