Message ID | 20250102192508.2405687-2-andrew.cooper3@citrix.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | xen/perfc: Cleanup, and wire up for RISCV/PPC | expand |
On Thu, 2 Jan 2025, Andrew Cooper wrote: > These were only ever used by the IA64 port, which was droped in commit > 570c311ca2c7 ("remove ia64"). > > Remove them, and clean up the arm/x86 stub headers. > > Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> > --- > CC: Jan Beulich <JBeulich@suse.com> > CC: Roger Pau Monné <roger.pau@citrix.com> > CC: Stefano Stabellini <sstabellini@kernel.org> > CC: Julien Grall <julien@xen.org> > CC: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com> > CC: Bertrand Marquis <bertrand.marquis@arm.com> > CC: Michal Orzel <michal.orzel@amd.com> > CC: Oleksii Kurochko <oleksii.kurochko@gmail.com> > CC: Shawn Anastasio <sanastasio@raptorengineering.com> > --- > xen/arch/arm/include/asm/perfc.h | 21 --------------------- > xen/arch/x86/include/asm/perfc.h | 12 ------------ > xen/common/perfc.c | 6 ------ > 3 files changed, 39 deletions(-) > delete mode 100644 xen/arch/arm/include/asm/perfc.h > delete mode 100644 xen/arch/x86/include/asm/perfc.h > > diff --git a/xen/arch/arm/include/asm/perfc.h b/xen/arch/arm/include/asm/perfc.h > deleted file mode 100644 > index 95c4b2b6b7bf..000000000000 > --- a/xen/arch/arm/include/asm/perfc.h > +++ /dev/null > @@ -1,21 +0,0 @@ > -#ifndef __ASM_PERFC_H__ > -#define __ASM_PERFC_H__ > - > -static inline void arch_perfc_reset(void) > -{ > -} > - > -static inline void arch_perfc_gather(void) > -{ > -} > - > -#endif > - > -/* > - * Local variables: > - * mode: C > - * c-file-style: "BSD" > - * c-basic-offset: 4 > - * indent-tabs-mode: nil > - * End: > - */ > diff --git a/xen/arch/x86/include/asm/perfc.h b/xen/arch/x86/include/asm/perfc.h > deleted file mode 100644 > index a1a591e803a6..000000000000 > --- a/xen/arch/x86/include/asm/perfc.h > +++ /dev/null > @@ -1,12 +0,0 @@ > -#ifndef __ASM_PERFC_H__ > -#define __ASM_PERFC_H__ > - > -static inline void arch_perfc_reset(void) > -{ > -} > - > -static inline void arch_perfc_gather(void) > -{ > -} > - > -#endif > diff --git a/xen/common/perfc.c b/xen/common/perfc.c > index 80480aa7766d..ed4dba36f1bc 100644 > --- a/xen/common/perfc.c > +++ b/xen/common/perfc.c > @@ -8,7 +8,6 @@ > #include <xen/mm.h> > #include <xen/guest_access.h> > #include <public/sysctl.h> > -#include <asm/perfc.h> > > #define PERFCOUNTER( var, name ) { name, TYPE_SINGLE, 0 }, > #define PERFCOUNTER_ARRAY( var, name, size ) { name, TYPE_ARRAY, size }, > @@ -148,8 +147,6 @@ void cf_check perfc_reset(unsigned char key) > break; > } > } > - > - arch_perfc_reset(); > } > > static struct xen_sysctl_perfc_desc perfc_d[NR_PERFCTRS]; > @@ -199,9 +196,6 @@ static int perfc_copy_info(XEN_GUEST_HANDLE_64(xen_sysctl_perfc_desc_t) desc, > if ( perfc_vals == NULL ) > return -ENOMEM; > > - /* Architecture may fill counters from hardware. */ > - arch_perfc_gather(); > - > /* We gather the counts together every time. */ > for ( i = j = v = 0; i < NR_PERFCTRS; i++ ) > { > -- > 2.39.5 >
diff --git a/xen/arch/arm/include/asm/perfc.h b/xen/arch/arm/include/asm/perfc.h deleted file mode 100644 index 95c4b2b6b7bf..000000000000 --- a/xen/arch/arm/include/asm/perfc.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef __ASM_PERFC_H__ -#define __ASM_PERFC_H__ - -static inline void arch_perfc_reset(void) -{ -} - -static inline void arch_perfc_gather(void) -{ -} - -#endif - -/* - * Local variables: - * mode: C - * c-file-style: "BSD" - * c-basic-offset: 4 - * indent-tabs-mode: nil - * End: - */ diff --git a/xen/arch/x86/include/asm/perfc.h b/xen/arch/x86/include/asm/perfc.h deleted file mode 100644 index a1a591e803a6..000000000000 --- a/xen/arch/x86/include/asm/perfc.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef __ASM_PERFC_H__ -#define __ASM_PERFC_H__ - -static inline void arch_perfc_reset(void) -{ -} - -static inline void arch_perfc_gather(void) -{ -} - -#endif diff --git a/xen/common/perfc.c b/xen/common/perfc.c index 80480aa7766d..ed4dba36f1bc 100644 --- a/xen/common/perfc.c +++ b/xen/common/perfc.c @@ -8,7 +8,6 @@ #include <xen/mm.h> #include <xen/guest_access.h> #include <public/sysctl.h> -#include <asm/perfc.h> #define PERFCOUNTER( var, name ) { name, TYPE_SINGLE, 0 }, #define PERFCOUNTER_ARRAY( var, name, size ) { name, TYPE_ARRAY, size }, @@ -148,8 +147,6 @@ void cf_check perfc_reset(unsigned char key) break; } } - - arch_perfc_reset(); } static struct xen_sysctl_perfc_desc perfc_d[NR_PERFCTRS]; @@ -199,9 +196,6 @@ static int perfc_copy_info(XEN_GUEST_HANDLE_64(xen_sysctl_perfc_desc_t) desc, if ( perfc_vals == NULL ) return -ENOMEM; - /* Architecture may fill counters from hardware. */ - arch_perfc_gather(); - /* We gather the counts together every time. */ for ( i = j = v = 0; i < NR_PERFCTRS; i++ ) {
These were only ever used by the IA64 port, which was droped in commit 570c311ca2c7 ("remove ia64"). Remove them, and clean up the arm/x86 stub headers. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> --- CC: Jan Beulich <JBeulich@suse.com> CC: Roger Pau Monné <roger.pau@citrix.com> CC: Stefano Stabellini <sstabellini@kernel.org> CC: Julien Grall <julien@xen.org> CC: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com> CC: Bertrand Marquis <bertrand.marquis@arm.com> CC: Michal Orzel <michal.orzel@amd.com> CC: Oleksii Kurochko <oleksii.kurochko@gmail.com> CC: Shawn Anastasio <sanastasio@raptorengineering.com> --- xen/arch/arm/include/asm/perfc.h | 21 --------------------- xen/arch/x86/include/asm/perfc.h | 12 ------------ xen/common/perfc.c | 6 ------ 3 files changed, 39 deletions(-) delete mode 100644 xen/arch/arm/include/asm/perfc.h delete mode 100644 xen/arch/x86/include/asm/perfc.h