Searched refs:pmc (Results 1 - 25 of 95) sorted by relevance

1234

/freebsd-11-stable/lib/libpmc/
H A DMakefile4 LIB= pmc
7 INCS= pmc.h pmclog.h
12 MAN= pmc.3
27 MAN+= pmc.soft.3
30 MAN+= pmc.atom.3
31 MAN+= pmc.atomsilvermont.3
32 MAN+= pmc.core.3
33 MAN+= pmc.core2.3
34 MAN+= pmc.corei7.3
35 MAN+= pmc
[all...]
/freebsd-11-stable/sys/i386/i386/
H A Dperfmon.c129 perfmon_setup(int pmc, unsigned int control) argument
133 if (pmc < 0 || pmc >= NPMC)
136 perfmon_inuse |= (1 << pmc);
139 ctl_shadow[pmc] = control;
140 writectl(pmc);
141 wrmsr(msr_pmc[pmc], pmc_shadow[pmc] = 0);
147 perfmon_get(int pmc, unsigned int *control) argument
149 if (pmc <
160 perfmon_fini(int pmc) argument
175 perfmon_start(int pmc) argument
194 perfmon_stop(int pmc) argument
213 perfmon_read(int pmc, quad_t *val) argument
230 perfmon_reset(int pmc) argument
251 writectl6(int pmc) argument
267 writectl5(int pmc) argument
336 struct pmc *pmc; local
[all...]
/freebsd-11-stable/sys/modules/pmc/
H A DMakefile5 KMOD= pmc
6 SRCS= pmc.c
/freebsd-11-stable/usr.sbin/pmccontrol/
H A DMakefile8 LIBADD+= pmc
H A Dpmccontrol.c43 #include <pmc.h>
96 " " PMCC_PROGRAM_NAME " [-e pmc | -d pmc | -c cpu] ...";
134 int cpu, pmc; local
159 pmc = np->op_pmc;
165 if (pmc >= npmc)
166 errx(EX_DATAERR, "PMC id too large: \"%d\"", pmc);
184 SET_PMCS(i, pmc, op);
187 SET_PMCS(cpu, pmc, op);
348 int error, command, currentcpu, option, pmc; local
[all...]
/freebsd-11-stable/share/examples/perfmon/
H A Dperfmon.c56 struct pmc pmc; local
62 pmc.pmc_num = 0;
63 pmc.pmc_event = 0;
64 pmc.pmc_unit = 0;
65 pmc.pmc_flags = 0;
66 pmc.pmc_mask = 0;
74 pmc.pmc_flags |= PMCF_USR;
77 pmc.pmc_flags |= PMCF_OS;
80 pmc
[all...]
/freebsd-11-stable/sys/dev/hwpmc/
H A Dhwpmc_powerpc.h58 extern int powerpc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc);
59 extern int powerpc_get_config(int cpu, int ri, struct pmc **ppm);
H A Dhwpmc_arm64.c35 #include <sys/pmc.h>
61 arm64_interrupt_enable(uint32_t pmc) argument
65 reg = (1 << pmc);
75 arm64_interrupt_disable(uint32_t pmc) argument
79 reg = (1 << pmc);
89 arm64_counter_enable(unsigned int pmc) argument
93 reg = (1 << pmc);
103 arm64_counter_disable(unsigned int pmc) argument
107 reg = (1 << pmc);
139 arm64_pmcn_read(unsigned int pmc) argument
152 arm64_pmcn_write(unsigned int pmc, uint32_t reg) argument
309 arm64_release_pmc(int cpu, int ri, struct pmc *pmc) argument
[all...]
H A Dhwpmc_armv7.c36 #include <sys/pmc.h>
62 armv7_interrupt_enable(uint32_t pmc) argument
66 reg = (1 << pmc);
74 armv7_interrupt_disable(uint32_t pmc) argument
78 reg = (1 << pmc);
86 armv7_counter_enable(unsigned int pmc) argument
90 reg = (1 << pmc);
98 armv7_counter_disable(unsigned int pmc) argument
102 reg = (1 << pmc);
110 armv7_pmcn_read(unsigned int pmc) argument
120 armv7_pmcn_write(unsigned int pmc, uint32_t reg) argument
281 armv7_release_pmc(int cpu, int ri, struct pmc *pmc) argument
[all...]
H A Dhwpmc_mips24k.c33 #include <sys/pmc.h>
165 mips_pmcn_read(unsigned int pmc) argument
169 KASSERT(pmc < mips_npmcs, ("[mips24k,%d] illegal PMC number %d",
170 __LINE__, pmc));
173 switch (pmc) {
187 mips_pmcn_write(unsigned int pmc, uint64_t reg) argument
190 KASSERT(pmc < mips_npmcs, ("[mips24k,%d] illegal PMC number %d",
191 __LINE__, pmc));
193 switch (pmc) {
H A Dhwpmc_octeon.c33 #include <sys/pmc.h>
119 mips_pmcn_read(unsigned int pmc) argument
123 KASSERT(pmc < mips_npmcs, ("[mips,%d] illegal PMC number %d",
124 __LINE__, pmc));
127 switch (pmc) {
141 mips_pmcn_write(unsigned int pmc, uint64_t reg) argument
144 KASSERT(pmc < mips_npmcs, ("[mips,%d] illegal PMC number %d",
145 __LINE__, pmc));
147 switch (pmc) {
H A Dhwpmc_sparc64.c32 #include <sys/pmc.h>
H A Dhwpmc_xscale.c33 #include <sys/pmc.h>
199 xscale_pmcn_read(unsigned int pmc) argument
203 KASSERT(pmc < 4, ("[xscale,%d] illegal PMC number %d", __LINE__, pmc));
205 switch (pmc) {
224 xscale_pmcn_write(unsigned int pmc, uint32_t reg) argument
227 KASSERT(pmc < 4, ("[xscale,%d] illegal PMC number %d", __LINE__, pmc));
229 switch (pmc) {
248 xscale_allocate_pmc(int cpu, int ri, struct pmc *p
483 xscale_release_pmc(int cpu, int ri, struct pmc *pmc) argument
[all...]
H A Dhwpmc_mips74k.c34 #include <sys/pmc.h>
197 mips_pmcn_read(unsigned int pmc) argument
201 KASSERT(pmc < mips_npmcs, ("[mips74k,%d] illegal PMC number %d",
202 __LINE__, pmc));
205 switch (pmc) {
219 mips_pmcn_write(unsigned int pmc, uint64_t reg) argument
222 KASSERT(pmc < mips_npmcs, ("[mips74k,%d] illegal PMC number %d",
223 __LINE__, pmc));
225 switch (pmc) {
H A Dhwpmc_pentium.c33 #include <sys/pmc.h>
H A Dhwpmc_soft.c31 #include <sys/pmc.h>
96 soft_allocate_pmc(int cpu, int ri, struct pmc *pm,
127 /* Module unload is protected by pmc SX lock. */
135 soft_config_pmc(int cpu, int ri, struct pmc *pm)
158 soft_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc)
191 soft_get_config(int cpu, int ri, struct pmc **ppm)
265 struct pmc *pm;
277 ("[soft,%d] no owner for PHW [cpu%d,pmc%d]", __LINE__, cpu, ri));
289 struct pmc *pm;
301 ("[soft,%d] cpu %d ri %d pmc no
311 soft_release_pmc(int cpu, int ri, struct pmc *pmc) argument
[all...]
H A Dhwpmc_tsc.c31 #include <sys/pmc.h>
71 tsc_allocate_pmc(int cpu, int ri, struct pmc *pm,
98 tsc_config_pmc(int cpu, int ri, struct pmc *pm)
120 tsc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc)
152 tsc_get_config(int cpu, int ri, struct pmc **ppm)
237 struct pmc *pm;
249 ("[tsc,%d] no owner for PHW [cpu%d,pmc%d]", __LINE__, cpu, ri));
254 ("[tsc,%d] illegal pmc mode %d", __LINE__, mode));
264 tsc_release_pmc(int cpu, int ri, struct pmc *pmc) argument
[all...]
H A Dhwpmc_mod.c46 #include <sys/pmc.h>
108 KASSERT(pmc_pmcdisp[(R)] <= 0, ("[pmc,%d] row disposition error", \
112 ("[pmc,%d] row disposition error", __LINE__)); \
117 KASSERT(pmc_pmcdisp[(R)] <= 0, ("[pmc,%d] row disposition error", \
122 KASSERT(pmc_pmcdisp[(R)] >= 0, ("[pmc,%d] row disposition error", \
129 KASSERT(pmc_pmcdisp[(R)] >= 0, ("[pmc,%d] row disposition error", \
182 static int pmc_attach_process(struct proc *p, struct pmc *pm);
183 static struct pmc *pmc_allocate_pmc_descriptor(void);
185 static int pmc_attach_one_process(struct proc *p, struct pmc *pm);
188 static int pmc_can_attach(struct pmc *p
2189 struct pmc *pmc; local
2411 pmc_register_owner(struct proc *p, struct pmc *pmc) argument
2574 pmc_find_pmc(pmc_id_t pmcid, struct pmc **pmc) argument
3294 struct pmc *pmc; local
[all...]
/freebsd-11-stable/sys/arm/nvidia/tegra124/
H A Dtegra124_machdep.c99 bus_space_handle_t pmc; local
103 bus_space_map(fdtbus_bs_tag, PMC_PHYSBASE, PMC_SIZE, 0, &pmc);
105 reg = bus_space_read_4(fdtbus_bs_tag, pmc, PMC_SCRATCH0);
107 bus_space_write_4(fdtbus_bs_tag, pmc, PMC_SCRATCH0,
109 bus_space_read_4(fdtbus_bs_tag, pmc, PMC_SCRATCH0);
111 reg = bus_space_read_4(fdtbus_bs_tag, pmc, PMC_CONTROL_REG);
114 bus_space_write_4(fdtbus_bs_tag, pmc, PMC_CONTROL_REG, reg | 0x10);
115 bus_space_read_4(fdtbus_bs_tag, pmc, PMC_CONTROL_REG);
H A Dtegra124_mp.c80 bus_space_handle_t pmc; local
86 if (bus_space_map(fdtbus_bs_tag, PMC_PHYSBASE, PMC_SIZE, 0, &pmc) != 0)
99 val = bus_space_read_4(fdtbus_bs_tag, pmc,
104 val = bus_space_read_4(fdtbus_bs_tag, pmc, PMC_PWRGATE_STATUS);
109 val = bus_space_read_4(fdtbus_bs_tag, pmc,
112 bus_space_write_4(fdtbus_bs_tag, pmc,
118 val = bus_space_read_4(fdtbus_bs_tag, pmc,
126 bus_space_unmap(fdtbus_bs_tag, pmc, PMC_SIZE);
/freebsd-11-stable/usr.sbin/pmcstat/
H A DMakefile8 LIBADD= elf kvm pmc m ncursesw
/freebsd-11-stable/sys/amd64/amd64/
H A Dprof_machdep.c267 struct pmc pmc; local
273 pmc.pmc_val = cputime_clock_pmc_conf;
274 clock += pmc.pmc_event;
284 pmc.pmc_num = 0;
285 pmc.pmc_event = event;
286 pmc.pmc_unit = 0;
287 pmc.pmc_flags = PMCF_E | PMCF_OS | PMCF_USR;
288 pmc.pmc_mask = 0;
289 cputime_clock_pmc_conf = pmc
[all...]
/freebsd-11-stable/sys/i386/isa/
H A Dprof_machdep.c242 struct pmc pmc; local
248 pmc.pmc_val = cputime_clock_pmc_conf;
249 clock += pmc.pmc_event;
259 pmc.pmc_num = 0;
260 pmc.pmc_event = event;
261 pmc.pmc_unit = 0;
262 pmc.pmc_flags = PMCF_E | PMCF_OS | PMCF_USR;
263 pmc.pmc_mask = 0;
264 cputime_clock_pmc_conf = pmc
[all...]
/freebsd-11-stable/sys/mips/include/
H A Dpmc_mdep.h75 uint64_t mips_pmcn_read(unsigned int pmc);
76 uint64_t mips_pmcn_write(unsigned int pmc, uint64_t v);
/freebsd-11-stable/sys/sys/
H A Dpmclog.h36 #include <sys/pmc.h>
265 void pmclog_process_callchain(struct pmc *_pm, struct pmc_sample *_ps);
272 void pmclog_process_pmcallocate(struct pmc *_pm);
273 void pmclog_process_pmcattach(struct pmc *_pm, pid_t _pid, char *_path);
274 void pmclog_process_pmcdetach(struct pmc *_pm, pid_t _pid);
275 void pmclog_process_proccsw(struct pmc *_pm, struct pmc_process *_pp,
279 void pmclog_process_procexit(struct pmc *_pm, struct pmc_process *_pp);

Completed in 135 milliseconds

1234