public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* malloc() failure counter
@ 2012-04-17 22:02 James Courtier-Dutton
  2012-04-17 23:19 ` H. Peter Anvin
  0 siblings, 1 reply; 2+ messages in thread
From: James Courtier-Dutton @ 2012-04-17 22:02 UTC (permalink / raw)
  To: LKML Mailing List

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?

Kind Regards

James

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-17 23:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17 22:02 malloc() failure counter James Courtier-Dutton
2012-04-17 23:19 ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox