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

[Xen-devel] Xen build with perf counters is broken


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Steve Dobbelstein <steved@xxxxxxxxxx>
  • Date: Mon, 28 Aug 2006 14:44:32 -0500
  • Delivery-date: Mon, 28 Aug 2006 12:45:00 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Compiling the hypervisor with performance counters fails.  If I do a
"perfc=y perfc_arrays=y make xen" I eventually get:

sysctl.c: In function ?do_sysctl?:
sysctl.c:124: error: ?XEN_SYSCTL_perfccontrol? undeclared (first use in
this function)
sysctl.c:124: error: (Each undeclared identifier is reported only once
sysctl.c:124: error: for each function it appears in.)
sysctl.c:126: error: expected ?)? before ?*? token
cc1: warnings being treated as errors
sysctl.c:127: warning: implicit declaration of function ?perfc_control?
sysctl.c:127: error: ?union <anonymous>? has no member named ?perfccontrol?
make[4]: *** [sysctl.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/xen/xen-unstable.hg-11257/xen/common/built_in.o]
Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/xen/xen-unstable.hg-11257/xen/xen] Error 2
make[1]: *** [install] Error 2
make: *** [install-xen] Error 2

It appears that changeset 11257:86d26e6ec89b, which replaced the dom0_ops
hypercalls with new hypercalls, left the changes needed for the performance
counters half cooked.

Attached is a patch that gets the code to compile successfully.  It may not
be the correct implementation, so feel free to tweak as necessary.  A quick
test shows that I do get performance counter data from xenperf, so I
couldn't have been too terribly wrong. :)

Steve D.

(See attached file: perfc-fix.patch)
Signed-off-by: Steve Dobbelstein <steved@xxxxxxxxxx>

Attachment: perfc-fix.patch
Description: Binary data

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

 


Rackspace

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