The attached patch fixes xenoprof in compat mode (32-bit guest on a 64-bit hypervisor). Although xen/common/xenoprof.c uses the compat structure sizes, xen/arch/x86/oprofile/xenoprof.c does not. The structures look the same, but the compat mode structure is packed, whereas the non-compat version has 64-bit values 64-bit aligned. The result was that the performance counters are not properly set, and no trace events are generated. The attached patch adds a function called compat_oprof_arch_counter() in xen/arch/x86/oprofile/xenoprof.c, which uses the correctly-sized structure. In xen/common/compat/xenoprof.c, it adds a #define such that the compat version of do_xenoprof_op() will call the proper version. -George _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel