Anonymous mappings too anonymous.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs


[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux