FreeCalypso > hg > tcs211-c139
comparison gpf/INC/prf_func.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /* | |
2 +------------------------------------------------------------------------------ | |
3 | File: prf_func.h | |
4 +------------------------------------------------------------------------------ | |
5 | Copyright 2002 Texas Instruments Berlin, AG | |
6 | All rights reserved. | |
7 | | |
8 | This file is confidential and a trade secret of Texas | |
9 | Instruments Berlin, AG | |
10 | The receipt of or possession of this file does not convey | |
11 | any rights to reproduce or disclose its contents or to | |
12 | manufacture, use, or sell anything it may describe, in | |
13 | whole, or in part, without the specific written consent of | |
14 | Texas Instruments Berlin, AG. | |
15 +----------------------------------------------------------------------------- | |
16 | Purpose : Profiler API and types. | |
17 +----------------------------------------------------------------------------- | |
18 */ | |
19 | |
20 #ifndef __PRF_FUNC_H__ | |
21 #define __PRF_FUNC_H__ | |
22 | |
23 /*==== CONSTANTS ==================================================*/ | |
24 | |
25 #define PRF_INITIALIZED 0xAFFEDEAD | |
26 | |
27 /*==== TYPES ======================================================*/ | |
28 | |
29 typedef struct | |
30 { | |
31 unsigned int magic_nr; | |
32 void (*log_entity_create)(void * entity,const char * name); | |
33 void (*log_entity_delete)(void * entity); | |
34 void (*log_entity_activate)(void * entity); | |
35 void (*log_function_entry)(void * function); | |
36 void (*log_function_exit)(void * function); | |
37 void (*log_point_of_interest)(const char * poi); | |
38 } T_PROFILER_FUNC; | |
39 | |
40 /*==== PROTOTYPES =================================================*/ | |
41 | |
42 void prf_init ( void ); | |
43 void prf_register ( T_PROFILER_FUNC * func ); | |
44 void prf_log_entity_create ( void * entity, const char * name ); | |
45 void prf_log_entity_delete ( void * entity ); | |
46 void prf_log_entity_activate ( void * entity ); | |
47 void prf_log_function_entry ( void * function ); | |
48 void prf_log_function_exit ( void * function ); | |
49 void prf_log_point_of_interest ( const char * poi ); | |
50 | |
51 | |
52 #endif /* __PRF_FUNC_H__ */ | |
53 |