Rev 532 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1063 | tullio | 1 | |
2 | /* |
||
3 | * This program is free software; you can redistribute it and/or modify |
||
4 | * it under the terms of the GNU General Public License as published by |
||
5 | * the Free Software Foundation; either version 2 of the License, or |
||
6 | * (at your option) any later version. |
||
7 | * |
||
8 | * This program is distributed in the hope that it will be useful, |
||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
11 | * GNU General Public License for more details. |
||
12 | * |
||
13 | * You should have received a copy of the GNU General Public License |
||
14 | * along with this program; if not, write to the Free Software |
||
15 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
16 | * |
||
17 | */ |
||
18 | |||
497 | giacomo | 19 | #ifndef __FTRACE_CHUNK__ |
20 | #define __FTRACE_CHUNK__ |
||
21 | |||
22 | /* FTrace chunk function header */ |
||
23 | |||
24 | #include <FTrace_types.h> |
||
25 | |||
26 | /* Mutex for FTrace */ |
||
27 | void FTrace_lock(); |
||
28 | void FTrace_unlock(); |
||
29 | |||
30 | void FTrace_fsave(); |
||
31 | void FTrace_frestore(); |
||
32 | |||
33 | /* Memory */ |
||
34 | void *FTrace_malloc(int size); |
||
35 | void FTrace_free(void *ptr); |
||
36 | |||
37 | /* Enable/Disable Tracer */ |
||
38 | int FTrace_enable(); |
||
39 | int FTrace_disable(); |
||
40 | |||
532 | giacomo | 41 | /* Create a chunk of specified size (normal/emergency) */ |
42 | int FTrace_chunk_create(int normal_size, int emergency_size, FTrace_flags flags); |
||
497 | giacomo | 43 | |
44 | /* Delete a Chunk */ |
||
45 | int FTrace_chunk_delete(int number); |
||
46 | |||
47 | /* Set the chunk flags */ |
||
48 | int FTrace_set_chunk_flags(int number, FTrace_flags flags); |
||
49 | |||
50 | /* Get the chunk flags */ |
||
51 | int FTrace_get_chunk_flags(int number, FTrace_flags *flags); |
||
52 | |||
53 | /* Select the actual chunk */ |
||
54 | int FTrace_actual_chunk_select(int number); |
||
55 | |||
56 | /* Link two chunks */ |
||
532 | giacomo | 57 | int FTrace_chunk_link(int chunk_A, int chunk_B); |
497 | giacomo | 58 | |
59 | /* Find the first chunk with specific flags*/ |
||
60 | int FTrace_get_first_chunk(FTrace_flags flags); |
||
61 | |||
62 | /* Get one chunks status */ |
||
63 | FTrace_Chunk_Ptr *FTrace_get_chunk_table(); |
||
64 | |||
65 | /* Create a new memory region where the compressed data are stored */ |
||
66 | int FTrace_compress_chunk(int number, FTrace_flags new_flags); |
||
67 | |||
68 | /* Send the chunk out from the memory */ |
||
69 | int FTrace_send_chunk(int number, int osd_flags, FTrace_flags new_flags); |
||
70 | |||
71 | #endif |
||
72 |