All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gavin Shan <gshan@redhat.com>
To: kvm@vger.kernel.org
Cc: pbonzini@redhat.com, rkrcmar@redhat.com, paulus@ozlabs.org,
	maz@kernel.org, jhogan@kernel.org, drjones@redhat.com,
	vkuznets@redhat.com, gshan@redhat.com
Subject: [PATCH 1/3] kvm/mips: Standardize kvm exit reason field
Date: Thu, 12 Dec 2019 13:45:10 +1100	[thread overview]
Message-ID: <20191212024512.39930-2-gshan@redhat.com> (raw)

This standardizes kvm exit reason field name by replacing "reason"
with "exit_reason".

Signed-off-by: Gavin Shan <gshan@redhat.com>
---
 arch/mips/kvm/trace.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/mips/kvm/trace.h b/arch/mips/kvm/trace.h
index a8c7fd7bf6d2..acbbe3fff9de 100644
--- a/arch/mips/kvm/trace.h
+++ b/arch/mips/kvm/trace.h
@@ -113,20 +113,20 @@ DEFINE_EVENT(kvm_transition, kvm_out,
 	{ KVM_TRACE_EXIT_GPA,		"GPA" }
 
 TRACE_EVENT(kvm_exit,
-	    TP_PROTO(struct kvm_vcpu *vcpu, unsigned int reason),
-	    TP_ARGS(vcpu, reason),
+	    TP_PROTO(struct kvm_vcpu *vcpu, unsigned int exit_reason),
+	    TP_ARGS(vcpu, exit_reason),
 	    TP_STRUCT__entry(
 			__field(unsigned long, pc)
-			__field(unsigned int, reason)
+			__field(unsigned int, exit_reason)
 	    ),
 
 	    TP_fast_assign(
 			__entry->pc = vcpu->arch.pc;
-			__entry->reason = reason;
+			__entry->exit_reason = exit_reason;
 	    ),
 
 	    TP_printk("[%s]PC: 0x%08lx",
-		      __print_symbolic(__entry->reason,
+		      __print_symbolic(__entry->exit_reason,
 				       kvm_trace_symbol_exit_types),
 		      __entry->pc)
 );
-- 
2.23.0


                 reply	other threads:[~2019-12-12  2:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191212024512.39930-2-gshan@redhat.com \
    --to=gshan@redhat.com \
    --cc=drjones@redhat.com \
    --cc=jhogan@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=maz@kernel.org \
    --cc=paulus@ozlabs.org \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.com \
    --cc=vkuznets@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.