| /* cpu_dump_state() logging functions: */ |
| * @cpu: The CPU whose state is to be logged. |
| * @flags: Flags what to log. |
| * Logs the output of cpu_dump_state(). |
| static inline void log_cpu_state(CPUState *cpu, int flags) |
| FILE *f = qemu_log_trylock(); |
| cpu_dump_state(cpu, f, flags); |
| * @mask: Mask when to log. |
| * @cpu: The CPU whose state is to be logged. |
| * @flags: Flags what to log. |
| * Logs the output of cpu_dump_state() if loglevel includes @mask. |
| static inline void log_cpu_state_mask(int mask, CPUState *cpu, int flags) |
| if (qemu_loglevel & mask) { |
| log_cpu_state(cpu, flags); |