Home
last modified time | relevance | path

Searched refs:vpmu (Results 1 – 10 of 10) sorted by relevance

/xen-4.10.0-shim-comet/xen/arch/x86/cpu/
A Dvpmu.c116 struct vpmu_struct *vpmu; in vpmu_lvtpc_update() local
122 vpmu = vcpu_vpmu(curr); in vpmu_lvtpc_update()
136 struct vpmu_struct *vpmu; in vpmu_do_msr() local
149 vpmu = vcpu_vpmu(curr); in vpmu_do_msr()
376 vpmu->last_pcpu = pcpu; in vpmu_save()
437 if ( vpmu->arch_vpmu_ops && vpmu->arch_vpmu_ops->arch_vpmu_load ) in vpmu_load()
465 ASSERT(!(vpmu->flags & ~VPMU_AVAILABLE) && !vpmu->context); in vpmu_arch_initialise()
580 if ( vpmu->arch_vpmu_ops && vpmu->arch_vpmu_ops->arch_vpmu_destroy ) in vpmu_arch_destroy()
612 vpmu = vcpu_vpmu(v); in pvpmu_init()
666 vpmu = vcpu_vpmu(v); in pvpmu_finish()
[all …]
A Dvpmu_amd.c100 #define is_msr_bitmap_on(vpmu) ((vpmu)->priv_context != NULL) argument
178 msr_bitmap_on(vpmu); in amd_vpmu_set_msr_bitmap()
192 msr_bitmap_off(vpmu); in amd_vpmu_unset_msr_bitmap()
226 ctxt = vpmu->context; in amd_vpmu_load()
242 ctxt = vpmu->context; in amd_vpmu_load()
317 ctxt = vpmu->context; in amd_vpmu_save()
439 xfree(vpmu->context); in amd_vpmu_destroy()
440 vpmu->context = NULL; in amd_vpmu_destroy()
441 vpmu->priv_context = NULL; in amd_vpmu_destroy()
446 vpmu_clear(vpmu); in amd_vpmu_destroy()
[all …]
A Dvpmu_intel.c401 vpmu_set(vpmu, VPMU_RUNNING); in core2_vpmu_verify()
478 vpmu->context = core2_vpmu_cxt; in core2_vpmu_alloc_resource()
479 vpmu->priv_context = p; in core2_vpmu_alloc_resource()
484 ASSERT(vpmu->xenpmu_data); in core2_vpmu_alloc_resource()
566 core2_vpmu_cxt = vpmu->context; in core2_vpmu_do_wrmsr()
711 vpmu_set(vpmu, VPMU_RUNNING); in core2_vpmu_do_wrmsr()
834 xfree(vpmu->context); in core2_vpmu_destroy()
835 vpmu->context = NULL; in core2_vpmu_destroy()
836 xfree(vpmu->priv_context); in core2_vpmu_destroy()
837 vpmu->priv_context = NULL; in core2_vpmu_destroy()
[all …]
A DMakefile10 obj-y += vpmu.o vpmu_amd.o vpmu_intel.o
/xen-4.10.0-shim-comet/xen/include/asm-x86/
A Dvpmu.h26 #define vcpu_vpmu(vcpu) (&(vcpu)->arch.vpmu)
27 #define vpmu_vcpu(vpmu) container_of((vpmu), struct vcpu, arch.vpmu) argument
83 static inline void vpmu_set(struct vpmu_struct *vpmu, const u32 mask) in vpmu_set() argument
85 vpmu->flags |= mask; in vpmu_set()
87 static inline void vpmu_reset(struct vpmu_struct *vpmu, const u32 mask) in vpmu_reset() argument
89 vpmu->flags &= ~mask; in vpmu_reset()
91 static inline void vpmu_clear(struct vpmu_struct *vpmu) in vpmu_clear() argument
94 vpmu->flags &= VPMU_AVAILABLE; in vpmu_clear()
98 return !!(vpmu->flags & mask); in vpmu_is_set()
100 static inline bool_t vpmu_are_all_set(const struct vpmu_struct *vpmu, in vpmu_are_all_set() argument
[all …]
A Ddomain.h526 struct vpmu_struct vpmu; member
/xen-4.10.0-shim-comet/xen/arch/x86/oprofile/
A Dop_model_ppro.c231 struct vpmu_struct *vpmu = vcpu_vpmu(v); in ppro_allocate_msr() local
237 vpmu->context = (void *)msr_content; in ppro_allocate_msr()
238 vpmu_clear(vpmu); in ppro_allocate_msr()
239 vpmu_set(vpmu, VPMU_PASSIVE_DOMAIN_ALLOCATED); in ppro_allocate_msr()
250 struct vpmu_struct *vpmu = vcpu_vpmu(v); in ppro_free_msr() local
252 if ( !vpmu_is_set(vpmu, VPMU_PASSIVE_DOMAIN_ALLOCATED) ) in ppro_free_msr()
254 xfree(vpmu->context); in ppro_free_msr()
255 vpmu_reset(vpmu, VPMU_PASSIVE_DOMAIN_ALLOCATED); in ppro_free_msr()
A Dnmi_int.c42 struct vpmu_struct *vpmu = vcpu_vpmu(current); in passive_domain_msr_op_checks() local
50 if ( !vpmu_is_set(vpmu, VPMU_PASSIVE_DOMAIN_ALLOCATED) ) in passive_domain_msr_op_checks()
80 struct vpmu_struct *vpmu = vcpu_vpmu(v); in passive_domain_destroy() local
81 if ( vpmu_is_set(vpmu, VPMU_PASSIVE_DOMAIN_ALLOCATED) ) in passive_domain_destroy()
/xen-4.10.0-shim-comet/docs/misc/
A Dxen-command-line.markdown1801 ### vpmu subsection
1815 If 'vpmu=bts' is specified the virtualisation of the Branch Trace Store (BTS)
1818 vpmu=ipc enables performance monitoring, but restricts the counters to the
1822 vpmu=arch enables performance monitoring, but restricts the counters to the
1829 For example, vpmu=arch,bts.
1831 Note that if **watchdog** option is also specified vpmu will be turned off.
1834 As the virtualisation is not 100% safe, don't use the vpmu flag on
/xen-4.10.0-shim-comet/xen/arch/x86/
A Ddomain.c343 spin_lock_init(&v->arch.vpmu.vpmu_lock); in vcpu_initialise()

Completed in 22 milliseconds