libCacheSim
libCacheSim copied to clipboard
Question on Op in vscsi trace
i have one question,that is,when i find the data structure of vscsi and print the trace(length and offset), typedef struct { uint32_t sn; uint32_t len; uint32_t nSG; uint16_t cmd; uint16_t ver; uint64_t lbn; uint64_t ts; } trace_v1_record_t; which element represents read or write i found that the simulator do not use the op(w or r), thanks for explaination! Thank you so much
I guess is cmd,and according to https://man.openbsd.org/vscsi.4,1 means read, 2 means write? Is that right?
i found that cmd has 2 code 40 and 42,42 represents write and 40 represent read