|
From: Leung Ngai-H. Z. <leu...@co...> - 2005-12-30 12:49:17
|
Hi This is actually quite a noob question. I'm a CS student doing a Final Year Project of my Bachelor's on Virtual Memory in Linux. I'll need to extract memory reference strings from Linux programs. I could either (1) find something written by someone or (2) modify Valgrind to log every reference. Does anyone know of anything readily available? If there isn't something readily available, could someone tell me which files I should look at and if there is any documentation for the data structures used by Valgrind? I'm quite experienced at doing small C++ academic programs, do you think in a month or so of working hard at it I could finish the necessary modifications? Thanks Zac |
|
From: Tom H. <to...@co...> - 2005-12-30 13:11:09
|
In message <Pin...@sf...>
Leung Ngai-Hang Zachary <leu...@co...> wrote:
> This is actually quite a noob question. I'm a CS student doing a Final
> Year Project of my Bachelor's on Virtual Memory in Linux. I'll need to
> extract memory reference strings from Linux programs. I could either
> (1) find something written by someone
> or
> (2) modify Valgrind to log every reference.
> Does anyone know of anything readily available?
I might be being a bit dense here, but what on earth is a memory
reference string? I've never heard of such a thing before...
> If there isn't something readily available, could someone tell me which
> files I should look at and if there is any documentation for the
> data structures used by Valgrind? I'm quite experienced at doing small
> C++ academic programs, do you think in a month or so of working hard at
> it I could finish the necessary modifications?
Hard to say until we understand what it is you're trying to do.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Nicholas N. <nj...@cs...> - 2005-12-30 22:42:55
|
On Fri, 30 Dec 2005, Tom Hughes wrote: >> This is actually quite a noob question. I'm a CS student doing a Final >> Year Project of my Bachelor's on Virtual Memory in Linux. I'll need to >> extract memory reference strings from Linux programs. I could either >> (1) find something written by someone >> or >> (2) modify Valgrind to log every reference. >> Does anyone know of anything readily available? > > I might be being a bit dense here, but what on earth is a memory > reference string? I've never heard of such a thing before... I assume he meant a memory access trace. I've modified Lackey to do this if the --trace-mem=yes option is specified, since people ask for this about once a month. It was very simple. Check out the code from the SVN repository to use the new option. Nick |
|
From: Nicholas N. <nj...@cs...> - 2005-12-30 22:49:37
|
On Fri, 30 Dec 2005, Nicholas Nethercote wrote: > I assume he meant a memory access trace. I've modified Lackey to do this if > the --trace-mem=yes option is specified, since people ask for this about once > a month. It was very simple. Check out the code from the SVN repository to > use the new option. I just realised the way I implemented makes instructions that modify memory look like a load followed by a separate store. Try Dullard (see http://www.cs.utexas.edu/~njn/software.html) which is based on an old version of Valgrind but should do the job. Nick |