Project

General

Profile

Actions

Feature #11372

closed

Want PCIe dcmds and walkers

Added by Robert Mustacchi over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
driver - device drivers
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

It would be useful to have an mdb walker that knew how to iterate over the various pcie_bus_t structures in the kernel. This will make it easier to inspect and debug state in the system.

To test this, I did the following:

  • Ran ::walk devinfo | ::devinfo -d.
  • Ran ::prtconf -d igb | ::devinfo -d | ::print igb_t and verified that the structures were correct.
  • Ran ::walk pcie_bus and verified that I saw most of the structures that I expected.
  • Ran *pcieb_state::walk softstate | ::print pcieb_devstate_t pcieb_dip | ::devinfo -b pcie | ::print pcie_bus_t bus_sup_speed and verified that the data was correct and that we had reasonable pcie_bus_t structures.
  • Verified that ::devinfo -b and ::devinfo -d didn't work with other arguments.
  • Verified that combination of ::devinfo -q and ::devinfo -s worked as they did previously.
  • Verified that passing an address to the pcie_bus walker failed (it only supports global walks)
Actions

Also available in: Atom PDF