Re: Valgrind trace Memory Addresses while running?

G N Srinivasa Prasanna <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Message-ID <PSAPR06MB4472434B0F2CDF9ABA6D8374EA619@PSAPR06MB4472.apcprd06.prod.outlook.com>
Thanks for this information.

We are doing a memory system simulation, and need the address stream. At this point of time, we don't care if we need a Terabyte even, we can delete the files later.

Is there anything we can use from Valgrind?

Best
________________________________
From: John Reiser <[email protected]>
Sent: 06 August 2022 01:18
To: [email protected] <[email protected]>
Subject: Re: [Valgrind-users] Valgrind trace Memory Addresses while running?

>> if we can get a list of all the physical addresses the program used, in the order the program accessed them, and whether read/write.


>  For any real world application the size of the log would be overwhelmingly huge ... (unless you only want unique addresses).

Of course this is the purpose of data compression (such as gzip, etc).
You get some/much/most of the benefit of restricting to unique addresses
while still capturing the entire stream of references.

But as Paul noted, valgrind works in virtual addresses.
Getting all the actual physical addresses is close to impossible.
If you are working in an embedded device environment
and care only about a small handful of memory-mapped
device registers, then you can (must) process the
mapping yourself.





_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.