* Anonymous mappings too anonymous.
@ 2011-11-04 11:54 Esa-Pekka Pyokkimies
0 siblings, 0 replies; only message in thread
From: Esa-Pekka Pyokkimies @ 2011-11-04 11:54 UTC (permalink / raw)
To: linux-newbie
Hello!
I have projects which have hundreds of anonymous memory mappings.
I would like to label these mappings similarly like the [heap],
[stack] etc. mappings are labeled in /proc/<pid>/maps.
Code like
mmap(NULL,off,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,fd,0);
doesn't work, even if fd is a valid file descriptor.
Ideally I would like to see lines such as
7f0e316e5000-7f0e31ee5000 rw-p 00000000 00:00 0 [my data here]
Is this possible with some sysctl?
t: Esa-Pekka
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-04 11:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-04 11:54 Anonymous mappings too anonymous Esa-Pekka Pyokkimies
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox