libCacheSim icon indicating copy to clipboard operation
libCacheSim copied to clipboard

Question on Op in vscsi trace

Open haomactracy opened this issue 1 year ago • 2 comments

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

haomactracy avatar Jan 31 '24 15:01 haomactracy

I guess is cmd,and according to https://man.openbsd.org/vscsi.4,1 means read, 2 means write? Is that right?

haomactracy avatar Jan 31 '24 15:01 haomactracy

i found that cmd has 2 code 40 and 42,42 represents write and 40 represent read

haomactracy avatar Feb 01 '24 06:02 haomactracy