diff options
author | Bernhard Rosenkraenzer <[email protected]> | 2012-10-08 09:43:26 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-10-08 17:38:25 -0300 |
commit | 78da39faf7c903bb6e3c20a726fde1bf98d10af8 (patch) | |
tree | c3aa294624d66d52ce6952568ac95880c202a16a /lib/string_helpers.c | |
parent | 355afe816312faf20d81fdcade29e0361d72a7b4 (diff) |
perf tools: Add on_exit implementation
on_exit() is only available in new versions of glibc.
It is not implemented in Bionic and will lead to linking errors when
compiling for Android.
Implement a wrapper for on_exit using atexit.
The implementation for on_exit is the one sent by Bernhard Rosenkraenzer in
https://lkml.org/lkml/2012/8/23/316. The configuration part from the Makefile
is different than the one from the original patch.
Signed-off-by: Bernhard Rosenkraenzer <[email protected]>
Signed-off-by: Irina Tirdea <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Irina Tirdea <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions