]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
Update shannon plugin(add SRAM Error Cnt).
authorTonyongxing <syxing2015@hotmail.com>
Thu, 16 Apr 2020 07:30:55 +0000 (15:30 +0800)
committerKeith Busch <kbusch@kernel.org>
Thu, 16 Apr 2020 18:51:39 +0000 (12:51 -0600)
plugins/shannon/shannon-nvme.c

index 175d1e7c776efe9a754e5c2415a91bd564420c63..3aa6f8a4063d9f4ab670d0d801b0bb1254d33381 100644 (file)
@@ -34,6 +34,7 @@ typedef enum {
        PLL_LOCK_LOSS,                          
        NAND_WRITE,
        HOST_WRITE,
+       SRAM_ERROR_CNT,
        ADD_SMART_ITEMS,
 }addtional_smart_items;
 
@@ -111,6 +112,9 @@ static void show_shannon_smart_log(struct nvme_shannon_smart_log *smart,
        printf("host_bytes_written              : %3d%%       sectors: %"PRIu64"\n",
                smart->items[HOST_WRITE].norm,
                int48_to_long(smart->items[HOST_WRITE].item_val));
+       printf("sram_error_count                : %3d%%       %"PRIu64"\n",
+               smart->items[RETRY_BUFFER_OVERFLOW].norm,
+               int48_to_long(smart->items[SRAM_ERROR_CNT].item_val));
 }