Skip to content

Commit 4966202

Browse files
morbidrsakawasaki
authored andcommitted
blktrace: add zoned block commands to blk_fill_rwbs
Add zoned block commands to blk_fill_rwbs: - ZONE APPEND will be decoded as 'ZA' - ZONE RESET and ZONE RESET ALL will be decoded as 'ZR' - ZONE FINISH will be decoded as 'ZF' - ZONE OPEN will be decoded as 'ZO' - ZONE CLOSE will be decoded as 'ZC' Signed-off-by: Johannes Thumshirn <[email protected]>
1 parent ef2c9cd commit 4966202

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

kernel/trace/blktrace.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,6 +1875,27 @@ void blk_fill_rwbs(char *rwbs, blk_opf_t opf)
18751875
case REQ_OP_READ:
18761876
rwbs[i++] = 'R';
18771877
break;
1878+
case REQ_OP_ZONE_APPEND:
1879+
rwbs[i++] = 'Z';
1880+
rwbs[i++] = 'A';
1881+
break;
1882+
case REQ_OP_ZONE_RESET:
1883+
case REQ_OP_ZONE_RESET_ALL:
1884+
rwbs[i++] = 'Z';
1885+
rwbs[i++] = 'R';
1886+
break;
1887+
case REQ_OP_ZONE_FINISH:
1888+
rwbs[i++] = 'Z';
1889+
rwbs[i++] = 'F';
1890+
break;
1891+
case REQ_OP_ZONE_OPEN:
1892+
rwbs[i++] = 'Z';
1893+
rwbs[i++] = 'O';
1894+
break;
1895+
case REQ_OP_ZONE_CLOSE:
1896+
rwbs[i++] = 'Z';
1897+
rwbs[i++] = 'C';
1898+
break;
18781899
default:
18791900
rwbs[i++] = 'N';
18801901
}

0 commit comments

Comments
 (0)