1 | /* This file is autogenerated by tracetool, do not edit. */ |
2 | |
3 | #ifndef TRACE_SCSI_GENERATED_TRACERS_H |
4 | #define TRACE_SCSI_GENERATED_TRACERS_H |
5 | |
6 | #include "trace/control.h" |
7 | |
8 | extern TraceEvent _TRACE_PR_MANAGER_EXECUTE_EVENT; |
9 | extern TraceEvent _TRACE_PR_MANAGER_RUN_EVENT; |
10 | extern uint16_t _TRACE_PR_MANAGER_EXECUTE_DSTATE; |
11 | extern uint16_t _TRACE_PR_MANAGER_RUN_DSTATE; |
12 | #define TRACE_PR_MANAGER_EXECUTE_ENABLED 1 |
13 | #define TRACE_PR_MANAGER_RUN_ENABLED 1 |
14 | #include "qemu/log-for-trace.h" |
15 | |
16 | |
17 | #define TRACE_PR_MANAGER_EXECUTE_BACKEND_DSTATE() ( \ |
18 | trace_event_get_state_dynamic_by_id(TRACE_PR_MANAGER_EXECUTE) || \ |
19 | false) |
20 | |
21 | static inline void _nocheck__trace_pr_manager_execute(int fd, int cmd, int sa) |
22 | { |
23 | if (trace_event_get_state(TRACE_PR_MANAGER_EXECUTE) && qemu_loglevel_mask(LOG_TRACE)) { |
24 | struct timeval _now; |
25 | gettimeofday(&_now, NULL); |
26 | qemu_log("%d@%zu.%06zu:pr_manager_execute " "fd=%d cmd=0x%02x service action=0x%02x" "\n" , |
27 | qemu_get_thread_id(), |
28 | (size_t)_now.tv_sec, (size_t)_now.tv_usec |
29 | , fd, cmd, sa); |
30 | } |
31 | } |
32 | |
33 | static inline void trace_pr_manager_execute(int fd, int cmd, int sa) |
34 | { |
35 | if (true) { |
36 | _nocheck__trace_pr_manager_execute(fd, cmd, sa); |
37 | } |
38 | } |
39 | |
40 | #define TRACE_PR_MANAGER_RUN_BACKEND_DSTATE() ( \ |
41 | trace_event_get_state_dynamic_by_id(TRACE_PR_MANAGER_RUN) || \ |
42 | false) |
43 | |
44 | static inline void _nocheck__trace_pr_manager_run(int fd, int cmd, int sa) |
45 | { |
46 | if (trace_event_get_state(TRACE_PR_MANAGER_RUN) && qemu_loglevel_mask(LOG_TRACE)) { |
47 | struct timeval _now; |
48 | gettimeofday(&_now, NULL); |
49 | qemu_log("%d@%zu.%06zu:pr_manager_run " "fd=%d cmd=0x%02x service action=0x%02x" "\n" , |
50 | qemu_get_thread_id(), |
51 | (size_t)_now.tv_sec, (size_t)_now.tv_usec |
52 | , fd, cmd, sa); |
53 | } |
54 | } |
55 | |
56 | static inline void trace_pr_manager_run(int fd, int cmd, int sa) |
57 | { |
58 | if (true) { |
59 | _nocheck__trace_pr_manager_run(fd, cmd, sa); |
60 | } |
61 | } |
62 | #endif /* TRACE_SCSI_GENERATED_TRACERS_H */ |
63 | |