]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: kvm: trace_handle_exit: use string choices helper
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 18 Jul 2025 01:50:38 +0000 (01:50 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 24 Jul 2025 06:36:55 +0000 (23:36 -0700)
We can use string choices helper, let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87o6ti5ksx.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/trace_handle_exit.h

index f85415db7713b7cab005fa5497e22412b9a6fee5..a7ab9a3bbed0bfd6693ad6d83127f38e94c1185f 100644 (file)
@@ -113,7 +113,7 @@ TRACE_EVENT(kvm_sys_access,
                  __entry->vcpu_pc, __entry->name ?: "UNKN",
                  __entry->Op0, __entry->Op1, __entry->CRn,
                  __entry->CRm, __entry->Op2,
-                 __entry->is_write ? "write" : "read")
+                 str_write_read(__entry->is_write))
 );
 
 TRACE_EVENT(kvm_set_guest_debug,