Rev 532 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
497 | giacomo | 1 | #ifndef __FTRACE_CHUNK__ |
2 | #define __FTRACE_CHUNK__ |
||
3 | |||
4 | /* FTrace chunk function header */ |
||
5 | |||
6 | #include <FTrace_types.h> |
||
7 | |||
8 | /* Mutex for FTrace */ |
||
9 | void FTrace_lock(); |
||
10 | void FTrace_unlock(); |
||
11 | |||
12 | void FTrace_fsave(); |
||
13 | void FTrace_frestore(); |
||
14 | |||
15 | /* Memory */ |
||
16 | void *FTrace_malloc(int size); |
||
17 | void FTrace_free(void *ptr); |
||
18 | |||
19 | /* Enable/Disable Tracer */ |
||
20 | int FTrace_enable(); |
||
21 | int FTrace_disable(); |
||
22 | |||
23 | /* Create n chunks of specified size (normal/emergency) */ |
||
24 | int FTrace_chunk_create(int n, int normal_size, int emergency_size, FTrace_flags flags); |
||
25 | |||
26 | /* Delete a Chunk */ |
||
27 | int FTrace_chunk_delete(int number); |
||
28 | |||
29 | /* Set the chunk flags */ |
||
30 | int FTrace_set_chunk_flags(int number, FTrace_flags flags); |
||
31 | |||
32 | /* Get the chunk flags */ |
||
33 | int FTrace_get_chunk_flags(int number, FTrace_flags *flags); |
||
34 | |||
35 | /* Select the actual chunk */ |
||
36 | int FTrace_actual_chunk_select(int number); |
||
37 | |||
38 | /* Link two chunks */ |
||
39 | int FTrace_chunk_link(int chunk_A, int chunk_B, int osd_flags); |
||
40 | |||
41 | /* Find the first chunk with specific flags*/ |
||
42 | int FTrace_get_first_chunk(FTrace_flags flags); |
||
43 | |||
44 | /* Get one chunks status */ |
||
45 | FTrace_Chunk_Ptr *FTrace_get_chunk_table(); |
||
46 | |||
47 | /* Create a new memory region where the compressed data are stored */ |
||
48 | int FTrace_compress_chunk(int number, FTrace_flags new_flags); |
||
49 | |||
50 | /* Send the chunk out from the memory */ |
||
51 | int FTrace_send_chunk(int number, int osd_flags, FTrace_flags new_flags); |
||
52 | |||
53 | #endif |
||
54 |