Home
last modified time | relevance | path

Searched refs:pmc_mdep (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/sys/dev/hwpmc/
H A Dhwpmc_intel.c75 struct pmc_mdep *
78 struct pmc_mdep *pmc_mdep; in pmc_intel_initialize() local
258 pmc_mdep = pmc_mdep_alloc(nclasses); in pmc_intel_initialize()
260 pmc_mdep->pmd_cputype = cputype; in pmc_intel_initialize()
261 pmc_mdep->pmd_switch_in = intel_switch_in; in pmc_intel_initialize()
262 pmc_mdep->pmd_switch_out = intel_switch_out; in pmc_intel_initialize()
265 error = pmc_tsc_initialize(pmc_mdep, ncpus); in pmc_intel_initialize()
270 error = pmc_core_initialize(pmc_mdep, ncpus, verov); in pmc_intel_initialize()
272 pmc_tsc_finalize(pmc_mdep); in pmc_intel_initialize()
306 error = pmc_uncore_initialize(pmc_mdep, ncpus); in pmc_intel_initialize()
[all …]
H A Dhwpmc_powerpc.h90 int pmc_e500_initialize(struct pmc_mdep *pmc_mdep);
91 int pmc_mpc7xxx_initialize(struct pmc_mdep *pmc_mdep);
92 int pmc_ppc970_initialize(struct pmc_mdep *pmc_mdep);
93 int pmc_power8_initialize(struct pmc_mdep *pmc_mdep);
97 int powerpc_pcpu_init(struct pmc_mdep *md, int cpu);
98 int powerpc_pcpu_fini(struct pmc_mdep *md, int cpu);
H A Dhwpmc_uncore.h114 int pmc_uncore_initialize(struct pmc_mdep *_md, int _maxcpu);
115 void pmc_uncore_finalize(struct pmc_mdep *_md);
117 int pmc_ucf_initialize(struct pmc_mdep *_md, int _maxcpu, int _npmc, int _width);
118 void pmc_ucf_finalize(struct pmc_mdep *_md);
120 int pmc_ucp_initialize(struct pmc_mdep *_md, int _maxcpu, int _npmc, int _width,
122 void pmc_ucp_finalize(struct pmc_mdep *_md);
H A Dhwpmc_arm64.c35 #include <machine/pmc_mdep.h>
453 arm64_pcpu_init(struct pmc_mdep *md, int cpu) in arm64_pcpu_init()
501 arm64_pcpu_fini(struct pmc_mdep *md, int cpu) in arm64_pcpu_fini()
518 struct pmc_mdep * in pmc_arm64_initialize()
521 struct pmc_mdep *pmc_mdep; in pmc_arm64_initialize()
564 pmc_mdep = pmc_mdep_alloc(classes); in pmc_arm64_initialize()
571 pmc_mdep->pmd_cputype = PMC_CPU_ARMV8_CORTEX_A76; in pmc_arm64_initialize()
575 pmc_mdep->pmd_cputype = PMC_CPU_ARMV8_CORTEX_A57; in pmc_arm64_initialize()
579 pmc_mdep in pmc_arm64_initialize()
507 struct pmc_mdep *pmc_mdep; pmc_arm64_initialize() local
[all...]
H A Dhwpmc_power8.c84 power8_pcpu_init(struct pmc_mdep *md, int cpu) in power8_pcpu_init()
126 power8_pcpu_fini(struct pmc_mdep *md, int cpu) in power8_pcpu_fini()
207 pmc_power8_initialize(struct pmc_mdep *pmc_mdep) in pmc_power8_initialize() argument
211 pmc_mdep->pmd_cputype = PMC_CPU_PPC_POWER8; in pmc_power8_initialize()
213 pcd = &pmc_mdep->pmd_classdep[PMC_MDEP_CLASS_INDEX_POWERPC]; in pmc_power8_initialize()
217 pcd->pcd_ri = pmc_mdep->pmd_npmc; in pmc_power8_initialize()
232 pmc_mdep->pmd_npmc += POWER8_MAX_PMCS; in pmc_power8_initialize()
233 pmc_mdep->pmd_intr = powerpc_pmc_intr; in pmc_power8_initialize()
H A Dhwpmc_ppc970.c300 ppc970_pcpu_init(struct pmc_mdep *md, int cpu) in ppc970_pcpu_init()
315 ppc970_pcpu_fini(struct pmc_mdep *md, int cpu) in ppc970_pcpu_fini()
342 pmc_ppc970_initialize(struct pmc_mdep *pmc_mdep) in pmc_ppc970_initialize() argument
346 pmc_mdep->pmd_cputype = PMC_CPU_PPC_970; in pmc_ppc970_initialize()
348 pcd = &pmc_mdep->pmd_classdep[PMC_MDEP_CLASS_INDEX_POWERPC]; in pmc_ppc970_initialize()
352 pcd->pcd_ri = pmc_mdep->pmd_npmc; in pmc_ppc970_initialize()
367 pmc_mdep->pmd_npmc += PPC970_MAX_PMCS; in pmc_ppc970_initialize()
368 pmc_mdep->pmd_intr = powerpc_pmc_intr; in pmc_ppc970_initialize()
H A Dhwpmc_armv7.c403 armv7_pcpu_init(struct pmc_mdep *md, int cpu) in armv7_pcpu_init()
446 armv7_pcpu_fini(struct pmc_mdep *md, int cpu) in armv7_pcpu_fini()
468 struct pmc_mdep *
471 struct pmc_mdep *pmc_mdep; in pmc_armv7_initialize() local
491 pmc_mdep = pmc_mdep_alloc(1); in pmc_armv7_initialize()
495 pmc_mdep->pmd_cputype = PMC_CPU_ARMV7_CORTEX_A9; in pmc_armv7_initialize()
503 pmc_mdep->pmd_cputype = PMC_CPU_ARMV7_CORTEX_A8; in pmc_armv7_initialize()
507 pcd = &pmc_mdep->pmd_classdep[PMC_MDEP_CLASS_INDEX_ARMV7]; in pmc_armv7_initialize()
511 pcd->pcd_ri = pmc_mdep->pmd_npmc; in pmc_armv7_initialize()
526 pmc_mdep->pmd_intr = armv7_intr; in pmc_armv7_initialize()
[all …]
H A Dhwpmc_powerpc.c139 powerpc_pcpu_init(struct pmc_mdep *md, int cpu) in powerpc_pcpu_init()
170 powerpc_pcpu_fini(struct pmc_mdep *md, int cpu) in powerpc_pcpu_fini()
520 struct pmc_mdep *
523 struct pmc_mdep *pmc_mdep; in pmc_md_initialize() local
535 pmc_mdep = pmc_mdep_alloc(1); in pmc_md_initialize()
545 error = pmc_mpc7xxx_initialize(pmc_mdep); in pmc_md_initialize()
550 error = pmc_ppc970_initialize(pmc_mdep); in pmc_md_initialize()
556 error = pmc_power8_initialize(pmc_mdep); in pmc_md_initialize()
562 error = pmc_e500_initialize(pmc_mdep); in pmc_md_initialize()
570 pmc_mdep_free(pmc_mdep); in pmc_md_initialize()
[all …]
H A Dhwpmc_amd.c694 amd_pcpu_init(struct pmc_mdep *md, int cpu) in amd_pcpu_init()
732 amd_pcpu_fini(struct pmc_mdep *md, int cpu) in amd_pcpu_fini()
788 struct pmc_mdep *
792 struct pmc_mdep *pmc_mdep; in pmc_amd_initialize() local
837 pmc_mdep = pmc_mdep_alloc(2); in pmc_amd_initialize()
842 error = pmc_tsc_initialize(pmc_mdep, ncpus); in pmc_amd_initialize()
847 pcd = &pmc_mdep->pmd_classdep[PMC_MDEP_CLASS_INDEX_K8]; in pmc_amd_initialize()
852 pcd->pcd_ri = pmc_mdep->pmd_npmc; in pmc_amd_initialize()
874 pmc_mdep->pmd_cputype = cputype; in pmc_amd_initialize()
875 pmc_mdep->pmd_intr = amd_intr; in pmc_amd_initialize()
[all …]
H A Dhwpmc_core.h196 int pmc_core_initialize(struct pmc_mdep *_md, int _maxcpu,
198 void pmc_core_finalize(struct pmc_mdep *_md);
200 int pmc_iaf_initialize(struct pmc_mdep *_md, int _maxcpu, int _npmc, int _width);
202 int pmc_iap_initialize(struct pmc_mdep *_md, int _maxcpu, int _npmc, int _width,
H A Dhwpmc_e500.c330 e500_pcpu_init(struct pmc_mdep *md, int cpu) in e500_pcpu_init()
350 e500_pcpu_fini(struct pmc_mdep *md, int cpu) in e500_pcpu_fini()
436 pmc_e500_initialize(struct pmc_mdep *pmc_mdep) in pmc_e500_initialize() argument
440 pmc_mdep->pmd_cputype = PMC_CPU_PPC_E500; in pmc_e500_initialize()
442 pcd = &pmc_mdep->pmd_classdep[PMC_MDEP_CLASS_INDEX_POWERPC]; in pmc_e500_initialize()
446 pcd->pcd_ri = pmc_mdep->pmd_npmc; in pmc_e500_initialize()
461 pmc_mdep->pmd_npmc += E500_MAX_PMCS; in pmc_e500_initialize()
462 pmc_mdep->pmd_intr = powerpc_pmc_intr; in pmc_e500_initialize()
H A Dhwpmc_mpc7xxx.c398 mpc7xxx_pcpu_init(struct pmc_mdep *md, int cpu) in mpc7xxx_pcpu_init()
411 mpc7xxx_pcpu_fini(struct pmc_mdep *md, int cpu) in mpc7xxx_pcpu_fini()
432 pmc_mpc7xxx_initialize(struct pmc_mdep *pmc_mdep) in pmc_mpc7xxx_initialize() argument
436 pmc_mdep->pmd_cputype = PMC_CPU_PPC_7450; in pmc_mpc7xxx_initialize()
438 pcd = &pmc_mdep->pmd_classdep[PMC_MDEP_CLASS_INDEX_POWERPC]; in pmc_mpc7xxx_initialize()
442 pcd->pcd_ri = pmc_mdep->pmd_npmc; in pmc_mpc7xxx_initialize()
457 pmc_mdep->pmd_npmc += MPC7XXX_MAX_PMCS; in pmc_mpc7xxx_initialize()
458 pmc_mdep->pmd_intr = powerpc_pmc_intr; in pmc_mpc7xxx_initialize()
H A Dhwpmc_tsc.h40 int pmc_tsc_initialize(struct pmc_mdep *_md, int _maxcpu);
41 void pmc_tsc_finalize(struct pmc_mdep *_md);
H A Dhwpmc_soft.h43 void pmc_soft_initialize(struct pmc_mdep *md);
44 void pmc_soft_finalize(struct pmc_mdep *md);
H A Dhwpmc_x86.c229 struct pmc_mdep *
233 struct pmc_mdep *md; in pmc_md_initialize()
256 pmc_md_finalize(struct pmc_mdep *md) in pmc_md_finalize()
H A Dhwpmc_tsc.c164 tsc_pcpu_fini(struct pmc_mdep *md, int cpu) in tsc_pcpu_fini()
185 tsc_pcpu_init(struct pmc_mdep *md, int cpu) in tsc_pcpu_init()
301 pmc_tsc_initialize(struct pmc_mdep *md, int maxcpu) in pmc_tsc_initialize()
339 pmc_tsc_finalize(struct pmc_mdep *md __diagused) in pmc_tsc_finalize()
H A Dhwpmc_arm64_md.c43 struct pmc_mdep *
51 pmc_md_finalize(struct pmc_mdep *md) in pmc_md_finalize()
H A Dhwpmc_uncore.c80 uncore_pcpu_noop(struct pmc_mdep *md, int cpu) in uncore_pcpu_noop()
88 uncore_pcpu_init(struct pmc_mdep *md, int cpu) in uncore_pcpu_init()
125 uncore_pcpu_fini(struct pmc_mdep *md, int cpu) in uncore_pcpu_fini()
385 ucf_initialize(struct pmc_mdep *md, int maxcpu, int npmc, int pmcwidth) in ucf_initialize()
687 ucp_initialize(struct pmc_mdep *md, int maxcpu, int npmc, int pmcwidth) in ucp_initialize()
720 pmc_uncore_initialize(struct pmc_mdep *md, int maxcpu) in pmc_uncore_initialize()
756 pmc_uncore_finalize(struct pmc_mdep *md) in pmc_uncore_finalize()
H A Dhwpmc_arm.c54 struct pmc_mdep *
65 pmc_md_finalize(struct pmc_mdep *md) in pmc_md_finalize()
/freebsd/sys/arm64/include/
H A Dpmc_mdep.h74 struct pmc_mdep *pmc_arm64_initialize(void);
75 void pmc_arm64_finalize(struct pmc_mdep *_md);
78 int pmc_cmn600_initialize(struct pmc_mdep *md);
79 void pmc_cmn600_finalize(struct pmc_mdep *_md);
83 int pmc_dmc620_initialize_cd2(struct pmc_mdep *md);
84 void pmc_dmc620_finalize_cd2(struct pmc_mdep *_md);
85 int pmc_dmc620_initialize_c(struct pmc_mdep *md);
86 void pmc_dmc620_finalize_c(struct pmc_mdep *_md);
/freebsd/sys/i386/include/
H A Dpmc_mdep.h37 struct pmc_mdep;
98 struct pmc_mdep;
152 struct pmc_mdep *pmc_amd_initialize(void);
153 void pmc_amd_finalize(struct pmc_mdep *_md);
154 struct pmc_mdep *pmc_intel_initialize(void);
155 void pmc_intel_finalize(struct pmc_mdep *_md);
/freebsd/sys/amd64/include/
H A Dpmc_mdep.h39 struct pmc_mdep;
129 struct pmc_mdep *pmc_amd_initialize(void);
130 void pmc_amd_finalize(struct pmc_mdep *_md);
131 struct pmc_mdep *pmc_intel_initialize(void);
132 void pmc_intel_finalize(struct pmc_mdep *_md);
/freebsd/sys/riscv/include/
H A Dpmc_mdep.h58 struct pmc_mdep *pmc_riscv_initialize(void);
59 void pmc_riscv_finalize(struct pmc_mdep *_md);
/freebsd/sys/arm/include/
H A Dpmc_mdep.h75 struct pmc_mdep *pmc_armv7_initialize(void);
76 void pmc_armv7_finalize(struct pmc_mdep *_md);
/freebsd/sys/sys/
H A Dpmc.h994 struct pmc_mdep;
1030 int (*pcd_pcpu_init)(struct pmc_mdep *_md, int _cpu);
1031 int (*pcd_pcpu_fini)(struct pmc_mdep *_md, int _cpu);
1043 struct pmc_mdep { struct
1223 struct pmc_mdep *pmc_md_initialize(void); /* MD init function */
1224 void pmc_md_finalize(struct pmc_mdep *_md); /* MD fini function */
1234 struct pmc_mdep *pmc_mdep_alloc(int nclasses);
1235 void pmc_mdep_free(struct pmc_mdep *md);

12