@samitouri / QOSamiQemu / commits / d682cd181c

cpu: Better name cpu_single_step() trace event

cpu_single_step() is not related to breakpoints. Rename the trace event. Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com> Message-ID: <20260705215729.62196-30-philmd@oss.qualcomm.com>

Philippe Mathieu-Daudé committed Jun 26, 2026 at 16:06 UTC d682cd181c57797cd0d5e5d4d9a4895f90129c7c
2 files changed +3 -3
cpu-target.c
+2 -2
@@ -31,6 +31,8 @@
31 void cpu_single_step(CPUState *cpu, int enabled)
32 {
33 if (cpu->singlestep_enabled != enabled) {
34 + trace_cpu_change_singlestep_flags(cpu->cpu_index,
35 + cpu->singlestep_enabled, enabled);
36 cpu->singlestep_enabled = enabled;
37
38 #if !defined(CONFIG_USER_ONLY)
@@ -39,8 +41,6 @@ void cpu_single_step(CPUState *cpu, int enabled)
41 ops->update_guest_debug(cpu);
42 }
43 #endif
42 -
43 - trace_breakpoint_singlestep(cpu->cpu_index, enabled);
44 }
45 }
46
trace-events
+1 -1
@@ -28,7 +28,7 @@
28 # cpu.c
29 breakpoint_insert(int cpu_index, uint64_t pc, int flags) "cpu=%d pc=0x%" PRIx64 " flags=0x%x"
30 breakpoint_remove(int cpu_index, uint64_t pc, int flags) "cpu=%d pc=0x%" PRIx64 " flags=0x%x"
31 -breakpoint_singlestep(int cpu_index, int enabled) "cpu=%d enable=%d"
31 +cpu_change_singlestep_flags(int cpu_index, int old_flags, int new_flags) "cpu=%d flags=0x%x -> 0x%x"
32 cpu_exec_start(int cpu_index) "cpu=%d"
33 cpu_exec_end(int cpu_index) "cpu=%d"
34