malloc() failure counter

From: James Courtier-Dutton
Date: Tue Apr 17 2012 - 18:02:52 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" 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.tux.org/lkml/