Linux Newbie help
 help / color / mirror / Atom feed
From: Esa-Pekka Pyokkimies <esa-pekka.pyokkimies@stonesoft.com>
To: linux-newbie@vger.kernel.org
Subject: Anonymous mappings too anonymous.
Date: Fri, 4 Nov 2011 13:54:40 +0200	[thread overview]
Message-ID: <op.v4e7dexl6ywr33@esapekka-pc.rad1> (raw)

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

                 reply	other threads:[~2011-11-04 11:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.v4e7dexl6ywr33@esapekka-pc.rad1 \
    --to=esa-pekka.pyokkimies@stonesoft.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox