Skip to contentSkip to conversation

How to show deug info via XENPRINTF?

DISCUSSION Yuan, Jue 2 participants 2 messages Aug 24, 2006

lore
Share & tools
lore

Yuan, Jue

author
#0 lore raw

Hi all.

I am trying to debug a kernel that I built, and I hope I could see some debug info printing out via XENPRINTF. I use it in the source code of kernel like:

XENPRINTF("nr_pages: %ld shared_info: 0x%lx flags: 0x%lx pt_base: 0x%lx "

                 "mod_start: 0x%lx mod_len: 0x%lx\n",
                 xen_start_info->nr_pages, xen_start_info->shared_info,
                 xen_start_info->flags, xen_start_info->pt_base,
                 xen_start_info->mod_start, xen_start_info->mod_len);

But it doesn't print anything out when start this kernel as domU. I think I must miss something here.

Any ideas about how to do it? Thanks in advance :-)

PS: I am using xen-3.0.2-2

Signature · 2 lines
Best Regards
Yuan, Jue @ www.yuanjue.net
#1 lore raw

That is purely a macro used on FreeBSD. It is enabled via a define in the config file, and you'll need to enable debugging in xen - assuming the relevant hypercall still exists.

-Kip

Quoted 27 lines · Jue

Hi all.

I am trying to debug a kernel that I built, and I hope I could see some debug info printing out via XENPRINTF. I use it in the source code of kernel like:

XENPRINTF("nr_pages: %ld shared_info: 0x%lx flags: 0x%lx pt_base: 0x%lx "

                  "mod_start: 0x%lx mod_len: 0x%lx\n",
                  xen_start_info->nr_pages, xen_start_info->shared_info,
                  xen_start_info->flags, xen_start_info->pt_base,
                  xen_start_info->mod_start, xen_start_info->mod_len);

But it doesn't print anything out when start this kernel as domU. I think I must miss something here.

Any ideas about how to do it? Thanks in advance :-)

PS: I am using xen-3.0.2-2

--
Best Regards
Yuan, Jue @ www.yuanjue.net

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users