1 | /* This file is autogenerated by tracetool, do not edit. */ |
2 | |
3 | #ifndef TRACE_ACCEL_TCG_GENERATED_TRACERS_H |
4 | #define TRACE_ACCEL_TCG_GENERATED_TRACERS_H |
5 | |
6 | #include "trace/control.h" |
7 | |
8 | extern TraceEvent _TRACE_EXEC_TB_EVENT; |
9 | extern TraceEvent _TRACE_EXEC_TB_NOCACHE_EVENT; |
10 | extern TraceEvent _TRACE_EXEC_TB_EXIT_EVENT; |
11 | extern TraceEvent _TRACE_TRANSLATE_BLOCK_EVENT; |
12 | extern uint16_t _TRACE_EXEC_TB_DSTATE; |
13 | extern uint16_t _TRACE_EXEC_TB_NOCACHE_DSTATE; |
14 | extern uint16_t _TRACE_EXEC_TB_EXIT_DSTATE; |
15 | extern uint16_t _TRACE_TRANSLATE_BLOCK_DSTATE; |
16 | #define TRACE_EXEC_TB_ENABLED 0 |
17 | #define TRACE_EXEC_TB_NOCACHE_ENABLED 0 |
18 | #define TRACE_EXEC_TB_EXIT_ENABLED 0 |
19 | #define TRACE_TRANSLATE_BLOCK_ENABLED 1 |
20 | #include "qemu/log-for-trace.h" |
21 | |
22 | |
23 | #define TRACE_EXEC_TB_BACKEND_DSTATE() ( \ |
24 | false) |
25 | |
26 | static inline void _nocheck__trace_exec_tb(void * tb, uintptr_t pc) |
27 | { |
28 | } |
29 | |
30 | static inline void trace_exec_tb(void * tb, uintptr_t pc) |
31 | { |
32 | if (true) { |
33 | _nocheck__trace_exec_tb(tb, pc); |
34 | } |
35 | } |
36 | |
37 | #define TRACE_EXEC_TB_NOCACHE_BACKEND_DSTATE() ( \ |
38 | false) |
39 | |
40 | static inline void _nocheck__trace_exec_tb_nocache(void * tb, uintptr_t pc) |
41 | { |
42 | } |
43 | |
44 | static inline void trace_exec_tb_nocache(void * tb, uintptr_t pc) |
45 | { |
46 | if (true) { |
47 | _nocheck__trace_exec_tb_nocache(tb, pc); |
48 | } |
49 | } |
50 | |
51 | #define TRACE_EXEC_TB_EXIT_BACKEND_DSTATE() ( \ |
52 | false) |
53 | |
54 | static inline void _nocheck__trace_exec_tb_exit(void * last_tb, unsigned int flags) |
55 | { |
56 | } |
57 | |
58 | static inline void trace_exec_tb_exit(void * last_tb, unsigned int flags) |
59 | { |
60 | if (true) { |
61 | _nocheck__trace_exec_tb_exit(last_tb, flags); |
62 | } |
63 | } |
64 | |
65 | #define TRACE_TRANSLATE_BLOCK_BACKEND_DSTATE() ( \ |
66 | trace_event_get_state_dynamic_by_id(TRACE_TRANSLATE_BLOCK) || \ |
67 | false) |
68 | |
69 | static inline void _nocheck__trace_translate_block(void * tb, uintptr_t pc, uint8_t * tb_code) |
70 | { |
71 | if (trace_event_get_state(TRACE_TRANSLATE_BLOCK) && qemu_loglevel_mask(LOG_TRACE)) { |
72 | struct timeval _now; |
73 | gettimeofday(&_now, NULL); |
74 | qemu_log("%d@%zu.%06zu:translate_block " "tb:%p, pc:0x%" PRIxPTR", tb_code:%p" "\n" , |
75 | qemu_get_thread_id(), |
76 | (size_t)_now.tv_sec, (size_t)_now.tv_usec |
77 | , tb, pc, tb_code); |
78 | } |
79 | } |
80 | |
81 | static inline void trace_translate_block(void * tb, uintptr_t pc, uint8_t * tb_code) |
82 | { |
83 | if (true) { |
84 | _nocheck__trace_translate_block(tb, pc, tb_code); |
85 | } |
86 | } |
87 | #endif /* TRACE_ACCEL_TCG_GENERATED_TRACERS_H */ |
88 | |