[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <503E4A58.5000000@gmail.com>
Date: Wed, 29 Aug 2012 10:59:04 -0600
From: David Ahern <dsahern@...il.com>
To: Irina Tirdea <irina.tirdea@...il.com>
CC: Steven Rostedt <rostedt@...dmis.org>,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
Ingo Molnar <mingo@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
Namhyung Kim <namhyung@...nel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Frederic Weisbecker <fweisbec@...il.com>
Subject: Re: [PATCH 12/13] perf tools: replace on_exit with atexit
On 8/28/12 4:06 PM, Irina Tirdea wrote:
> on_exit() is only available in new versions of glibc.
> Using on_exit on Android leads to errors at compile time.
>
> Replacing on_exit with its more portable version atexit.
> This leads to using a global variable since on_exit supports
> sending a parameters while atexit does not.
Bernhard's patch implements on_exit. Why not go that route?
The exit functions need the commands status to know whether to attempt
to process records. See: https://lkml.org/lkml/2012/8/26/123
Processing records on non-0 exit causes a segfault as the session has
been deleted.
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists