On Freitag, 25. September 2015 20:27:45 CEST martin wrote:
> Hello,
> 
> I'm new to Cachegrind (and cache simulation in general).
> 
> I'm trying to do a memory trace of my application, but only for
> operations that go to DRAM, that is, only if there was a LLC miss
> should I care. Is it possible to achieve that with Cachegrind? AFAICS,
> it only counts the number of events (and where they happened), but
> maybe it wouldn't be too hard to modify it to print the address every
> time a LLC miss happens. If anyone could point me to the right place
> to look, I would appreciate it.

You could also use perf for this use case, if your CPU has the required 
performance counters. This is also going to be much faster and more accurate, 
as you don't need to simulate anything, but get the real counters directly 
from hardware:

perf record --event cache-misses --call-graph dwarf <your application>

Visualize it then with either a FlameGraph, ur directly with perf report.

HTH
-- 
Milian Wolff
m...@milianw.de
http://milianw.de

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to