]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Add devlink health dump show command
authorAya Levin <ayal@mellanox.com>
Thu, 28 Feb 2019 12:13:01 +0000 (14:13 +0200)
committerDavid Ahern <dsahern@gmail.com>
Thu, 28 Feb 2019 15:56:04 +0000 (07:56 -0800)
commit041e6e651a8ef9b0d0cb770ef0bd01f5ccda2e2f
tree3284d1ffd94eb37af2ef07e2e150f916b69eda06
parent7b8baf834d5e95303ed1063a7ef52e81f65a7645
devlink: Add devlink health dump show command

Add devlink dump show command which displays the last saved dump.
Devlink health saves a single dump. If a dump is not already stored
by the devlink for this reporter, devlink generates a new dump. The dump
can be generated automatically when a reporter reports on an
error or manually by user's request.
The dump's output is defined by the reporter. The command uses the
infra structure for flexible format output introduced in previous patch.
Example:
$ devlink health dump show pci/0000:00:09.0 reporter tx

Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
devlink/devlink.c