diff options
author | Koan-Sin Tan <freedom.tan@linaro.org> | 2015-01-21 14:43:50 +0800 |
---|---|---|
committer | Tuukka Tikkanen <tuukka.tikkanen@linaro.org> | 2015-01-22 03:48:19 +0200 |
commit | 31ecd910c4f9b8692bc08947db5a90e73b0515fa (patch) | |
tree | a6db0f324776fcd022c54c880ca33e192f9ef35c /tracefile_ftrace.c | |
parent | 4fed8af2a0c606381c6116e2da9a860dc76b3b8d (diff) |
re-enable compile and run on Android platform
Make it possible to compile with either AOSP and NDK without
warnings. For AOSP, putting the idlestat to AOSP_ROOT/external
works fine. For NDK, the following command works fine.
ndk-build NDK_PROJECT_PATH=`pwd` \
APP_BUILD_SCRIPT=`pwd`/Android.mk \
APP_PLATFORM=19 APP_ABI=armeabi-v7a
1. Most code modifications to eliminate warnings
2. Both AOSP and NDK use -Wl,--gc-sections, which will remove code
compiled from tracefile_*.c and *_report.c, so we need
-Wl,--no-gc-sections
3. Android basename() is declared in <libgen.h>
4. Android doesn't have old <values.h>, use <floats.h> instead
Signed-off-by: Koan-Sin Tan <freedom.tan@linaro.org>
Reviewed-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
Diffstat (limited to 'tracefile_ftrace.c')
-rw-r--r-- | tracefile_ftrace.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tracefile_ftrace.c b/tracefile_ftrace.c index f4f9706..a5a04b5 100644 --- a/tracefile_ftrace.c +++ b/tracefile_ftrace.c @@ -31,7 +31,6 @@ #include <string.h> #include <malloc.h> #include <assert.h> -#include <values.h> #define TRACE_FORMAT "%*[^]]] %*s %lf:%*[^=]=%u%*[^=]=%d" |