From: "H. Peter Anvin" <hpa@zytor.com>
To: James Courtier-Dutton <james.dutton@gmail.com>
Cc: LKML Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: malloc() failure counter
Date: Tue, 17 Apr 2012 16:19:24 -0700 [thread overview]
Message-ID: <4F8DFA7C.6080604@zytor.com> (raw)
In-Reply-To: <CAAMvbhFCzKH-4_kspOfgCOEPZpsr1MVoVJogKmupF=FgtXE4GQ@mail.gmail.com>
On 04/17/2012 03:02 PM, James Courtier-Dutton wrote:
> Hi,
>
> If I have a user application that tries a malloc() or a calloc() call,
> and this call fails, is there any way to report this to a global stats
> counter, like the ones in /proc/meminfo
> Is there any way to find out that a malloc call made by a user program failed?
>
No, because that is an internal thing to glibc.
-hpa
prev parent reply other threads:[~2012-04-17 23:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-17 22:02 malloc() failure counter James Courtier-Dutton
2012-04-17 23:19 ` H. Peter Anvin [this message]
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=4F8DFA7C.6080604@zytor.com \
--to=hpa@zytor.com \
--cc=james.dutton@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.