]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
doc: Add doc files for new ocp plugin commands
authorArthur Shau <arthurshau@fb.com>
Wed, 6 Apr 2022 22:45:20 +0000 (15:45 -0700)
committerArthur Shau <arthurshau@fb.com>
Wed, 6 Apr 2022 22:45:20 +0000 (15:45 -0700)
Documentation/meson.build
Documentation/nvme-ocp-latency-monitor-log.txt [new file with mode: 0644]
Documentation/nvme-ocp-smart-add-log.txt [new file with mode: 0644]
plugins/ocp/ocp-nvme.c
plugins/ocp/ocp-nvme.h

index c01600739b3fb4e0e03c727a1e54317722c8f914..a12eec4dc2f8b6a1d68d5b79253e092efa94e26d 100644 (file)
@@ -74,6 +74,8 @@ adoc_sources = [
   'nvme-ns-descs',
   'nvme-ns-rescan',
   'nvme-nvm-id-ctrl',
+  'nvme-ocp-latency-monitor-log',
+  'nvme-ocp-smart-add-log',
   'nvme-persistent-event-log',
   'nvme-pred-lat-event-agg-log',
   'nvme-predictable-lat-log',
diff --git a/Documentation/nvme-ocp-latency-monitor-log.txt b/Documentation/nvme-ocp-latency-monitor-log.txt
new file mode 100644 (file)
index 0000000..543bcf9
--- /dev/null
@@ -0,0 +1,43 @@
+nvme-ocp-latency-monitor-log(1)
+===================================
+
+NAME
+----
+nvme-ocp-latency-monitor-log - Display latency monitor log page data in human readable format
+
+SYNOPSIS
+--------
+[verse]
+'nvme ocp latency-monitor-log' <device> [--output-format=<normal|json> -o <normal|json>]
+
+DESCRIPTION
+-----------
+
+For the NVMe device given, latency monitor log page data.
+
+The <device> parameter is mandatory and may be either the NVMe character
+device (ex: /dev/nvme0) or block device (ex: /dev/nvme0n1).
+
+This will only work on OCP compliant devices supporting this log page.
+Results for any other device are undefined.
+
+On success it returns 0, error code otherwise.
+
+OPTIONS
+-------
+-o <format>::
+--output-format=<format>::
+       Set the reporting format to 'normal' or 'json'. Only one output format
+       can be used at a time. The default is normal.
+
+EXAMPLES
+--------
+* Displays the get latency monitor log for the device:
++
+------------
+# nvme ocp latency-monitor-log /dev/nvme0
+------------
+
+NVME
+----
+Part of the nvme-user suite.
diff --git a/Documentation/nvme-ocp-smart-add-log.txt b/Documentation/nvme-ocp-smart-add-log.txt
new file mode 100644 (file)
index 0000000..ee54a33
--- /dev/null
@@ -0,0 +1,43 @@
+nvme-ocp-smart-add-log(1)
+============================
+
+NAME
+----
+nvme-ocp-smart-add-log - Retrieves Extended SMART information of given OCP compliant device
+
+SYNOPSIS
+--------
+[verse]
+'nvme ocp smart-add-log' <device> [--output-format=<normal|json> -o <normal|json>]
+
+DESCRIPTION
+-----------
+For the NVMe device given, send a smart-add-log command and
+provide the additional smart log.
+
+The <device> parameter is mandatory and may be either the NVMe character
+device (ex: /dev/nvme0) or block device (ex: /dev/nvme0n1).
+
+This will only work on OCP compliant devices supporting this feature.
+Results for any other device are undefined.
+
+On success it returns 0, error code otherwise.
+
+OPTIONS
+-------
+-o <format>::
+--output-format=<format>::
+       Set the reporting format to 'normal' or 'json'. Only one output format
+       can be used at a time. The default is normal.
+
+EXAMPLES
+--------
+* Has the program issue a smart-add-log command to retrieve the 0xC0 log page.
++
+------------
+# nvme ocp smart-add-log /dev/nvme0
+------------
+
+NVME
+----
+Part of the nvme-user suite.
index 598573ee4fcb3bd7b271fed09a01082db433f4d0..6b7fc9d41280dee3018bd6f527b4337c3ac8cd54 100644 (file)
@@ -1,18 +1,5 @@
-/*
- * Copyright (C) 2022 Meta Platforms, Inc.
- *
- * This program is free software: you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation, either version 3 of the License, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see <http://www.gnu.org/licenses/>.
+// SPDX-License-Identifier: GPL-2.0-only
+/* Copyright (c) 2022 Meta Platforms, Inc.
  *
  * Authors: Arthur Shau <arthurshau@fb.com>,
  *          Wei Zhang <wzhang@fb.com>,
index 6adb7616e449cd074054a33e0543e1f9c3b780be..19378cdfcfdb64908c1973e32548a312cdb4a59c 100644 (file)
@@ -1,18 +1,5 @@
-/*
- * Copyright (C) 2022 Meta Platforms, Inc.
- *
- * This program is free software: you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation, either version 3 of the License, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see <http://www.gnu.org/licenses/>.
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* Copyright (c) 2022 Meta Platforms, Inc.
  *
  * Authors: Arthur Shau <arthurshau@fb.com>,
  *          Wei Zhang <wzhang@fb.com>,