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] Re: Exporting symbols from hypervisor

To: Sandesh <sandesh.ahiremath@xxxxxxxxx>
Subject: Re: [Xen-devel] Re: Exporting symbols from hypervisor
From: Grzegorz Miłoś <gm281@xxxxxxxxx>
Date: Wed, 11 Jun 2008 10:53:22 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 11 Jun 2008 02:54:13 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer:sender; bh=bHrFqcyMe4GM1mnrHaM78qmuVg87ZSFrx5YXLFQNUQE=; b=Twim4qnaiDJGd2tiYh4+0P5jthk7eSHx/SgCuYyRdWP9s2UtTfec6V8gKrndqFcssn 3XlhkApbe7BQbnx0p3OscvY4FpoGk2tyQljZXXGLTn3IblY2CEVP4eD2mazK9ik4Cegx /8lafPDHUO1aoFlqqL6bsfAF3HNOxjMz+ryIA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer:sender; b=lHEr/6SY9XUbw8rJMczHFdiM/L6Tv56cFZ68HLdTBrOq62dSbKxFqIudnughFHgykK wsYYnKC+/oh3x/8z9cwcbDP5x6i3mG9uYIh22xzYRfkyPa6gmirkuIaOG1CSfezj9kQh MTTZw5Py5Y6cbeEQ/Awmk/TpSF6RWNsTNYnws=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1213176321.6399.13.camel@ec4t16cg-1518809>
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: <17749116.post@xxxxxxxxxxxxxxx> <4cac40570806100338o3c900afam4693f3c981c5a336@xxxxxxxxxxxxxx> <1213096883.12366.8.camel@ec4t16cg-1518809> <D0096048-5E50-4E48-AF58-47AD15903FB3@xxxxxxxxx> <1213099175.12366.14.camel@ec4t16cg-1518809> <93109948-B9E9-443B-BB3A-9D3C1C84B16B@xxxxxxxxx> <1213167503.6399.3.camel@ec4t16cg-1518809> <AF911739-2230-4669-8220-6CCB88EC1D01@xxxxxxxxx> <1213176321.6399.13.camel@ec4t16cg-1518809>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi grzegorz,
I have one more issue. I want to export do_domctl function for
debugging. I did EXPORT_SYMBOL(do_domctl) its not happening. Any idea
about this.

Xen doesn't use modular architecture and consequently EXPORT_SYMBOL
macro is a no-op (see: include/xen/config.h).
But i seen it being used in xen/common/string.c and in other ia-64
specific src files. And those exported symbols are visible in
System.map. Is it that during compilation of those files different
header files are included?

System.map lists symbols for _Linux_ not Xen. So for example 'strlcpy' is defined in xen/common/strings.c, but also in linux-2.6.18-xen.hg/ lib/string.c. It is the second definition that makes it into System.map.

You just need to add
do_domctl definition to a header file. Or define it wherever you need
with 'extern'.
no acutally i need to debug do_domctl instruction by instruction using
kdb, and kdb dosent recognize the it, so i thought of exporting it.

I've never used kdb to debug Xen. Are you using 
http://xenbits.xensource.com/ext/debuggers.hg?

Cheers
Gr(z)egor(z)

BTW: Can you reply to the list, not me personally? It'd make it easier for me to reply.


Cheers
Gr(z)egor(z)

Sorry to bother you again and again.

Thanks very much.
Sandesh

On Tue, 2008-06-10 at 14:52 +0100, Grzegorz Miłoś wrote:
I did really mean:
xm dmesg
ok xm dmesg is showing the stuff.
thanks for the info.
Does this mean that the printk's print it to the xenstore??

I don't think it is stored in xenstore itself, but yes, it is
buffered
in Dom0.

Xen can be configured to output it's messages on the serial line,
and
it also puts it in a buffer (console ring) for Dom0's attention, xm
dmesg should print all the hypervisors output.
how to enable this???
by default it does'nt print it on the serial console.

add the following command line options to your xen configuration
(bootloader config):
com1=115200,8n1 console=com1,tty

Cheers
Gr(z)egor(z)


Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of
the addressee(s) and may contain proprietary, confidential or
privileged information. If you are not the intended recipient, you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately and destroy all copies of this message
and any attachments.

WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any damage
caused by any virus transmitted by this email.

www.wipro.com


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


Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com


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

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