From: "sting sting" <zstingx@hotmail.com>
To: linux-kernel@vger.kernel.org
Subject: do_brk() trace mystery
Date: Fri, 12 Mar 2004 21:39:15 +0200 [thread overview]
Message-ID: <Sea2-F60clKZMX3rQvx00046766@hotmail.com> (raw)
Hello,
for debugging purpoese I had used the strace utilitty.
The command I had traced with starce was
"cat /proc/interrupts".
Well , I saw that there were not a few calls to the brk() system calls.
What I know is the brk() is a system call that is intended to enlarge
procees
memory and is supposed to be called by the memory manager when sensing
that a process needs more memory.
But I did a search on the kernel tree fo do_brk()
and I found only 5 entries (in 2.6 kernel and also in 2.4.24).
One of the was the declaration in mm.h; the other was
implementation in mmap.c
Now the 2 others were in binfmt_out.c and in binfmt_elf.c
(in 2.4.20 it is also in ksyms.c ; in 2.6 it is not but it is in mm/nommu.c)
So the mystery is : who calls the brk() system call when I type
"cat /proc/interrupts"
It does not seem to me that it is binfmt_out.c and in binfmt_elf.c (Or am I
wrong)?
(BTW,searching for sys_mmap gives 2 results:
\linux-2.4.24\arch\i386\kernel\sys_i386.c
and the entry.s file)
regards,
Sting
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
next reply other threads:[~2004-03-12 19:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-12 19:39 sting sting [this message]
2004-03-12 20:11 ` Chris Friesen
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=Sea2-F60clKZMX3rQvx00046766@hotmail.com \
--to=zstingx@hotmail.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®