Home
last modified time | relevance | path

Searched full:pmc (Results 1 – 25 of 533) sorted by relevance

12345678910>>...22

/freebsd/sys/i386/i386/
H A Dperfmon.c125 perfmon_setup(int pmc, unsigned int control) in perfmon_setup() argument
129 if (pmc < 0 || pmc >= NPMC) in perfmon_setup()
132 perfmon_inuse |= (1 << pmc); in perfmon_setup()
135 ctl_shadow[pmc] = control; in perfmon_setup()
136 writectl(pmc); in perfmon_setup()
137 wrmsr(msr_pmc[pmc], pmc_shadow[pmc] = 0); in perfmon_setup()
143 perfmon_get(int pmc, unsigned int *control) in perfmon_get() argument
145 if (pmc < 0 || pmc >= NPMC) in perfmon_get()
148 if (perfmon_inuse & (1 << pmc)) { in perfmon_get()
149 *control = ctl_shadow[pmc]; in perfmon_get()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/clock/
H A Datmel,at91rm9200-pmc.yaml4 $id: http://devicetree.org/schemas/clock/atmel,at91rm9200-pmc.yaml#
7 title: Atmel Power Management Controller (PMC)
14 system and user peripheral clocks. The PMC enables/disables the clock inputs
21 - const: atmel,at91sam9g20-pmc
22 - const: atmel,at91sam9260-pmc
26 - atmel,at91sam9g15-pmc
27 - atmel,at91sam9g25-pmc
28 - atmel,at91sam9g35-pmc
29 - atmel,at91sam9x25-pmc
30 - atmel,at91sam9x35-pmc
[all …]
/freebsd/lib/libpmc/
H A Dpmc.328 .Nm pmc
70 Orthogonal to PMC scope, PMCs may be allocated in one of two
85 The scope and operational mode for a software PMC are specified at
101 A process-scope PMC may be attached to those target processes
118 Process scope counting PMCs that have been configured to report PMC
127 The CPUs known to the PMC library are named by the
216 Supported PMC classes include:
248 .Ss PMC Capabilities
298 in the PMC library.
312 Returns a list of event names supported by a given PMC type.
[all …]
H A Dpmc_capabilities.340 .Fn pmc_capabilities "pmc_id_t pmc" "uint32_t *caps"
50 .Fn pmc_width "pmc_id_t pmc" "uint32_t *width"
57 retrieves the hardware capabilities of a PMC.
59 .Fa pmc
60 is a PMC handle obtained by a prior call to
64 to a bit mask of capabilities supported by the PMC denoted by
66 .Fa pmc .
68 .Xr pmc 3 .
85 Specifies the number of PMC rows per CPU.
111 returns information about the current state of the PMC hardware
[all …]
H A DMakefile1 LIB_CXX= pmc
4 INCS= pmc.h pmclog.h pmcformat.h
46 MAN= pmc.3
61 MAN+= pmc.soft.3
63 # PMC-dependent manual pages
64 MAN+= pmc.amd.3
65 MAN+= pmc.atom.3
66 MAN+= pmc.atomsilvermont.3
67 MAN+= pmc.cmn-600.3
68 MAN+= pmc.core.3
[all …]
H A Dpmc.dmc-620.328 .Nm pmc.dmc-620
51 .Ss PMC Capabilities
73 Two-bit value that controls direction of count for PMC.
92 The following PMC events are available:
125 .Xr pmc 3 ,
126 .Xr pmc.amd 3 ,
127 .Xr pmc.atom 3 ,
128 .Xr pmc.core 3 ,
129 .Xr pmc.core2 3 ,
130 .Xr pmc.corei7 3 ,
[all …]
H A Dpmc_allocate.345 .Fn pmc_release "pmc_id_t pmc"
57 comprises an PMC event name followed by an optional comma separated
64 .Xr pmc 3
67 The desired PMC mode is specified by argument
74 Allocate a system-scope counting PMC.
76 Allocate a system-scope sampling PMC.
78 Allocate a process-scope counting PMC.
80 Allocate a process-scope sampling PMC.
85 The flags supported at PMC allocation time are:
108 that the PMC is to be allocated on.
[all …]
H A Dpmc_attach.341 process scope PMC.
45 is used to attach a process scope PMC specified by argument
52 If the PMC was allocated with modifier
54 the PMC will additionally attach to current and future descendents of
56 The PMC should be in a quiescent state (i.e., not running).
60 is used to detach a process scope PMC specified by argument
77 specified a PMC that was not in a quiescent state.
81 is being tracked by another process scope PMC that uses the same PMC
84 The target process is already being tracked by the specified PMC.
88 specified a PMC with system scope.
[all …]
H A Dpmc_read.337 .Fn pmc_read "pmc_id_t pmc" "pmc_value_t *value"
39 .Fn pmc_rw "pmc_id_t pmc" "pmc_value_t newvalue" "pmc_value_t *oldvaluep"
41 .Fn pmc_write "pmc_id_t pmc" "pmc_value_t value"
43 These functions read and write the current value of a PMC.
47 will read the current value of the PMC specified by argument
48 .Fa pmc
54 will set the current value of the PMC specified by argument
55 .Fa pmc
63 For write operations the PMC should be a quiescent state.
70 A write operation specified a currently running PMC.
[all …]
H A Dpmc.ucf.328 .Nm pmc.ucf
37 Each fixed-function PMC measures a specific hardware event.
52 .Ss PMC Capabilities
83 .Xr pmc 3 ,
84 .Xr pmc.amd 3 ,
85 .Xr pmc.atom 3 ,
86 .Xr pmc.core 3 ,
87 .Xr pmc.core2 3 ,
88 .Xr pmc.corei7 3 ,
89 .Xr pmc.corei7uc 3 ,
[all …]
H A Dpmc_start.330 .Nd start and stop a PMC
36 .Fn pmc_start "pmc_id_t pmc"
38 .Fn pmc_stop "pmc_id_t pmc"
40 These functions are used to start and stop a PMC.
44 starts the PMC specified by argument
45 .Fa pmc .
46 If the specified PMC has process scope and has not been attached
51 stops the PMC specified by argument
52 .Fa pmc .
61 specified a PMC that requires a log file and no log file was
[all …]
H A Dpmc.haswelluc.329 .Nm pmc.haswelluc
67 .Xr pmc.ucf 3 .
90 Configure the PMC to increment only if the number of configured
94 Configure the PMC to count the number of de-asserted to asserted
197 .Xr pmc 3 ,
198 .Xr pmc.amd 3 ,
199 .Xr pmc.atom 3 ,
200 .Xr pmc.core 3 ,
201 .Xr pmc.corei7 3 ,
202 .Xr pmc.corei7uc 3 ,
[all …]
H A Dpmc.soft.328 .Nm pmc.soft
36 .Ss PMC Features
86 .Xr pmc 3 ,
87 .Xr pmc.amd 3 ,
88 .Xr pmc.atom 3 ,
89 .Xr pmc.core 3 ,
90 .Xr pmc.corei7 3 ,
91 .Xr pmc.corei7uc 3 ,
92 .Xr pmc.iaf 3 ,
93 .Xr pmc.tsc 3 ,
[all …]
H A Dpmc_get_msr.329 .Nd x86 architecture-specific PMC operations
35 .Fn pmc_get_msr "pmc_id_t pmc" "uint32_t *msr"
40 a PMC for subsequent use with RDPMC instructions.
42 .Fa pmc
43 specifies a process scope counting PMC.
45 with the PMC to the location pointed to by argument
49 can directly read the contents of PMC hardware using
59 The PMC handle specified was invalid.
61 The PMC specified did not have process scope or counting mode.
63 The PMC specified was allocated with the
[all …]
H A Dpmc_name_of_capability.336 .Xr pmc 3
66 translates a PMC capability flag given in argument
70 .Xr pmc 3 .
74 translates the PMC class value specified in argument
78 .Xr pmc 3 .
86 .Xr pmc 3 .
90 translates the PMC row disposition specified in argument
98 translates the PMC event number specified by argument
104 .Xr pmc 3 .
108 translates the PMC mode specified by argument
[all …]
/freebsd/sys/contrib/device-tree/Bindings/powerpc/fsl/
H A Dpmc.txt4 - compatible: "fsl,<chip>-pmc".
6 "fsl,mpc8349-pmc" should be listed for any chip whose PMC is
7 compatible. "fsl,mpc8313-pmc" should also be listed for any chip
8 whose PMC is compatible, and implies deep-sleep capability.
10 "fsl,mpc8548-pmc" should be listed for any chip whose PMC is
11 compatible. "fsl,mpc8536-pmc" should also be listed for any chip
12 whose PMC is compatible, and implies deep-sleep capability.
14 "fsl,mpc8641d-pmc" should be listed for any chip whose PMC is
15 compatible; all statements below that apply to "fsl,mpc8548-pmc" also
16 apply to "fsl,mpc8641d-pmc".
[all …]
/freebsd/share/man/man4/
H A Dhwpmc.483 Subsequent operations on the allocated PMC use this handle to denote
84 the specific PMC.
85 A process that has successfully allocated a PMC is termed an
91 The PMC is active only when a thread belonging
94 The PMC operates independently of processes and
115 Scope and operational mode are orthogonal; a PMC may thus be
125 Applications can read the value of the PMC anytime using the
135 operation prior to starting the PMC.
155 operation prior to starting the PMC.
175 Stopping and starting a PMC is permitted at any time the owner process
[all …]
/freebsd/sys/sys/
H A Dpmc.h58 * example, when support for a new PMC type is added.
77 * some way for PMC operations. CPU names are grouped by manufacturer
81 * Please keep the pmc(3) manual page in sync with this list.
167 * A PMC can be in the following states:
176 * holds the number of CPUs using this PMC at
206 * An allocated PMC may used as a 'global' counter or as a
208 * statistical sampling mode or in counting mode. Thus a PMC in use
215 * Statistical profiling modes rely on the PMC periodically delivering
217 * been measured), so the PMC must have the ability to generate
220 * In counting modes, the PMC counts its configured events, with the
[all …]
/freebsd/sys/contrib/device-tree/src/arm/microchip/
H A Dsama7g5.dtsi37 clocks = <&pmc PMC_TYPE_CORE PMC_CPUPLL>;
192 clocks = <&pmc PMC_TYPE_CORE PMC_MCK1>;
210 clocks = <&pmc PMC_TYPE_PERIPHERAL 18>;
241 clocks = <&pmc PMC_TYPE_PERIPHERAL 11>;
244 pmc: clock-controller@e0018000 { label
245 compatible = "microchip,sama7g5-pmc", "syscon";
315 …clocks = <&pmc PMC_TYPE_PERIPHERAL 91>, <&pmc PMC_TYPE_PERIPHERAL 92>, <&pmc PMC_TYPE_PERIPHERAL 9…
323 clocks = <&pmc PMC_TYPE_PERIPHERAL 21>;
343 clocks = <&pmc PMC_TYPE_PERIPHERAL 78>, <&pmc PMC_TYPE_GCK 78>;
358 clocks = <&pmc PMC_TYPE_PERIPHERAL 79>, <&pmc PMC_TYPE_GCK 79>;
[all …]
H A Dsama5d2.dtsi48 clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
64 clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
134 clocks = <&pmc PMC_TYPE_PERIPHERAL 42>, <&pmc PMC_TYPE_CORE PMC_UTMI>;
143 clocks = <&pmc PMC_TYPE_PERIPHERAL 41>, <&pmc PMC_TYPE_PERIPHERAL 41>, <&pmc PMC_TYPE_SYSTEM 6>;
152 clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>, <&pmc PMC_TYPE_PERIPHERAL 41>;
176 clocks = <&pmc PMC_TYPE_COR
287 pmc: clock-controller@f0014000 { global() label
[all...]
H A Dsam9x60.dtsi84 clocks = <&pmc PMC_TYPE_PERIPHERAL 23>, <&pmc PMC_TYPE_CORE PMC_UTMI>;
86 assigned-clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>;
95 clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_SYSTEM 6>;
104 clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>, <&pmc PMC_TYPE_PERIPHERAL 22>;
106 assigned-clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>;
124 clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
141 clocks = <&pmc PMC_TYPE_PERIPHERAL 12>, <&pmc PMC_TYPE_GCK 12>;
143 assigned-clocks = <&pmc PMC_TYPE_GCK 12>;
152 clocks = <&pmc PMC_TYPE_PERIPHERAL 26>, <&pmc PMC_TYPE_GCK 26>;
154 assigned-clocks = <&pmc PMC_TYPE_GCK 26>;
[all …]
/freebsd/sys/dev/hwpmc/
H A Dhwpmc_mod.c47 #include <sys/pmc.h>
102 pmc_value_t *pmc_pcpu_saved; /* saved PMC values: CSW handling */
107 static int *pmc_pmcdisp; /* PMC row dispositions */
118 KASSERT(pmc_pmcdisp[(R)] <= 0, ("[pmc,%d] row disposition error", \
122 ("[pmc,%d] row disposition error", __LINE__)); \
127 KASSERT(pmc_pmcdisp[(R)] <= 0, ("[pmc,%d] row disposition error", \
132 KASSERT(pmc_pmcdisp[(R)] >= 0, ("[pmc,%d] row disposition error", \
139 KASSERT(pmc_pmcdisp[(R)] >= 0, ("[pmc,%d] row disposition error", \
161 * Hash table of PMC owner descriptors. This table is protected by
162 * the shared PMC "sx" lock.
[all …]
H A Dhwpmc_armv7.c33 #include <sys/pmc.h>
61 armv7_interrupt_enable(uint32_t pmc) in armv7_interrupt_enable() argument
65 reg = (1 << pmc); in armv7_interrupt_enable()
73 armv7_interrupt_disable(uint32_t pmc) in armv7_interrupt_disable() argument
77 reg = (1 << pmc); in armv7_interrupt_disable()
85 armv7_counter_enable(unsigned int pmc) in armv7_counter_enable() argument
89 reg = (1 << pmc); in armv7_counter_enable()
97 armv7_counter_disable(unsigned int pmc) in armv7_counter_disable() argument
101 reg = (1 << pmc); in armv7_counter_disable()
109 armv7_pmcn_read(unsigned int pmc, uint32_t evsel) in armv7_pmcn_read() argument
[all …]
H A Dhwpmc_powerpc.h52 * PMC value is used with OVERFLOWCNT to simulate a 64-bit counter to the
86 extern pmc_value_t (*powerpc_pmcn_read)(unsigned int pmc);
87 extern void (*powerpc_pmcn_write)(unsigned int pmc, uint32_t val);
95 int powerpc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc);
96 int powerpc_get_config(int cpu, int ri, struct pmc **ppm);
99 int powerpc_allocate_pmc(int cpu, int ri, struct pmc *pm,
101 int powerpc_release_pmc(int cpu, int ri, struct pmc *pmc);
102 int powerpc_start_pmc(int cpu, int ri, struct pmc *pm);
103 int powerpc_stop_pmc(int cpu, int ri, struct pmc *pm);
104 int powerpc_config_pmc(int cpu, int ri, struct pmc *pm);
[all …]
/freebsd/usr.sbin/pmccontrol/
H A Dpmccontrol.832 .Oo Fl c Ar cpu | Fl d Ar pmc | Fl e Ar pmc Oc ...
60 .It Fl d Ar pmc
61 Disable PMC number
62 .Ar pmc
67 .Ar pmc
68 is a number denoting a specific PMC, or
74 .It Fl e Ar pmc
75 Enable PMC number
76 .Ar pmc ,
81 .Ar pmc
[all …]

12345678910>>...22