From: Paolo Bonzini <pbonzini@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Mark McLoughlin <markmc@redhat.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] qemu: work around for "posix-aio-compat"
Date: Wed, 21 Oct 2009 20:38:14 +0200 [thread overview]
Message-ID: <4ADF5516.9070301@redhat.com> (raw)
In-Reply-To: <20091021174651.GA25166@redhat.com>
>> At every word of the sigset (using gdb commands to disable/enable the
>> watchpoints around the sigfillset, you avoid spurious triggers).
>
> Not sure how do you mean. When would I enable the watchpoint?
301 static void *aio_thread(void *unused)
302 {
303 pid_t pid;
304 static sigset_t set;
305
306 /* block all signals */
...
312 if (sigfillset(&set)) die("sigfillset");
....
315 pid = getpid();
316
317 while (1) {
b 312 // sets bp 1
p ((long *)&set // prints $1
watch $1[0] // sets bp 2..9
watch $1[1]
watch $1[2]
watch $1[3]
watch $1[4]
watch $1[5]
watch $1[6]
watch $1[7] // only 1/4 of the sigset!
// stop earlier if it starts
// assigning non-hardware watchpoints
// try again with 8..15 if not enough
// up to $1[31]
commands 1 // don't break on next sigfillset
dis 2
dis 3
dis 4
dis 5
dis 6
dis 7
dis 8
dis 9
c // and continue
end
b 315 // sets bp 10
commands 10 // re-enable after sigfillset
ena 2
ena 3
ena 4
ena 5
ena 6
ena 7
ena 8
ena 9
c // run body of aio_thread
end
c // run into aio_thread
Paolo
prev parent reply other threads:[~2009-10-21 18:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-08 20:37 [Qemu-devel] [PATCH] qemu: work around for "posix-aio-compat" Michael S. Tsirkin
2009-10-08 20:53 ` [Qemu-devel] " malc
2009-10-08 21:13 ` malc
2009-10-08 21:46 ` Michael S. Tsirkin
2009-10-08 22:17 ` malc
2009-10-08 23:19 ` Michael S. Tsirkin
2009-10-09 1:06 ` [Qemu-devel] Emulated network cards Natalia Portillo
2009-10-09 8:54 ` Luca Tettamanti
2009-10-09 13:05 ` Natalia Portillo
2009-10-09 13:16 ` [Qemu-devel] Re: [PATCH] qemu: work around for "posix-aio-compat" malc
2009-10-08 21:00 ` Michael S. Tsirkin
2009-10-20 18:39 ` [Qemu-devel] " Mark McLoughlin
2009-10-20 18:57 ` [Qemu-devel] " Paolo Bonzini
2009-10-21 15:42 ` Michael S. Tsirkin
2009-10-21 15:54 ` Michael S. Tsirkin
2009-10-21 17:28 ` Paolo Bonzini
2009-10-21 17:35 ` Michael S. Tsirkin
2009-10-21 17:44 ` Paolo Bonzini
2009-10-21 17:46 ` Michael S. Tsirkin
2009-10-21 18:38 ` Paolo Bonzini [this message]
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=4ADF5516.9070301@redhat.com \
--to=pbonzini@redhat.com \
--cc=markmc@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).