[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] how to use the xen functions



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.