1a1a11a / libCacheSim

a high performance library for building cache simulators
GNU General Public License v3.0
159 stars 34 forks source link

Question on Op in vscsi trace #56

Closed haomactracy closed 3 months ago

haomactracy commented 8 months ago

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 commented 8 months ago

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

haomactracy commented 8 months ago

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