Mohammad A Khasawneh via gem5-users <gem5-users <at> gem5.org> writes:
> > Hi, > I placed SPLASH benchmarks inside the disk image, and now I'm interested in getting DPRINTF traces related to cache replacement behavior only while running these benchmarks. what would be a good way to proceed with this requirement? > > the most basic way is to run the gem5.debug binary and get the tick right before executing a benchmark and then filtering the trace file, but that takes a very long time with debugging. Is there a better/faster way to do this? > > Thank your for your time, > Mohammad > > > _______________________________________________ > gem5-users mailing list > gem5-users <at> gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users Mohammad, I am doing something similar to this. For my purposes, what I've done is the following. Near the beginning of my program, I malloc some space, access that space, and then print out the address that was returned by malloc. I then look at a trace of TLB activity (which you can gather using debug-flags=TLB option) to find when that address was translated. This will give a time stamp soon after the program begins executing. For me, the debug-flags option has worked with gem5.opt. I understand that this is probably not the best way of doing what you need to do, but perhaps it will provide a starting point for you. Regards, Patrick La Fratta _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users