Project

General

Profile

Actions

Feature #9916

closed

mdb ::dcmds and ::walkers could have filter options

Added by Andy Fiddaman over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
mdb - modular debugger
Start date:
2018-10-23
Due date:
% Done:

100%

Estimated time:
1.00 h
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

It would be useful to have options to ::dcmds and ::walkers in order to filter the returned list of commands/walkers.
When available, ! egrep can be used to do this but this is not available in kmdb.

Actions #2

Updated by Andy Fiddaman over 2 years ago

  • Status changed from New to In Progress
  • % Done changed from 80 to 100
  • Estimated time set to 1.00 h
  • Difficulty changed from Medium to Bite-size

Testing notes:

> ::walkers avl
avl                      -
given any avl_tree_t *, forward walk all entries in tree

> ::walkers cyclic
cyclic_id_cache          - walk the cyclic_id_cache cache
cycomni                  - for an omnipresent cyclic, walk cyc_omni_cpu list
cyctrace                 - walk cyclic trace buffer

> ::walkers -n cyclic
cyclic_id_cache          - walk the cyclic_id_cache cache

> ::walkers -n cyc[ot]
cycomni                  - for an omnipresent cyclic, walk cyc_omni_cpu list
cyctrace                 - walk cyclic trace buffer
> ::help walkers

NAME
  walkers - list available walkers

SYNOPSIS
  ::walkers [[-n] pattern]

DESCRIPTION

  List all of the walkers that are currently available. If a
  pattern is provided then list only the walkers that
  match the provided regular expression.

  Options:
      -n       Match only the name, not the description.
      pattern  RE to match against name/description.

ATTRIBUTES

  Target: kvm
  Module: mdb
  Interface Stability: Evolving
> ::dcmds test[33
mdb: brackets ([ ]) not balanced
> ::dcmds test(
mdb: parentheses not balanced
Welcome to kmdb
kmdb: unable to determine terminal type: assuming `vt100'
Loaded modules: [ unix krtld genunix ]
[0]> ::dcmds cycl
cyccover                 - dump cyclic coverage information
cycid                    - dump a cyclic id
cyclic                   - developer information
cyctrace                 - dump cyclic trace buffer
[0]> ::walkers -n cyclic
[0]> ::walkers cyclic
cycomni                  - for an omnipresent cyclic, walk cyc_omni_cpu list
cyctrace                 - walk cyclic trace buffer
[0]> ::walkers -n cyc[ot]

[0]> ::help walkers

NAME
  walkers - list available walkers

SYNOPSIS
  ::walkers [[-n] pattern]

DESCRIPTION

  List all of the walkers that are currently available. If a
  pattern is provided then list only the walkers that
  contain the provided substring.

  Options:
      -n       Match only the name, not the description.
      pattern  Substring to match against name/description.

ATTRIBUTES

  Target: kmdb_kvm
  Module: kmdb
  Interface Stability: Evolving
Actions #3

Updated by Electric Monk over 2 years ago

  • Status changed from In Progress to Closed

git commit 1700af3add37a7b6db478d0876536849c3f691fe

commit  1700af3add37a7b6db478d0876536849c3f691fe
Author: Andy Fiddaman <omnios@citrus-it.co.uk>
Date:   2018-10-28T20:43:15.000Z

    9916 mdb ::dcmds and ::walkers could have filter options
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Reviewed by: John Levon <john.levon@joyent.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF