forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utilities: Add gdb debug commands to dump lists and pmd info
Adds back-end support for walking ovs cmaps, and the following commands to the gdb script: - Dump all poll_thread info added to a specific struct dp_netdev*. Usage: ovs_dump_dp_netdev_poll_threads <struct dp_netdev *> - Dump all nodes of an ovs_list: Usage: ovs_dump_ovs_list <struct ovs_list *> {[<structure>] [<member>] {dump}]} For example dump all the none quiescent OvS RCU threads: (gdb) ovs_dump_ovs_list &ovsrcu_threads (struct ovs_list *) 0x7f2a14000900 (struct ovs_list *) 0x7f2acc000900 (struct ovs_list *) 0x7f2a680668d0 This is not very useful, so please use this with the container_of mode: (gdb) ovs_dump_ovs_list &ovsrcu_threads 'struct ovsrcu_perthread' list_node (struct ovsrcu_perthread *) 0x7f2a14000900 (struct ovsrcu_perthread *) 0x7f2acc000900 (struct ovsrcu_perthread *) 0x7f2a680668d0 Now you can manually use the print command to show the content, or use the dump option to dump the structure for all nodes: (gdb) ovs_dump_ovs_list &ovsrcu_threads 'struct ovsrcu_perthread' list_node dump (struct ovsrcu_perthread *) 0x7f2a14000900 = {list_node = {prev = 0xf48e80 <ovsrcu_threads>, next = 0x7f2acc000900}, mutex... (struct ovsrcu_perthread *) 0x7f2acc000900 = {list_node = {prev = 0x7f2a14000900, next = 0x7f2a680668d0}, mutex ... (struct ovsrcu_perthread *) 0x7f2a680668d0 = {list_node = {prev = 0x7f2acc000900, next = 0xf48e80 <ovsrcu_threads>}, ... Signed-off-by: Eelco Chaudron <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information
Showing
1 changed file
with
167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters