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] how to use the xen functions

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] how to use the xen functions
From: Xin Zhao <zhaoxin@xxxxxxxxxxxxxx>
Date: Thu, 2 Dec 2004 15:12:32 -0500 (EST)
Cc: Milan Holzäpfel <mail@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 02 Dec 2004 20:14:35 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <E1CZxEC-0007B5-00@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <E1CZxEC-0007B5-00@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Keir,

Thanks a lot for your kind help. I already exported those symbols
successfully. If you can export them and check into the source code tree,
that definitely helps more people. :)


Xin

On Thu, 2 Dec 2004, Keir Fraser wrote:

>
> Linux 2.4 or 2.6? I checked in code to export those symbols now, so if
> you use latest 2.0-testing or unstable trees then you shouldn't have a
> problem.
>
>  -- Keir
>
> > Sorry, I tried your suggestion, but still have the same problem. :(
> >
> > After I add the export code, I did "make ARCH=xen linux24" and "make
> > install". Looks like the /lib/module/2.4.27-xen0 was updated. But I still
> > get the same error message.
> >
> > Here is the dump from
> > command "grep ctrl_if_send_message_block /proc/ksyms"
> > c01b2a30 ctrl_if_send_message_block_R__ver_ctrl_if_send_message_block
> >
> > This output is DIFFERENT from a successfully exported symbol:
> > grep create_xen_proc_entry /proc/ksyms
> > c0326f10 create_xen_proc_entry_Ra770fe56  (Ra770fe56 is the R+version
> > hash, right?), why ctrl_if_send_message_block has a weird
> > ctrl_if_send_message_block_R__ver_ctrl_if_send_message_block?
> >
> >
> > If I do "nm vmlinux |grep ctrl_if_send_message_block"
> > I got:
> > c01b2a30 T ctrl_if_send_message_block
> > c0376980 R __kstrtab_ctrl_if_send_message_block
> > c0386868 R __ksymtab_ctrl_if_send_message_block
> >
> > Any further idea on this?
> >
> > Thanks,
> > -x
> >
> >
> > On Thu, 2 Dec 2004, Milan [ISO-8859-1] Holzäpfel wrote:
> >
> > > On Wed, 1 Dec 2004 19:14:11 -0500 (EST)
> > > Xin Zhao <zhaoxin@xxxxxxxxxxxxxx> wrote:
> > >
> > > > I need to use the function "ctrl_if_send_message_block" in my kernel
> > > > module running in Dom0. This function  is provided
> > > > in 2.6.9-sparse/arch/xen/kernel/ctrl_if.c, however, when I tried to 
> > > > insert
> > > > the
> > > > module, I got the error message "unresolved symbol
> > > > ctrl_if_send_message_block". Looks like the function is not exported. 
> > > > So I
> > > > go to 2.6.9-sparse/arch/xen/kernel/ctrl_if.c to add the following line:
> > > >
> > > > EXPORT_SYMBOL(ctrl_if_send_message_block);
> > > >
> > > > But after compilation and reboot, I still got the same error message. 
> > > > Can
> > > > someone give me some advice on how to use xen provided functions?
> > >
> > > If you didn't do "make modules_install" after the extra export, a
> > > "depmod -a" or sth like that might help.  But I'm not quite sure whether
> > > symbol resolution is done by modutils using some files in
> > > /lib/modules...
> > >
> > > You might want to tell the list if that's what helped.
> > >
> > > > Thanks a lot.
> > > >
> > > > Xin
> > >
> > > well HTH,
> > > Milan
> > >
> > >
> > > --
> > >
> > >                    Milan Holzäpfel alias jagdfalke alias jag
> > >
> > > Öff GnuPG-Schlüssel    <URL:http://con.mjh.name/>    GnuPG Public Key
> > > GnuPG Fingerabdruck     4C8A 5FAF 5D32 6125 89D1     GnuPG Fingerprint
> > >                         0CE5 DB0C AF4F 6583 7966
> > >
> > >
> > >
> > >                     http://www.deppenleerzeichen.de/
> > >
> > >
> > >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://productguide.itmanagersjournal.com/
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.sourceforge.net/lists/listinfo/xen-devel
>  -=- MIME -=- 
> Sorry, I tried your suggestion, but still have the same problem. :(
>
> After I add the export code, I did "make ARCH=3Dxen linux24" and "make
> install". Looks like the /lib/module/2.4.27-xen0 was updated. But I still
> get the same error message.
>
> Here is the dump from
> command "grep ctrl_if_send_message_block /proc/ksyms"
> c01b2a30 ctrl_if_send_message_block_R__ver_ctrl_if_send_message_block
>
> This output is DIFFERENT from a successfully exported symbol:
> grep create_xen_proc_entry /proc/ksyms
> c0326f10 create_xen_proc_entry_Ra770fe56  (Ra770fe56 is the R+version
> hash, right?), why ctrl_if_send_message_block has a weird
> ctrl_if_send_message_block_R__ver_ctrl_if_send_message_block?
>
>
> If I do "nm vmlinux |grep ctrl_if_send_message_block"
> I got:
> c01b2a30 T ctrl_if_send_message_block
> c0376980 R __kstrtab_ctrl_if_send_message_block
> c0386868 R __ksymtab_ctrl_if_send_message_block
>
> Any further idea on this?
>
> Thanks,
> -x
>
>
> On Thu, 2 Dec 2004, Milan [ISO-8859-1] Holz=E4pfel wrote:
>
> > On Wed, 1 Dec 2004 19:14:11 -0500 (EST)
> > Xin Zhao <zhaoxin@xxxxxxxxxxxxxx> wrote:
> >
> > > I need to use the function "ctrl_if_send_message_block" in my kernel
> > > module running in Dom0. This function  is provided
> > > in 2.6.9-sparse/arch/xen/kernel/ctrl_if.c, however, when I tried to ins=
> ert
> > > the
> > > module, I got the error message "unresolved symbol
> > > ctrl_if_send_message_block". Looks like the function is not exported. S=
> o I
> > > go to 2.6.9-sparse/arch/xen/kernel/ctrl_if.c to add the following line:
> > >
> > > EXPORT_SYMBOL(ctrl_if_send_message_block);
> > >
> > > But after compilation and reboot, I still got the same error message. C=
> an
> > > someone give me some advice on how to use xen provided functions?
> >
> > If you didn't do "make modules_install" after the extra export, a
> > "depmod -a" or sth like that might help.  But I'm not quite sure whether
> > symbol resolution is done by modutils using some files in
> > /lib/modules...
> >
> > You might want to tell the list if that's what helped.
> >
> > > Thanks a lot.
> > >
> > > Xin
> >
> > well HTH,
> > Milan
> >
> >
> > --
> >
> >                    Milan Holz=E4pfel alias jagdfalke alias jag
> >
> > =D6ff GnuPG-Schl=FCssel    <URL:http://con.mjh.name/>    GnuPG Public Key
> > GnuPG Fingerabdruck     4C8A 5FAF 5D32 6125 89D1     GnuPG Fingerprint
> >                         0CE5 DB0C AF4F 6583 7966
> >
> >
> >
> >                     http://www.deppenleerzeichen.de/
> >
> >
> >
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

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