Skip to content

Commit 5ccd196

Browse files
committed
DiskIO: print devPath
1 parent b76d6e9 commit 5ccd196

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/modules/diskio/diskio.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ void ffPrintDiskIO(FFDiskIOOptions* options)
8080
{FF_FORMAT_ARG_TYPE_STRBUF, &buffer2},
8181
{FF_FORMAT_ARG_TYPE_STRBUF, &dev->name},
8282
{FF_FORMAT_ARG_TYPE_STRBUF, &dev->type},
83+
{FF_FORMAT_ARG_TYPE_STRBUF, &dev->devPath},
8384
{FF_FORMAT_ARG_TYPE_UINT64, &dev->bytesRead},
8485
{FF_FORMAT_ARG_TYPE_UINT64, &dev->bytesWritten},
8586
{FF_FORMAT_ARG_TYPE_UINT64, &dev->readCount},
@@ -167,6 +168,7 @@ void ffGenerateDiskIOJson(FFDiskIOOptions* options, yyjson_mut_doc* doc, yyjson_
167168
yyjson_mut_val* obj = yyjson_mut_arr_add_obj(doc, arr);
168169
yyjson_mut_obj_add_strbuf(doc, obj, "name", &counter->name);
169170
yyjson_mut_obj_add_strbuf(doc, obj, "type", &counter->type);
171+
yyjson_mut_obj_add_strbuf(doc, obj, "devPath", &counter->devPath);
170172
yyjson_mut_obj_add_uint(doc, obj, "bytesRead", counter->bytesRead);
171173
yyjson_mut_obj_add_uint(doc, obj, "bytesWritten", counter->bytesWritten);
172174
yyjson_mut_obj_add_uint(doc, obj, "readCount", counter->readCount);
@@ -188,6 +190,7 @@ void ffPrintDiskIOHelpFormat(void)
188190
"Size of data written per second (formatted)",
189191
"Device name",
190192
"Device type",
193+
"Device raw file path",
191194
"Size of data read per second (in bytes)",
192195
"Size of data written per second (in bytes)",
193196
"Number of reads",

0 commit comments

Comments
 (0)