perf tools: Introduce xzalloc() for detecting out of memory conditions
authorMasami Hiramatsu <mhiramat@redhat.com>
Tue, 16 Mar 2010 22:05:21 +0000 (18:05 -0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 17 Mar 2010 10:32:29 +0000 (11:32 +0100)
commita1d37d5285bcda07f9c0b80a2634ca20ab545297
tree5b6e5c861db7077d6fc954b3d37825751afd5a22
parente4713e93b125497e9ba44d93de1bd9d8e5ad8946
perf tools: Introduce xzalloc() for detecting out of memory conditions

Introducing xzalloc() which wrapping zalloc() for detecting out
of memory conditions.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20100316220521.32050.85155.stgit@localhost6.localdomain6>
[ -v2: small cleanups in surrounding code ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/util.h