6b13f685e
김민수
BSP 최초 추가
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
#ifndef __TRACE_H
#define __TRACE_H
enum {
FUNC_SITE_SIZE = 4,
};
enum trace_chunk_type {
TRACE_CHUNK_FUNCS,
TRACE_CHUNK_CALLS,
};
struct trace_output_func {
uint32_t offset;
uint32_t call_count;
};
struct trace_output_hdr {
enum trace_chunk_type type;
uint32_t rec_count;
};
void trace_print_stats(void);
int trace_list_functions(void *buff, int buff_size, unsigned *needed);
enum ftrace_flags {
FUNCF_EXIT = 0UL << 30,
FUNCF_ENTRY = 1UL << 30,
FUNCF_TEXTBASE = 2UL << 30,
FUNCF_TIMESTAMP_MASK = 0x3fffffff,
};
#define TRACE_CALL_TYPE(call) ((call)->flags & 0xc0000000UL)
struct trace_call {
uint32_t func;
uint32_t caller;
uint32_t flags;
};
int trace_list_calls(void *buff, int buff_size, unsigned int *needed);
void trace_set_enabled(int enabled);
int trace_early_init(void);
int trace_init(void *buff, size_t buff_size);
#endif
|