From cbd7fa40f6ba6d7c484299cbab06795196479ab4 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Mon, 28 Apr 2008 18:41:13 +0000 Subject: Moved private types and constants from profile.h to profile.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17284 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/profile.h | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/profile.h b/firmware/export/profile.h index 3736ac7..4a7649e 100644 --- a/firmware/export/profile.h +++ b/firmware/export/profile.h @@ -19,40 +19,7 @@ ****************************************************************************/ #ifndef _SYS_PROFILE_H -#define _SYS_PROFILE_H 1 - -#include - -/* PFD is Profiled Function Data */ - -/* Indices are shorts which means that we use 4k of RAM */ -#define INDEX_BITS 11 /* What is a reasonable size for this? */ -#define INDEX_SIZE 2048 /* 2 ^ INDEX_BITS */ -#define INDEX_MASK 0x7FF /* lower INDEX_BITS 1 */ - -/* - * In the current setup (pfd has 4 longs and 2 shorts) this uses 20k of RAM - * for profiling, and allows for profiling sections of code with up-to - * 1024 function caller->callee pairs - */ -#define NUMPFDS 1024 - -struct pfd_struct { - void *self_pc; - unsigned long count; - unsigned long time; - unsigned short link; - struct pfd_struct *caller; -}; - -/* Possible states of profiling */ -#define PROF_ON 0x00 -#define PROF_BUSY 0x01 -#define PROF_ERROR 0x02 -#define PROF_OFF 0x03 -/* Masks for thread switches */ -#define PROF_OFF_THREAD 0x10 -#define PROF_ON_THREAD 0x0F +#define _SYS_PROFILE_H /* Initialize and start profiling */ void profstart(int current_thread) -- cgit v1.1