s5z / zsim

A fast and scalable x86-64 multicore simulator
GNU General Public License v2.0
328 stars 183 forks source link

Getting LLC access trace #175

Open snehilverma41 opened 6 years ago

snehilverma41 commented 6 years ago

I wish to generate the access trace of requests to the LLC in order to implement Belady's optimum policy. I am unable to find the files, in the src, where I can code and get the relevant trace.

I tried to get the trace by making changes into the repl_policies.h (writing trace into a separate file) but the complication is due to interference, as repl_policies.h is used in various new replacement policies (which I intended to implement).

Any easier way to do so? Something like capturing the access from L2 to LLC ?

Kindly do respond.

Thanks!

grantae commented 6 years ago

Take a look at the TracingCache class in tracing_cache.h. You can interpose it between levels of the cache hierarchy in your configuration file.