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.


------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to