Linux KVM/arm64 development list
 help / color / mirror / Atom feed
* [resend][PATCH 2/2] arm64: kvm: trace_handle_exit: use string choices helper
@ 2025-07-18  1:50 Kuninori Morimoto
  2025-07-24  6:49 ` Oliver Upton
  0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2025-07-18  1:50 UTC (permalink / raw)
  To: rmk+kernel, Catalin Marinas, Joey Gouly, Marc Zyngier,
	Oliver Upton, Suzuki K Poulose, Will Deacon, Zenghui Yu, kvmarm,
	linux-arm-kernel

We can use string choices helper, let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 arch/arm64/kvm/trace_handle_exit.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/kvm/trace_handle_exit.h b/arch/arm64/kvm/trace_handle_exit.h
index f85415db7713..a7ab9a3bbed0 100644
--- a/arch/arm64/kvm/trace_handle_exit.h
+++ b/arch/arm64/kvm/trace_handle_exit.h
@@ -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,
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-24  6:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-18  1:50 [resend][PATCH 2/2] arm64: kvm: trace_handle_exit: use string choices helper Kuninori Morimoto
2025-07-24  6:49 ` Oliver Upton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox