From: Rob Gardner <rob.gardner@hp.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: Trace buffers no longer working -- What changed?
Date: Wed, 08 Mar 2006 13:16:09 -0700 [thread overview]
Message-ID: <440F3B89.3020009@hp.com> (raw)
It has come to my attention that Xenmon and xentrace have stopped
working in the latest xen-unstable tree, but I'm not sure precisely when
this happened. The problem is that both utilities are failing to map the
xen trace buffers into user space. Anyone have any idea what might have
changed recently that could have caused this? The trace buffer
allocation code in the hypervisor is using alloc_xenheap_pages()
followed by SHARE_PFN_WITH_DOMAIN(), and then the userland apps use
xc_map_foreign_range() to get access to the trace buffers.
xc_map_foreign_range() uses ioctl(IOCTL_PRIVCMD_MMAP) which is failing
with errno 14 (bad address). In particular, the privcmd ioctl uses
direct_remap_pfn_range() which is actually returning the error. I kind
of suspect that there's nothing wrong at the userland side of things,
but something is going wrong when the memory is allocated and "shared".
Can anybody help?
Rob
next reply other threads:[~2006-03-08 20:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-08 20:16 Rob Gardner [this message]
2006-03-08 22:25 ` Trace buffers no longer working -- What changed? **Found the problem Rob Gardner
2006-03-08 23:57 ` Trace buffers no longer working -- What changed? Keir Fraser
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=440F3B89.3020009@hp.com \
--to=rob.gardner@hp.com \
--cc=xen-devel@lists.xensource.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.