Anonymous mappings too anonymous.

Esa-Pekka Pyokkimies <[email protected]>
Newsgroups org.kernel.vger.linux-newbie
Message-ID <[email protected]>
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
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.