FS#12076 - DB stats resurrection: If the filename was changed, require
[kugel-rb.git] / apps / plugins / lib / profile_plugin.c
blob9224997423f9dd2273bea3dec2de7809752bb1a3
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Passthrough routines for plugin profiling
12 * Copyright (C) 2006 Brandon Low
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
22 ****************************************************************************/
24 #include "plugin.h"
26 void __cyg_profile_func_enter(void *this_fn, void *call_site) {
27 #ifdef CPU_COLDFIRE
28 (void)call_site;
29 rb->profile_func_enter(this_fn, __builtin_return_address(1));
30 #else
31 rb->profile_func_enter(this_fn, call_site);
32 #endif
35 void __cyg_profile_func_exit(void *this_fn, void *call_site) {
36 rb->profile_func_exit(this_fn,call_site);