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

[Xen-devel] Re: Finding guest calling function

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: Finding guest calling function
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 20 Jul 2010 14:45:49 +0100
Cc:
Delivery-date: Tue, 20 Jul 2010 06:46:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <861fdb73-a7df-4f06-bc70-8b2d1fbf14b9@default>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcsoEJPqs49mahTMS0Ou7zNde5zdkwAAUijz
Thread-topic: Finding guest calling function
User-agent: Microsoft-Entourage/12.24.0.100205
Call show_stack(regs) and then pick apart the numeric guest stack dump.

 K.

On 20/07/2010 14:35, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> In the hypervisor, I can use regs->eip to get the location
> of a trapped instruction in a guest (in this case rdtsc) which
> allows me to determine the function in which the trapping instruction
> was used.
> 
> Is there any easy way to determine the function that CALLED
> the function in which the trapping instruction was used?
> If so, is there any example code in Xen that I can steal from?
> 
> (This is for a find-the-guest-kernel-rdtsc-uses exercise from
> another thread... all the rdtsc uses are in native_read_tsc
> so I need to know the frequencies of what is calling native_read_tsc.)
> 
> Thanks,
> Dan



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

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