From 52bdcbae856b07d3a793615b98dff338d26302ec Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Mon, 28 Jul 2008 22:43:41 +0000 Subject: Commit FS#9170 by Dave Hooper. Adds support for profiling on ARM, and fixes various issues with compiling profile builds. Also, note that profile_reader.pl syntax has changed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18142 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs.c | 4 ++-- apps/codecs/SOURCES | 2 ++ apps/plugin.c | 4 ++-- apps/plugins/SUBDIRS | 4 ++++ 4 files changed, 10 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/codecs.c b/apps/codecs.c index c31fd84..24490dd 100644 --- a/apps/codecs.c +++ b/apps/codecs.c @@ -138,8 +138,8 @@ struct codec_api ci = { #ifdef RB_PROFILE profile_thread, profstop, - profile_func_enter, - profile_func_exit, + __cyg_profile_func_enter, + __cyg_profile_func_exit, #endif #if defined(HAVE_RECORDING) && !defined(SIMULATOR) diff --git a/apps/codecs/SOURCES b/apps/codecs/SOURCES index 25ca549..3038903 100644 --- a/apps/codecs/SOURCES +++ b/apps/codecs/SOURCES @@ -7,7 +7,9 @@ wav.c a52.c mpc.c wavpack.c +#ifndef RB_PROFILE alac.c +#endif wma.c #if MEMORYSIZE > 1 aac.c diff --git a/apps/plugin.c b/apps/plugin.c index a220e8c..24082de 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -335,8 +335,8 @@ static const struct plugin_api rockbox_api = { #ifdef RB_PROFILE profile_thread, profstop, - profile_func_enter, - profile_func_exit, + __cyg_profile_func_enter, + __cyg_profile_func_exit, #endif #ifdef SIMULATOR diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS index 94614e2..1b3e2af 100644 --- a/apps/plugins/SUBDIRS +++ b/apps/plugins/SUBDIRS @@ -33,14 +33,18 @@ pacbox /* For all the color targets */ #if defined(HAVE_LCD_COLOR) || defined(MROBE_100) || \ (LCD_DEPTH == 2) && !defined(ARCHOS_AV300) +#ifndef RB_PROFILE doom #endif +#endif /* For all the swcodec targets */ #if CONFIG_CODEC == SWCODEC midi /* beatbox */ +#ifndef RB_PROFILE mpegplayer #endif +#endif #endif /* IRIVER_IFP7XX_SERIES */ -- cgit v1.1