]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nvmecontrol: Implement telemetry-log command.
authorWarner Losh <imp@FreeBSD.org>
Mon, 8 Apr 2024 16:54:12 +0000 (10:54 -0600)
committerWarner Losh <imp@FreeBSD.org>
Sat, 11 May 2024 18:09:51 +0000 (12:09 -0600)
commitc1fccf0f60cad746e8f88d971d0ec9f36d691ccc
tree3d98c9e0290b2baa8f721efebf6b57e9bbcc22a0
parente84a75f936028bf3947f72f11eac4e25baf91b3a
nvmecontrol: Implement telemetry-log command.

This produces the same data as the Linux nvme-cli 'nvme telemetry-log'
command. It extracts the telemetry log from drive. This is a variable
length log, so we read the first page and find out how much of the log
to grab. There's 3 levels of details available, and we grab the level of
detail specified on the command line.

Sponsored by: Netflix
sbin/nvmecontrol/Makefile
sbin/nvmecontrol/nvmecontrol.8
sbin/nvmecontrol/telemetry.c [new file with mode: 0644]