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

1234

/freebsd-10.1-release/lib/libpmc/
H A DMakefile3 LIB= pmc
6 INCS= pmc.h pmclog.h
8 MAN= pmc.3
23 MAN+= pmc.soft.3
26 MAN+= pmc.atom.3
27 MAN+= pmc.atomsilvermont.3
28 MAN+= pmc.core.3
29 MAN+= pmc.core2.3
30 MAN+= pmc.corei7.3
31 MAN+= pmc
[all...]
/freebsd-10.1-release/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-10.1-release/sys/modules/pmc/
H A DMakefile5 KMOD= pmc
6 SRCS= pmc.c
/freebsd-10.1-release/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-10.1-release/sys/dev/hwpmc/
H A Dhwpmc_powerpc.h57 extern int powerpc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc);
58 extern int powerpc_get_config(int cpu, int ri, struct pmc **ppm);
H A Dhwpmc_mips24k.c33 #include <sys/pmc.h>
166 mips_pmcn_read(unsigned int pmc) argument
170 KASSERT(pmc < mips_npmcs, ("[mips24k,%d] illegal PMC number %d",
171 __LINE__, pmc));
174 switch (pmc) {
188 mips_pmcn_write(unsigned int pmc, uint64_t reg) argument
191 KASSERT(pmc < mips_npmcs, ("[mips24k,%d] illegal PMC number %d",
192 __LINE__, pmc));
194 switch (pmc) {
H A Dhwpmc_octeon.c33 #include <sys/pmc.h>
120 mips_pmcn_read(unsigned int pmc) argument
124 KASSERT(pmc < mips_npmcs, ("[mips,%d] illegal PMC number %d",
125 __LINE__, pmc));
128 switch (pmc) {
142 mips_pmcn_write(unsigned int pmc, uint64_t reg) argument
145 KASSERT(pmc < mips_npmcs, ("[mips,%d] illegal PMC number %d",
146 __LINE__, pmc));
148 switch (pmc) {
H A Dhwpmc_ia64.c32 #include <sys/pmc.h>
H A Dhwpmc_sparc64.c32 #include <sys/pmc.h>
H A Dhwpmc_xscale.c33 #include <sys/pmc.h>
202 xscale_pmcn_read(unsigned int pmc) argument
206 KASSERT(pmc < 4, ("[xscale,%d] illegal PMC number %d", __LINE__, pmc));
208 switch (pmc) {
227 xscale_pmcn_write(unsigned int pmc, uint32_t reg) argument
230 KASSERT(pmc < 4, ("[xscale,%d] illegal PMC number %d", __LINE__, pmc));
232 switch (pmc) {
251 xscale_allocate_pmc(int cpu, int ri, struct pmc *p
486 xscale_release_pmc(int cpu, int ri, struct pmc *pmc) argument
[all...]
H A Dhwpmc_pentium.c33 #include <sys/pmc.h>
H A Dhwpmc_amd.h80 #define AMD_PMC_HAS_OVERFLOWED(pmc) ((rdpmc(pmc) & (1ULL << 47)) == 0)
91 /* MD extension for 'struct pmc' */
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...]
/freebsd-10.1-release/sys/contrib/dts/arm/
H A Dsama5d3_tcb1.dtsi21 pmc: pmc@fffffc00 {
H A Dsama5d3_emac.dtsi34 pmc: pmc@fffffc00 {
H A Dsama5d3_can.dtsi35 pmc: pmc@fffffc00 {
H A Dsama5d3_mci2.dtsi34 pmc: pmc@fffffc00 {
H A Dsama5d3_uart.dtsi40 pmc: pmc@fffffc00 {
H A Dsama5d3xcm.dtsi31 pmc: pmc@fffffc00 {
/freebsd-10.1-release/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-10.1-release/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-10.1-release/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-10.1-release/usr.sbin/pmccontrol/
H A Dpmccontrol.c41 #include <pmc.h>
94 " " PMCC_PROGRAM_NAME " [-e pmc | -d pmc | -c cpu] ...";
132 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-10.1-release/sys/sys/
H A Dpmclog.h36 #include <sys/pmc.h>
263 void pmclog_process_callchain(struct pmc *_pm, struct pmc_sample *_ps);
270 void pmclog_process_pmcallocate(struct pmc *_pm);
271 void pmclog_process_pmcattach(struct pmc *_pm, pid_t _pid, char *_path);
272 void pmclog_process_pmcdetach(struct pmc *_pm, pid_t _pid);
273 void pmclog_process_proccsw(struct pmc *_pm, struct pmc_process *_pp,
277 void pmclog_process_procexit(struct pmc *_pm, struct pmc_process *_pp);

Completed in 151 milliseconds

1234