kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>,
	"Suresh E. Warrier" <warrier@linux.vnet.ibm.com>,
	kvm-ppc@vger.kernel.org, kvm@vger.kernel.org
Cc: Paul Mackerras <paulus@samba.org>, rostedt@goodmis.org
Subject: Re: [PATCH] KVM: PPC: Book3S HV: Tracepoints for KVM HV guest interactions
Date: Thu, 20 Nov 2014 13:10:12 +0100	[thread overview]
Message-ID: <546DDA24.8040604@suse.de> (raw)
In-Reply-To: <87r3wy6tp0.fsf@linux.vnet.ibm.com>



On 20.11.14 11:40, Aneesh Kumar K.V wrote:
> "Suresh E. Warrier" <warrier@linux.vnet.ibm.com> writes:
> 
>> This patch adds trace points in the guest entry and exit code and also
>> for exceptions handled by the host in kernel mode - hypercalls and page
>> faults. The new events are added to /sys/kernel/debug/tracing/events
>> under a new subsystem called kvm_hv.
> 
> ........
> 
>>  	/* Set this explicitly in case thread 0 doesn't have a vcpu */
>> @@ -1687,6 +1691,9 @@ static void kvmppc_run_core(struct kvmppc_vcore *vc)
>>  
>>  	vc->vcore_state = VCORE_RUNNING;
>>  	preempt_disable();
>> +
>> +	trace_kvmppc_run_core(vc, 0);
>> +
>>  	spin_unlock(&vc->lock);
> 
> Do we really want to call tracepoint with spin lock held ? Is that a good
> thing to do ?. 

I thought it was safe to call tracepoints inside of spin lock regions?
Steve?


Alex

  reply	other threads:[~2014-11-20 12:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-13 23:29 [PATCH] KVM: PPC: Book3S HV: Tracepoints for KVM HV guest interactions Suresh E. Warrier
2014-11-14 10:56 ` Alexander Graf
2014-11-19 21:54   ` Suresh E. Warrier
2014-11-20 12:08     ` Alexander Graf
2014-11-20 10:40 ` Aneesh Kumar K.V
2014-11-20 12:10   ` Alexander Graf [this message]
2014-11-20 14:01     ` Steven Rostedt
2014-12-02  1:19       ` Suresh E. Warrier
  -- strict thread matches above, loose matches on Subject: below --
2014-12-04  0:48 Suresh E. Warrier
2014-12-17 12:31 ` Alexander Graf

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=546DDA24.8040604@suse.de \
    --to=agraf@suse.de \
    --cc=aneesh.kumar@linux.vnet.ibm.com \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=paulus@samba.org \
    --cc=rostedt@goodmis.org \
    --cc=warrier@linux.vnet.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).