summaryrefslogtreecommitdiff
path: root/firmware/export/profile.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/profile.h')
-rw-r--r--firmware/export/profile.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/firmware/export/profile.h b/firmware/export/profile.h
index cb751328ae..3736ac7924 100644
--- a/firmware/export/profile.h
+++ b/firmware/export/profile.h
@@ -8,7 +8,7 @@
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Profiling routines counts ticks and calls to each profiled function. 10 * Profiling routines counts ticks and calls to each profiled function.
11 * 11 *
12 * Copyright (C) 2005 by Brandon Low 12 * Copyright (C) 2005 by Brandon Low
13 * 13 *
14 * All files in this archive are subject to the GNU General Public License. 14 * All files in this archive are subject to the GNU General Public License.
@@ -31,8 +31,8 @@
31#define INDEX_MASK 0x7FF /* lower INDEX_BITS 1 */ 31#define INDEX_MASK 0x7FF /* lower INDEX_BITS 1 */
32 32
33/* 33/*
34 * In the current setup (pfd has 4 longs and 2 shorts) this uses 20k of RAM 34 * In the current setup (pfd has 4 longs and 2 shorts) this uses 20k of RAM
35 * for profiling, and allows for profiling sections of code with up-to 35 * for profiling, and allows for profiling sections of code with up-to
36 * 1024 function caller->callee pairs 36 * 1024 function caller->callee pairs
37 */ 37 */
38#define NUMPFDS 1024 38#define NUMPFDS 1024
@@ -54,8 +54,6 @@ struct pfd_struct {
54#define PROF_OFF_THREAD 0x10 54#define PROF_OFF_THREAD 0x10
55#define PROF_ON_THREAD 0x0F 55#define PROF_ON_THREAD 0x0F
56 56
57extern int current_thread;
58
59/* Initialize and start profiling */ 57/* Initialize and start profiling */
60void profstart(int current_thread) 58void profstart(int current_thread)
61 NO_PROF_ATTR; 59 NO_PROF_ATTR;
@@ -72,7 +70,7 @@ void profile_thread_stopped(int current_thread)
72void profile_thread_started(int current_thread) 70void profile_thread_started(int current_thread)
73 NO_PROF_ATTR; 71 NO_PROF_ATTR;
74 72
75void profile_func_exit(void *this_fn, void *call_site) 73void profile_func_exit(void *this_fn, void *call_site)
76 NO_PROF_ATTR ICODE_ATTR; 74 NO_PROF_ATTR ICODE_ATTR;
77void profile_func_enter(void *this_fn, void *call_site) 75void profile_func_enter(void *this_fn, void *call_site)
78 NO_PROF_ATTR ICODE_ATTR; 76 NO_PROF_ATTR ICODE_ATTR;