Coverage Report

Created: 2026-11-20 08:13

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/qemu/include/exec/log.h
Line
Count
Source
1
#ifndef QEMU_EXEC_LOG_H
2
#define QEMU_EXEC_LOG_H
3
4
#include "qemu/log.h"
5
#include "hw/core/cpu.h"
6
#include "disas/disas.h"
7
8
/* cpu_dump_state() logging functions: */
9
/**
10
 * log_cpu_state:
11
 * @cpu: The CPU whose state is to be logged.
12
 * @flags: Flags what to log.
13
 *
14
 * Logs the output of cpu_dump_state().
15
 */
16
static inline void log_cpu_state(CPUState *cpu, int flags)
17
0
{
18
0
    FILE *f = qemu_log_trylock();
19
0
    if (f) {
20
0
        cpu_dump_state(cpu, f, flags);
21
0
        qemu_log_unlock(f);
22
0
    }
23
0
}
Unexecuted instantiation: cpu-common.c:log_cpu_state
Unexecuted instantiation: cpu-exec.c:log_cpu_state
Unexecuted instantiation: cpu-exec-common.c:log_cpu_state
Unexecuted instantiation: tb-maint.c:log_cpu_state
Unexecuted instantiation: translate-all.c:log_cpu_state
Unexecuted instantiation: cputlb.c:log_cpu_state
Unexecuted instantiation: tcg.c:log_cpu_state
Unexecuted instantiation: cpu-target.c:log_cpu_state
Unexecuted instantiation: smm_helper.c:log_cpu_state
Unexecuted instantiation: seg_helper.c:log_cpu_state
Unexecuted instantiation: translate.c:log_cpu_state
24
25
/**
26
 * log_cpu_state_mask:
27
 * @mask: Mask when to log.
28
 * @cpu: The CPU whose state is to be logged.
29
 * @flags: Flags what to log.
30
 *
31
 * Logs the output of cpu_dump_state() if loglevel includes @mask.
32
 */
33
static inline void log_cpu_state_mask(int mask, CPUState *cpu, int flags)
34
0
{
35
0
    if (qemu_loglevel & mask) {
36
0
        log_cpu_state(cpu, flags);
37
0
    }
38
0
}
Unexecuted instantiation: cpu-common.c:log_cpu_state_mask
Unexecuted instantiation: cpu-exec.c:log_cpu_state_mask
Unexecuted instantiation: cpu-exec-common.c:log_cpu_state_mask
Unexecuted instantiation: tb-maint.c:log_cpu_state_mask
Unexecuted instantiation: translate-all.c:log_cpu_state_mask
Unexecuted instantiation: cputlb.c:log_cpu_state_mask
Unexecuted instantiation: tcg.c:log_cpu_state_mask
Unexecuted instantiation: cpu-target.c:log_cpu_state_mask
Unexecuted instantiation: smm_helper.c:log_cpu_state_mask
Unexecuted instantiation: seg_helper.c:log_cpu_state_mask
Unexecuted instantiation: translate.c:log_cpu_state_mask
39
40
#endif