|
From: janjust <tja...@un...> - 2011-07-18 19:10:53
|
Hi everyone,
Does anyone know of a 'valgrind' tool (or point me in a direction on how
to write my own) that does something similar to detecting shared memory
regions?
I'm actually thinking shared regions within libraries.
Any thoughts? comments or questions?
P.S.
To be blunt I'm fishing for any idea on how to incorporate that into my own
tool but for now any info will help, even if it isn't possible so I don't
waste my time on figuring it out.
--
View this message in context: http://old.nabble.com/detecting-shared-memory-regions-tp32085616p32085616.html
Sent from the Valgrind - Users mailing list archive at Nabble.com.
|
|
From: Oliver P. <oll...@go...> - 2011-07-18 21:32:13
|
Not sure if this is what you are interested in, but might be of some use, if not please disregard. http://portal.acm.org/citation.cfm?id=1621968 O On Mon, Jul 18, 2011 at 8:10 PM, janjust <tja...@un...> wrote: > > Hi everyone, > Does anyone know of a 'valgrind' tool (or point me in a direction on how > to write my own) that does something similar to detecting shared memory > regions? > > I'm actually thinking shared regions within libraries. > > Any thoughts? comments or questions? > > P.S. > To be blunt I'm fishing for any idea on how to incorporate that into my own > tool but for now any info will help, even if it isn't possible so I don't > waste my time on figuring it out. > > -- > View this message in context: > http://old.nabble.com/detecting-shared-memory-regions-tp32085616p32085616.html > Sent from the Valgrind - Users mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Storage Efficiency Calculator > This modeling tool is based on patent-pending intellectual property that > has been used successfully in hundreds of IBM storage optimization engage- > ments, worldwide. Store less, Store more with what you own, Move data to > the right place. Try It Now! > http://www.accelacomm.com/jaw/sfnl/114/51427378/ > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > -- Oliver Perks CS204 Department of Computer Science University of Warwick |
|
From: John R. <jr...@bi...> - 2011-07-18 21:45:25
|
> detecting shared memory regions? Something like: strace -o strace.out -e trace=mmap,mmap2,shmget,shmat ./my_app args... then grep for MAP_SHARED in the mmap* cases, etc. -- |
|
From: janjust <tja...@un...> - 2011-07-19 13:55:00
|
Thank you both for the replies. The link to the paper is not exactly what i had in mind, thank you though. strace would/could do the trick, I'd have to think about it further. Perhaps it would help out if I explain things a bit further. I'm trying to build a lackey like tool (say no more) , but where shared memory regions and thus addresses which are shared are tagged. This tag can be anything , a key word 'shared' if you will in the dump. So during the trace dump, any I addr L/S/M addr has an extra keyword which then would indicate that specific virtual address being shared. There are a few ways i can think of doing it, but that would involve modifications to the aspacemanager code and would work only with the later linux kernels which provide pagemaps. Something like: at each change in the memory layout call a subroutine that checks maps and pagemaps and prints virtual and physical ranges and simply compares physical addresses, any virtual region shared would obviously have the same physical address. Makes sense? I was sort of hoping that there are some mechanisms in valgrind that can help me with this without having to modify some core files. Comments? Again, I really appreciate any comment on this problem. janjust wrote: > > Hi everyone, > Does anyone know of a 'valgrind' tool (or point me in a direction on > how to write my own) that does something similar to detecting shared > memory regions? > > I'm actually thinking shared regions within libraries. > > Any thoughts? comments or questions? > > P.S. > To be blunt I'm fishing for any idea on how to incorporate that into my > own tool but for now any info will help, even if it isn't possible so I > don't waste my time on figuring it out. > > -- View this message in context: http://old.nabble.com/detecting-shared-memory-regions-tp32085616p32091408.html Sent from the Valgrind - Users mailing list archive at Nabble.com. |