HomeFreeBSD

ddb: add the DB_CMD_MEMSAFE flag for commands

Description

ddb: add the DB_CMD_MEMSAFE flag for commands

This flag value can be used to indicate if a command has the property of
being "memory safe". In this instance, memory safe means that the
command does not allow/enable reads or writes of arbitrary memory,
regardless of the arguments passed to it. For example, 'backtrace' is
considered a memory-safe command since its output is deterministic,
while 'show vnode' is not, since it requires a memory address as an
argument and will print the contents beginning at that location.

Apply the flag to the "show all" command macros. It is expected that
commands added to this table will always exhibit this property.

Reviewed by: markj
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D35581

Details

Provenance
mhorneAuthored on Jul 18 2022, 8:04 PM
allanjudeCommitted on Jul 18 2022, 10:06 PM
Reviewer
markj
Differential Revision
D35581: ddb: add the DB_CMD_MEMSAFE flag for commands
Parents
rG3ca4a3390356: bge: tell debugnet there are 2 rx rings, not 1,024
Branches
Unknown
Tags
Unknown