mirror_iproute2/man/man8/devlink-region.8
Alex Vesker 8b4fbf0bed devlink: Add support for devlink-region access
Devlink region allows access to driver defined address regions.
Each device can create its supported address regions and register
them. A device which exposes a region will allow access to it
using devlink.

This support allows reading and dumping regions snapshots as well
as presenting information such as region size and current available
snapshots.

A snapshot represents a memory image of a region taken by the driver.
If a device collects a snapshot of an address region it can be later
exposed using devlink region read or dump commands.
This functionality allows for future analyses on the snapshots.

The dump command is designed to read the full address space of a
region or of a snapshot unlike the read command which allows
reading only a specific section in a region/snapshot indicated by
an address and a length, current support is for reading and dumping
for a previously taken snapshot ID.

New commands added:
 devlink region show [ DEV/REGION ]
 devlink region delete DEV/REGION snapshot SNAPSHOT_ID
 devlink region dump DEV/REGION [ snapshot SNAPSHOT_ID ]
 devlink region read DEV/REGION [ snapshot SNAPSHOT_ID ]
                                address ADDRESS length length

Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
2018-07-19 09:20:15 -07:00

132 lines
2.5 KiB
Groff

.TH DEVLINK\-REGION 8 "10 Jan 2018" "iproute2" "Linux"
.SH NAME
devlink-region \- devlink address region access
.SH SYNOPSIS
.sp
.ad l
.in +8
.ti -8
.B devlink
.RI "[ " OPTIONS " ]"
.B region
.RI " { " COMMAND " | "
.BR help " }"
.sp
.ti -8
.IR OPTIONS " := { "
\fB\-V\fR[\fIersion\fR] |
\fB\-n\fR[\fIno-nice-names\fR] }
.ti -8
.BR "devlink region show"
.RI "[ " DEV/REGION " ]"
.ti -8
.BR "devlink region del"
.RI "" DEV/REGION ""
.BR "snapshot"
.RI "" SNAPSHOT_ID ""
.ti -8
.BR "devlink region dump"
.RI "" DEV/REGION ""
.BR "snapshot"
.RI "" SNAPSHOT_ID ""
.ti -8
.BR "devlink region read"
.RI "" DEV/REGION ""
.BR "[ "
.BR "snapshot"
.RI "" SNAPSHOT_ID ""
.BR "]"
.BR "address"
.RI "" ADDRESS "
.BR "length"
.RI "" LENGTH ""
.ti -8
.B devlink region help
.SH "DESCRIPTION"
.SS devlink region show - Show all supported address regions names, snapshots and sizes
.PP
.I "DEV/REGION"
- specifies the devlink device and address-region to query.
.SS devlink region del - Delete a snapshot specified by address-region name and snapshot ID
.PP
.I "DEV/REGION"
- specifies the devlink device and address-region to delete the snapshot from
.PP
snapshot
.I "SNAPSHOT_ID"
- specifies the snapshot ID to delete
.SS devlink region dump - Dump all the available data from a region or from snapshot of a region
.PP
.I "DEV/REGION"
- specifies the device and address-region to dump from.
.PP
snapshot
.I "SNAPSHOT_ID"
- specifies the snapshot-id of the region to dump.
.SS devlink region read - Read from a specific region address for a given length
.PP
.I "DEV/REGION"
- specifies the device and address-region to read from.
.PP
snapshot
.I "SNAPSHOT_ID"
- specifies the snapshot-id of the region to read.
.PP
address
.I "ADDRESS"
- specifies the address to read from.
.PP
length
.I "LENGTH"
- specifies the length of data to read.
.SH "EXAMPLES"
.PP
devlink region show
.RS 4
List available address regions and snapshot.
.RE
.PP
devlink region del pci/0000:00:05.0/cr-space snapshot 1
.RS 4
Delete snapshot id 1 from cr-space address region from device pci/0000:00:05.0.
.RE
.PP
devlink region dump pci/0000:00:05.0/cr-space snapshot 1
.RS 4
Dump the snapshot taken from cr-space address region with ID 1
.RE
.PP
devlink region read pci/0000:00:05.0/cr-space snapshot 1 address 0x10 legth 16
.RS 4
Read from address 0x10, 16 Bytes of snapshot ID 1 taken from cr-space address region
.SH SEE ALSO
.BR devlink (8),
.BR devlink-dev (8),
.BR devlink-port (8),
.BR devlink-monitor (8),
.br
.SH AUTHOR
Alex Vesker <valex@mellanox.com>