/freebsd-current/contrib/processor-trace/libipt/internal/include/ |
H A D | pt_cpu.h | 35 * stores the value in @cpu on success. 39 * Returns -pte_invalid if @cpu or @s is NULL. 42 extern int pt_cpu_parse(struct pt_cpu *cpu, const char *s); 44 /* Get the cpu we're running on. 47 * is executed and stores the value in @cpu. 50 * Returns -pte_invalid if @cpu is NULL. 52 extern int pt_cpu_read(struct pt_cpu *cpu);
|
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/cpc/ |
H A D | tst.allcpus.ksh | 43 cpu=0 61 /cpus[cpu] != 1/ 63 cpus[cpu] = 1; 64 @a[cpu] = count(); 77 while [ $cpu -le $numproc ] 79 if [ "`psrinfo -s $cpu 2> /dev/null`" -eq 1 ]; then 80 printf "%9d %16d\n" $cpu 1 >> $scriptout 82 allpids[$cpu]=$! 83 pbind -b $cpu $! 85 cpu [all...] |
/freebsd-current/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-cpu.c | 52 struct pt_cpu cpu; local 55 error = pt_cpu_parse(&cpu, "6/44/2"); 57 ptu_int_eq(cpu.vendor, pcv_intel); 58 ptu_uint_eq(cpu.family, 6); 59 ptu_uint_eq(cpu.model, 44); 60 ptu_uint_eq(cpu.stepping, 2); 62 error = pt_cpu_parse(&cpu, "0xf/0x2c/0xf"); 64 ptu_int_eq(cpu.vendor, pcv_intel); 65 ptu_uint_eq(cpu.family, 0xf); 66 ptu_uint_eq(cpu 88 struct pt_cpu cpu; local 105 struct pt_cpu cpu; local 128 struct pt_cpu cpu; local [all...] |
/freebsd-current/contrib/bearssl/T0/ |
H A D | OpcodeRet.cs | 30 internal override void Run(CPU cpu) argument 32 cpu.Exit();
|
H A D | OpcodePutLocal.cs | 37 internal override void Run(CPU cpu) argument 39 cpu.PutLocal(num, cpu.Pop());
|
H A D | OpcodeJumpIfNot.cs | 38 internal override void Run(CPU cpu) argument 40 TValue v = cpu.Pop(); 42 base.Run(cpu);
|
H A D | OpcodeJumpIf.cs | 38 internal override void Run(CPU cpu) argument 40 TValue v = cpu.Pop(); 42 base.Run(cpu);
|
H A D | OpcodeGetLocal.cs | 37 internal override void Run(CPU cpu) argument 39 cpu.Push(cpu.GetLocal(num));
|
H A D | T0Comp.cs | 310 AddNative("add-cc:", false, SType.BLANK, cpu => { 330 AddNative("cc:", false, SType.BLANK, cpu => { 354 AddNative("preamble", false, SType.BLANK, cpu => { 363 AddNative("postamble", false, SType.BLANK, cpu => { 374 AddNative("make-CX", false, new SType(3, 1), cpu => { 375 TValue c = cpu.Pop(); 380 int max = cpu.Pop(); 381 int min = cpu.Pop(); 384 cpu.Push(tv); 396 AddNative("CX", true, cpu 1420 CompileStep(CPU cpu) argument [all...] |
H A D | WordNative.cs | 38 internal delegate void NativeRun(CPU cpu); argument 55 internal override void Run(CPU cpu) argument 57 code(cpu);
|
/freebsd-current/sys/dev/hwpmc/ |
H A D | hwpmc_tsc.c | 70 tsc_allocate_pmc(int cpu __diagused, int ri __diagused, struct pmc *pm __unused, 74 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 75 ("[tsc,%d] illegal CPU value %d", __LINE__, cpu)); 90 tsc_config_pmc(int cpu, int ri, struct pmc *pm) argument 94 PMCDBG3(MDP,CFG,1, "cpu=%d ri=%d pm=%p", cpu, ri, pm); 96 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 97 ("[tsc,%d] illegal CPU value %d", __LINE__, cpu)); 112 tsc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 139 tsc_get_config(int cpu, int ri __diagused, struct pmc **ppm) argument 164 tsc_pcpu_fini(struct pmc_mdep *md, int cpu) argument 185 tsc_pcpu_init(struct pmc_mdep *md, int cpu) argument 220 tsc_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) argument 241 tsc_release_pmc(int cpu, int ri __diagused, struct pmc *pmc __unused) argument [all...] |
H A D | hwpmc_uncore.c | 41 #include <machine/cpu.h> 80 uncore_pcpu_noop(struct pmc_mdep *md, int cpu) argument 83 (void) cpu; 88 uncore_pcpu_init(struct pmc_mdep *md, int cpu) argument 95 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 96 ("[ucf,%d] insane cpu number %d", __LINE__, cpu)); 98 PMCDBG1(MDP,INI,1,"uncore-init cpu=%d", cpu); 125 uncore_pcpu_fini(struct pmc_mdep *md, int cpu) argument 185 ucf_allocate_pmc(int cpu, int ri, struct pmc *pm, const struct pmc_op_pmcallocate *a) argument 215 ucf_config_pmc(int cpu, int ri, struct pmc *pm) argument 234 ucf_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 255 ucf_get_config(int cpu, int ri, struct pmc **ppm) argument 263 ucf_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) argument 285 ucf_release_pmc(int cpu, int ri, struct pmc *pmc) argument 301 ucf_start_pmc(int cpu, int ri, struct pmc *pm) argument 328 ucf_stop_pmc(int cpu, int ri, struct pmc *pm __unused) argument 359 ucf_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) argument 489 ucp_allocate_pmc(int cpu, int ri, struct pmc *pm, const struct pmc_op_pmcallocate *a) argument 524 ucp_config_pmc(int cpu, int ri, struct pmc *pm) argument 543 ucp_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 564 ucp_get_config(int cpu, int ri, struct pmc **ppm) argument 572 ucp_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) argument 594 ucp_release_pmc(int cpu, int ri, struct pmc *pm) argument 613 ucp_start_pmc(int cpu, int ri, struct pmc *pm) argument 642 ucp_stop_pmc(int cpu, int ri, struct pmc *pm __unused) argument 661 ucp_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) argument [all...] |
H A D | hwpmc_powerpc.c | 42 #include <machine/cpu.h> 61 void (*powerpc_set_pmc)(int cpu, int ri, int config); 106 powerpc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 110 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 111 ("[powerpc,%d], illegal CPU %d", __LINE__, cpu)); 113 phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; 116 pi->pm_class = powerpc_pcpu[cpu]->pc_class; 130 powerpc_get_config(int cpu, int ri, struct pmc **ppm) argument 133 *ppm = powerpc_pcpu[cpu] 139 powerpc_pcpu_init(struct pmc_mdep *md, int cpu) argument 170 powerpc_pcpu_fini(struct pmc_mdep *md, int cpu) argument 181 powerpc_allocate_pmc(int cpu, int ri, struct pmc *pm, const struct pmc_op_pmcallocate *a) argument 231 powerpc_release_pmc(int cpu, int ri, struct pmc *pmc) argument 248 powerpc_start_pmc(int cpu, int ri, struct pmc *pm) argument 258 powerpc_stop_pmc(int cpu, int ri, struct pmc *pm __unused) argument 266 powerpc_config_pmc(int cpu, int ri, struct pmc *pm) argument 361 powerpc_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) argument 408 powerpc_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) argument 441 int cpu, error, i, retval; local [all...] |
H A D | hwpmc_soft.c | 35 #include <machine/cpu.h> 95 soft_allocate_pmc(int cpu, int ri, struct pmc *pm, argument 101 (void) cpu; 103 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 104 ("[soft,%d] illegal CPU value %d", __LINE__, cpu)); 134 soft_config_pmc(int cpu, int ri, struct pmc *pm) argument 138 PMCDBG3(MDP,CFG,1, "cpu=%d ri=%d pm=%p", cpu, ri, pm); 140 KASSERT(cpu > 157 soft_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 185 soft_get_config(int cpu, int ri, struct pmc **ppm) argument 199 soft_pcpu_fini(struct pmc_mdep *md, int cpu) argument 223 soft_pcpu_init(struct pmc_mdep *md, int cpu) argument 257 soft_read_pmc(int cpu, int ri, struct pmc *pm __unused, pmc_value_t *v) argument 273 soft_write_pmc(int cpu, int ri, struct pmc *pm __unused, pmc_value_t v) argument 288 soft_release_pmc(int cpu, int ri, struct pmc *pmc) argument 320 soft_start_pmc(int cpu, int ri, struct pmc *pm) argument 339 soft_stop_pmc(int cpu, int ri, struct pmc *pm) argument [all...] |
H A D | hwpmc_arm64.c | 36 #include <machine/cpu.h> 163 arm64_allocate_pmc(int cpu, int ri, struct pmc *pm, argument 169 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 170 ("[arm64,%d] illegal CPU value %d", __LINE__, cpu)); 211 arm64_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) argument 217 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 218 ("[arm64,%d] illegal CPU value %d", __LINE__, cpu)); 231 pm->pm_pcpu_state[cpu] 257 arm64_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) argument 277 arm64_config_pmc(int cpu, int ri, struct pmc *pm) argument 300 arm64_start_pmc(int cpu, int ri, struct pmc *pm) argument 324 arm64_stop_pmc(int cpu, int ri, struct pmc *pm __unused) argument 336 arm64_release_pmc(int cpu, int ri, struct pmc *pmc) argument 358 int reg, cpu; local 404 arm64_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 430 arm64_get_config(int cpu, int ri, struct pmc **ppm) argument 439 arm64_pcpu_init(struct pmc_mdep *md, int cpu) argument 487 arm64_pcpu_fini(struct pmc_mdep *md, int cpu) argument [all...] |
H A D | hwpmc_armv7.c | 37 #include <machine/cpu.h> 135 armv7_allocate_pmc(int cpu, int ri, struct pmc *pm, argument 141 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 142 ("[armv7,%d] illegal CPU value %d", __LINE__, cpu)); 160 armv7_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) argument 166 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 167 ("[armv7,%d] illegal CPU value %d", __LINE__, cpu)); 183 pm->pm_pcpu_state[cpu] 209 armv7_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) argument 232 armv7_config_pmc(int cpu, int ri, struct pmc *pm) argument 255 armv7_start_pmc(int cpu, int ri, struct pmc *pm) argument 280 armv7_stop_pmc(int cpu, int ri, struct pmc *pm) argument 298 armv7_release_pmc(int cpu, int ri, struct pmc *pmc) argument 320 int reg, cpu; local 368 armv7_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 394 armv7_get_config(int cpu, int ri, struct pmc **ppm) argument 403 armv7_pcpu_init(struct pmc_mdep *md, int cpu) argument 446 armv7_pcpu_fini(struct pmc_mdep *md, int cpu) argument [all...] |
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/sched/ |
H A D | tst.oncpu.d | 32 sched:::on-cpu 38 sched:::off-cpu 44 sched:::off-cpu
|
H A D | tst.stackdepth.d | 31 sched:::on-cpu
|
/freebsd-current/sys/dev/enic/ |
H A D | vnic_rss.h | 18 /* RSS cpu array */ 23 } cpu[32]; member in union:vnic_rss_cpu 28 void vnic_set_rss_cpu(union vnic_rss_cpu *rss_cpu, u8 *cpu); 30 void vnic_get_rss_cpu(union vnic_rss_cpu *rss_cpu, u8 *cpu);
|
/freebsd-current/sys/powerpc/include/ |
H A D | openpicreg.h | 117 /* interrupt destination cpu */ 126 #define OPENPIC_PCPU_BASE(cpu) (0x20000 + (cpu) * 0x1000) 128 #define OPENPIC_PCPU_IPI_DISPATCH(cpu, ipi) \ 129 (OPENPIC_PCPU_BASE(cpu) + OPENPIC_IPI_DISPATCH(ipi)) 131 #define OPENPIC_PCPU_TPR(cpu) \ 132 (OPENPIC_PCPU_BASE(cpu) + OPENPIC_TPR) 134 #define OPENPIC_PCPU_WHOAMI(cpu) \ 135 (OPENPIC_PCPU_BASE(cpu) + OPENPIC_WHOAMI) 137 #define OPENPIC_PCPU_IACK(cpu) \ [all...] |
/freebsd-current/usr.sbin/pmcstat/ |
H A D | pmcpl_annotate_cg.h | 42 uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu);
|
H A D | pmcpl_annotate.h | 39 uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu);
|
/freebsd-current/sys/arm/arm/ |
H A D | cpufunc_asm_armv7.S | 36 .cpu cortex-a8
|
/freebsd-current/contrib/processor-trace/libipt/src/ |
H A D | pt_cpu.c | 92 int pt_cpu_parse(struct pt_cpu *cpu, const char *s) argument 98 if (!cpu || !s) 133 cpu->vendor = pcv_intel; 134 cpu->family = (uint16_t) family; 135 cpu->model = (uint8_t) model; 136 cpu->stepping = (uint8_t) stepping; 141 int pt_cpu_read(struct pt_cpu *cpu) argument 146 if (!cpu) 149 cpu->vendor = cpu_vendor(); 153 cpu [all...] |
/freebsd-current/sys/dev/cpuctl/ |
H A D | cpuctl.c | 72 static int cpuctl_do_msr(int cpu, cpuctl_msr_args_t *data, u_long cmd, 74 static int cpuctl_do_cpuid(int cpu, cpuctl_cpuid_args_t *data, 76 static int cpuctl_do_cpuid_count(int cpu, cpuctl_cpuid_count_args_t *data, 78 static int cpuctl_do_eval_cpu_features(int cpu, struct thread *td); 79 static int cpuctl_do_update(int cpu, cpuctl_update_args_t *data, 81 static int update_intel(int cpu, cpuctl_update_args_t *args, 83 static int update_amd(int cpu, cpuctl_update_args_t *args, struct thread *td); 84 static int update_via(int cpu, cpuctl_update_args_t *args, 98 * This function checks if specified cpu enabled or not. 101 cpu_enabled(int cpu) argument 125 set_cpu(int cpu, struct thread *td) argument 156 int cpu, ret; local 209 cpuctl_do_cpuid_count(int cpu, cpuctl_cpuid_count_args_t *data, struct thread *td) argument 235 cpuctl_do_cpuid(int cpu, cpuctl_cpuid_args_t *data, struct thread *td) argument 252 cpuctl_do_msr(int cpu, cpuctl_msr_args_t *data, u_long cmd, struct thread *td) argument 303 cpuctl_do_update(int cpu, cpuctl_update_args_t *data, struct thread *td) argument 336 int cpu; member in struct:ucode_update_data 351 update_intel(int cpu, cpuctl_update_args_t *args, struct thread *td) argument 414 update_amd(int cpu, cpuctl_update_args_t *args, struct thread *td) argument 448 update_via(int cpu, cpuctl_update_args_t *args, struct thread *td) argument 521 cpuctl_do_eval_cpu_features(int cpu, struct thread *td) argument 557 int cpu; local 573 int cpu; local [all...] |