WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Trace buffers no longer working -- What changed?

To: Rob Gardner <rob.gardner@xxxxxx>
Subject: Re: [Xen-devel] Trace buffers no longer working -- What changed?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 8 Mar 2006 23:57:56 +0000
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 09 Mar 2006 00:00:36 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <440F3B89.3020009@xxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <440F3B89.3020009@xxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 8 Mar 2006, at 20:16, Rob Gardner wrote:

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?

Should be fixed now (changeset 9176).

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>