All of lore.kernel.org
 help / color / mirror / Atom feed
From: Prerna Saxena <prerna@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: Maneesh Soni <maneesh@linux.vnet.ibm.com>,
	Anthony Liguori <aliguori@us.ibm.com>,
	Ananth <ananth@linux.vnet.ibm.com>,
	Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: [Qemu-devel] Tracing concerns for concurrent execution
Date: Wed, 26 May 2010 11:32:31 +0530	[thread overview]
Message-ID: <4BFCB977.1010408@linux.vnet.ibm.com> (raw)

Hi,
I am writing a tracing back-end that logs tracepoint-based traces to 
qemu-internal global buffers.
I had zeroed in on a lockless buffer for logging traces(to prevent 
slowdowns 'cos of locks held while tracing). However, I'm not sure if 
qemu threads might need some synchronisation to access the global trace 
buffer.
I think the vcpu threads run lock-step, but this lock-step behaviour is 
not guaranteed for some other types of threads, such as the aio helper 
threads ? Also, can there be concurrency issues while tracing dynamic 
translator ?
While I'm doing my study, it would be good to have some pointers on what 
assumptions can / not be made for concurrent thread execution in qemu, 
and what could be done to safeguard tracing in such hot-paths ?

Regards,
-- 
Prerna Saxena

Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India

                 reply	other threads:[~2010-05-26  6:02 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=4BFCB977.1010408@linux.vnet.ibm.com \
    --to=prerna@linux.vnet.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=ananth@linux.vnet.ibm.com \
    --cc=maneesh@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@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 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.