xenoprof: Cleanup
PATCH 1/1 xenoprof: Cleanup
Hi,
The declaration of ibs_caps also exists in xen/include/asm-x86/xenoprof.h.
Signature · 1 line
KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]> # Date 1281059014 -32400
# Node ID df011b5dc4ce566502331003d311d44d2f94eec4 # Parent 668f712242410d1d8d4613ae7ec2f608b4f0f4c2
xenoprof: Cleanup
The declaration of ibs_caps also exists in xen/include/asm-x86/xenoprof.h.
xen/common/xenoprof.c +0 -3
@@ -48,9 +48,6 @@ static u64 passive_samples;static u64 passive_samples;static u64 idle_samples;static u64 others_samples; - -/* AMD IBS support */ -extern u32 ibs_caps;int acquire_pmu_ownership (int pmu_ownship) {
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
KUWAMURA Shin'ya writes ("[Xen-devel] [PATCH] xenoprof: Cleanup"):
Quoted 1 line
The declaration of
ibs_capsalso exists inxen/include/asm-x86/xenoprof.h.
...
xen/common/xenoprof.c static u64 passive_samples; · line 53
Quoted 2 lines
xen/common/xenoprof.c +0
-2-/* AMD IBS support */ -extern u32 ibs_caps;
But, in xen/common/xenoprof.c, surely this should be a definition and not a declaration. So more correct would be
-extern u32 ibs_caps;
+u32 ibs_caps;
but that would conflict with the #define in xen/include/asm-ia64/xenoprof.h. So I'm not sure this fix is complete.
Ian.
Quoted 9 lines · Ian Jackson
KUWAMURA Shin'ya writes ("[Xen-devel] [PATCH] xenoprof: Cleanup"):
Quoted 1 line
The declaration of
ibs_capsalso exists inxen/include/asm-x86/xenoprof.h....
xen/common/xenoprof.c static u64 passive_samples; · line 53
Quoted 2 lines
xen/common/xenoprof.c +0
-2-/* AMD IBS support */ -extern u32 ibs_caps;But, in
xen/common/xenoprof.c, surely this should be a definition and not a declaration. So more correct would be
Quoted 5 lines
-extern u32
ibs_caps;
+u32ibs_caps;but that would conflict with the #define in
xen/include/asm-ia64/xenoprof.h. So I'm not sure this fix is complete.
It's defined in arch-specific arch/x86/oprofile/op_model_athlon.c. Exposed to common/xenoprof.c in the arch-specific include/asm-x86/xenoprof.h (and stubbed out in ia64's equivalent header).
-- Keir