Project

General

Profile

Feature #7098

::prtconf could filter by attached driver name

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

Status:
Closed
Priority:
Normal
Category:
mdb - modular debugger
Start date:
2016-06-09
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

It would be most agreeable if one could use ::prtconf to get a list of all of the devinfo nodes for a particular driver name. It would also help if ::prtconf, at least in this mode, was able to be used in a pipeline. For example, this is the current output filtered through grep:

> ::prtconf ! grep vioif
        ffffff01cb7e3010 pci1af4,1, instance #0 (driver name: vioif)
        ffffff01cb7e1d48 pci1af4,1, instance #1 (driver name: vioif)
        ffffff01cb7e1aa0 pci1af4,1, instance #2 (driver name: vioif)
        ffffff01cb7e17f8 pci1af4,1, instance #3 (driver name: vioif)

Example usage of intended interface:

> ::prtconf -d vioif | ::devinfo -q
ffffff01cb7e3010 pci1af4,1, instance #0 (driver name: vioif)
ffffff01cb7e1d48 pci1af4,1, instance #1 (driver name: vioif)
ffffff01cb7e1aa0 pci1af4,1, instance #2 (driver name: vioif)
ffffff01cb7e17f8 pci1af4,1, instance #3 (driver name: vioif)

> ::prtconf -d vioif | ::print struct dev_info devi_driver_data
devi_driver_data = 0xffffff01cce98c00
...
#1

Updated by Electric Monk over 4 years ago

  • Status changed from New to Closed

git commit 20c06695f48b938258cc8a122e3e3f602bd0b9a3

commit  20c06695f48b938258cc8a122e3e3f602bd0b9a3
Author: Robert Mustacchi <rm@joyent.com>
Date:   2016-07-20T15:56:10.000Z

    7098 ::prtconf could filter by attached driver name
    Reviewed by: Joshua M. Clulow <jmc@joyent.com>
    Approved by: Matthew Ahrens <mahrens@delphix.com>

Also available in: Atom PDF