/freebsd/sys/dev/hwpmc/ |
H A D | hwpmc_uncore.c | 80 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() 185 ucf_allocate_pmc(int cpu, int ri, struct pmc *pm, in ucf_allocate_pmc() 215 ucf_config_pmc(int cpu, int ri, struct pmc *pm) in ucf_config_pmc() 234 ucf_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in ucf_describe() 255 ucf_get_config(int cpu, int ri, struct pmc **ppm) in ucf_get_config() 263 ucf_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in ucf_read_pmc() 285 ucf_release_pmc(int cpu, int ri, struct pmc *pmc) in ucf_release_pmc() 301 ucf_start_pmc(int cpu, int ri, struct pmc *pm) in ucf_start_pmc() [all …]
|
H A D | hwpmc_soft.c | 95 soft_allocate_pmc(int cpu, int ri, struct pmc *pm, in soft_allocate_pmc() 134 soft_config_pmc(int cpu, int ri, struct pmc *pm) in soft_config_pmc() 157 soft_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in soft_describe() 185 soft_get_config(int cpu, int ri, struct pmc **ppm) in soft_get_config() 199 soft_pcpu_fini(struct pmc_mdep *md, int cpu) in soft_pcpu_fini() 223 soft_pcpu_init(struct pmc_mdep *md, int cpu) in soft_pcpu_init() 257 soft_read_pmc(int cpu, int ri, struct pmc *pm __unused, pmc_value_t *v) in soft_read_pmc() 273 soft_write_pmc(int cpu, int ri, struct pmc *pm __unused, pmc_value_t v) in soft_write_pmc() 288 soft_release_pmc(int cpu, int ri, struct pmc *pmc) in soft_release_pmc() 320 soft_start_pmc(int cpu, int ri, struct pmc *pm) in soft_start_pmc() [all …]
|
H A D | hwpmc_armv7.c | 135 armv7_allocate_pmc(int cpu, int ri, struct pmc *pm, in armv7_allocate_pmc() 160 armv7_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in armv7_read_pmc() 209 armv7_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) in armv7_write_pmc() 232 armv7_config_pmc(int cpu, int ri, struct pmc *pm) in armv7_config_pmc() 255 armv7_start_pmc(int cpu, int ri, struct pmc *pm) in armv7_start_pmc() 280 armv7_stop_pmc(int cpu, int ri, struct pmc *pm) in armv7_stop_pmc() 298 armv7_release_pmc(int cpu, int ri, struct pmc *pmc) in armv7_release_pmc() 320 int reg, cpu; in armv7_intr() local 368 armv7_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in armv7_describe() 394 armv7_get_config(int cpu, int ri, struct pmc **ppm) in armv7_get_config() [all …]
|
H A D | hwpmc_arm64.c | 163 arm64_allocate_pmc(int cpu,int ri,struct pmc * pm,const struct pmc_op_pmcallocate * a) arm64_allocate_pmc() argument 211 arm64_read_pmc(int cpu,int ri,struct pmc * pm,pmc_value_t * v) arm64_read_pmc() argument 257 arm64_write_pmc(int cpu,int ri,struct pmc * pm,pmc_value_t v) arm64_write_pmc() argument 277 arm64_config_pmc(int cpu,int ri,struct pmc * pm) arm64_config_pmc() argument 300 arm64_start_pmc(int cpu,int ri,struct pmc * pm) arm64_start_pmc() argument 324 arm64_stop_pmc(int cpu,int ri,struct pmc * pm __unused) arm64_stop_pmc() argument 336 arm64_release_pmc(int cpu,int ri,struct pmc * pmc) arm64_release_pmc() argument 358 int reg, cpu; arm64_intr() local 404 arm64_describe(int cpu,int ri,struct pmc_info * pi,struct pmc ** ppmc) arm64_describe() argument 430 arm64_get_config(int cpu,int ri,struct pmc ** ppm) arm64_get_config() argument 439 arm64_pcpu_init(struct pmc_mdep * md,int cpu) arm64_pcpu_init() argument 487 arm64_pcpu_fini(struct pmc_mdep * md,int cpu) arm64_pcpu_fini() argument [all...] |
H A D | hwpmc_powerpc.c | 106 powerpc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in powerpc_describe() 130 powerpc_get_config(int cpu, int ri, struct pmc **ppm) in powerpc_get_config() 139 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() 181 powerpc_allocate_pmc(int cpu, int ri, struct pmc *pm, in powerpc_allocate_pmc() 231 powerpc_release_pmc(int cpu, int ri, struct pmc *pmc) in powerpc_release_pmc() 248 powerpc_start_pmc(int cpu, int ri, struct pmc *pm) in powerpc_start_pmc() 258 powerpc_stop_pmc(int cpu, int ri, struct pmc *pm __unused) in powerpc_stop_pmc() 266 powerpc_config_pmc(int cpu, int ri, struct pmc *pm) in powerpc_config_pmc() 361 powerpc_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in powerpc_read_pmc() [all …]
|
H A D | hwpmc_core.c | 108 core_pcpu_noop(struct pmc_mdep *md, int cpu) in core_pcpu_noop() 116 core_pcpu_init(struct pmc_mdep *md, int cpu) in core_pcpu_init() 160 core_pcpu_fini(struct pmc_mdep *md, int cpu) in core_pcpu_fini() 222 iaf_allocate_pmc(int cpu, int ri, struct pmc *pm, in iaf_allocate_pmc() 312 iaf_config_pmc(int cpu, int ri, struct pmc *pm) in iaf_config_pmc() 331 iaf_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in iaf_describe() 352 iaf_get_config(int cpu, int ri, struct pmc **ppm) in iaf_get_config() 371 iaf_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in iaf_read_pmc() 394 iaf_release_pmc(int cpu, int ri, struct pmc *pmc) in iaf_release_pmc() 417 iaf_start_pmc(int cpu, int ri, struct pmc *pm) in iaf_start_pmc() [all …]
|
H A D | hwpmc_tsc.c | 90 tsc_config_pmc(int cpu, int ri, struct pmc *pm) in tsc_config_pmc() 112 tsc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in tsc_describe() 139 tsc_get_config(int cpu, int ri __diagused, struct pmc **ppm) in tsc_get_config() 164 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() 220 tsc_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in tsc_read_pmc() 241 tsc_release_pmc(int cpu, int ri __diagused, struct pmc *pmc __unused) in tsc_release_pmc()
|
H A D | hwpmc_cmn600.c | 141 cmn600_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in cmn600_read_pmc() 168 cmn600_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) in cmn600_write_pmc() 200 cmn600_config_pmc(int cpu, int ri, struct pmc *pm) in cmn600_config_pmc() 225 cmn600_get_config(int cpu, int ri, struct pmc **ppm) in cmn600_get_config() 313 cmn600_allocate_pmc(int cpu, int ri, struct pmc *pm, in cmn600_allocate_pmc() 373 cmn600_release_pmc(int cpu, int ri, struct pmc *pmc) in cmn600_release_pmc() 416 cmn600_start_pmc(int cpu, int ri, struct pmc *pm) in cmn600_start_pmc() 525 cmn600_stop_pmc(int cpu, int ri, struct pmc *pm) in cmn600_stop_pmc() 561 cmn600_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in cmn600_describe() 593 cmn600_pcpu_init(struct pmc_mdep *md, int cpu) in cmn600_pcpu_init() [all …]
|
H A D | hwpmc_power8.c | 50 power8_set_pmc(int cpu, int ri, int config) in power8_set_pmc() 84 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() 153 power8_allocate_pmc(int cpu, int ri, struct pmc *pm, in power8_allocate_pmc()
|
H A D | hwpmc_amd.c | 214 amd_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in amd_read_pmc() 260 amd_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) in amd_write_pmc() 288 amd_config_pmc(int cpu, int ri, struct pmc *pm) in amd_config_pmc() 313 amd_get_config(int cpu, int ri, struct pmc **ppm) in amd_get_config() 452 amd_release_pmc(int cpu, int ri, struct pmc *pmc __unused) in amd_release_pmc() 558 int i, error, retval, cpu; in amd_intr() local 650 amd_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in amd_describe() 694 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()
|
H A D | hwpmc_dmc620.c | 140 dmc620desc(int class, int cpu, int ri) in dmc620desc() 192 CLASSDEP_FN4(dmc620_read_pmc, int, cpu, int, ri, struct pmc *, pm, in CLASSDEP_FN4() argument 224 CLASSDEP_FN4(dmc620_write_pmc, int, cpu, int, ri, struct pmc *, pm, in CLASSDEP_FN4() argument 248 CLASSDEP_FN3(dmc620_config_pmc, int, cpu, int, ri, struct pmc *, pm) in CLASSDEP_FN3() argument 273 CLASSDEP_FN3(dmc620_get_config, int, cpu, int, ri, struct pmc **, ppm) in CLASSDEP_FN3() argument 285 CLASSDEP_FN4(dmc620_allocate_pmc, int, cpu, int, ri, struct pmc *,pm, in CLASSDEP_FN4() argument 341 CLASSDEP_FN3(dmc620_release_pmc, int, cpu, int, ri, struct pmc *, pmc) in CLASSDEP_FN3() argument 364 CLASSDEP_FN3(dmc620_start_pmc, int, cpu, int, ri, struct pmc *, pm) in CLASSDEP_FN3() argument 400 CLASSDEP_FN3(dmc620_stop_pmc, int, cpu, int, ri, struct pmc *, pm) in CLASSDEP_FN3() argument 425 CLASSDEP_FN4(dmc620_describe, int, cpu, int, ri, struct pmc_info *, pi, in CLASSDEP_FN4() argument [all …]
|
H A D | hwpmc_ppc970.c | 254 ppc970_set_pmc(int cpu, int ri, int config) in ppc970_set_pmc() 300 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()
|
/freebsd/sys/dev/cpuctl/ |
H A D | cpuctl.c | 101 cpu_enabled(int cpu) in cpu_enabled() 125 set_cpu(int cpu, struct thread *td) in set_cpu() 156 int cpu, ret; in cpuctl_ioctl() local 209 cpuctl_do_cpuid_count(int cpu, cpuctl_cpuid_count_args_t *data, in cpuctl_do_cpuid_count() 235 cpuctl_do_cpuid(int cpu, cpuctl_cpuid_args_t *data, struct thread *td) in cpuctl_do_cpuid() 252 cpuctl_do_msr(int cpu, cpuctl_msr_args_t *data, u_long cmd, struct thread *td) in cpuctl_do_msr() 303 cpuctl_do_update(int cpu, cpuctl_update_args_t *data, struct thread *td) in cpuctl_do_update() 336 int cpu; member 351 update_intel(int cpu, cpuctl_update_args_t *args, struct thread *td) in update_intel() 414 update_amd(int cpu, cpuctl_update_args_t *args, struct thread *td) in update_amd() [all …]
|
/freebsd/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-cpu.c | 52 struct pt_cpu cpu; in cpu_valid() local 88 struct pt_cpu cpu; in cpu_null() local 105 struct pt_cpu cpu; in cpu_incomplete() local 128 struct pt_cpu cpu; in cpu_invalid() local
|
/freebsd/lib/libmemstat/ |
H A D | memstat.c | 377 memstat_get_percpu_memalloced(const struct memory_type *mtp, int cpu) in memstat_get_percpu_memalloced() 384 memstat_get_percpu_memfreed(const struct memory_type *mtp, int cpu) in memstat_get_percpu_memfreed() 391 memstat_get_percpu_numallocs(const struct memory_type *mtp, int cpu) in memstat_get_percpu_numallocs() 398 memstat_get_percpu_numfrees(const struct memory_type *mtp, int cpu) in memstat_get_percpu_numfrees() 405 memstat_get_percpu_sizemask(const struct memory_type *mtp, int cpu) in memstat_get_percpu_sizemask() 412 memstat_get_percpu_caller_pointer(const struct memory_type *mtp, int cpu, in memstat_get_percpu_caller_pointer() 420 memstat_set_percpu_caller_pointer(struct memory_type *mtp, int cpu, in memstat_set_percpu_caller_pointer() 428 memstat_get_percpu_caller_uint64(const struct memory_type *mtp, int cpu, in memstat_get_percpu_caller_uint64() 436 memstat_set_percpu_caller_uint64(struct memory_type *mtp, int cpu, int index, in memstat_set_percpu_caller_uint64() 444 memstat_get_percpu_free(const struct memory_type *mtp, int cpu) in memstat_get_percpu_free()
|
/freebsd/sys/kern/ |
H A D | kern_pmc.c | 148 pmc_cpu_is_active(int cpu) in pmc_cpu_is_active() 160 pmc_cpu_is_disabled(int cpu) in pmc_cpu_is_disabled() 166 pmc_cpu_is_present(int cpu) in pmc_cpu_is_present() 176 pmc_cpu_is_primary(int cpu) in pmc_cpu_is_primary() 338 int domain, cpu; in init_hwpmc() local
|
/freebsd/sys/arm64/coresight/ |
H A D | coresight_cmd.c | 94 coresight_init_event(int cpu, struct coresight_event *event) in coresight_init_event() 126 coresight_enable(int cpu, struct coresight_event *event) in coresight_enable() 138 coresight_disable(int cpu, struct coresight_event *event) in coresight_disable() 150 coresight_read(int cpu, struct coresight_event *event) in coresight_read()
|
/freebsd/sys/powerpc/include/ |
H A D | openpicreg.h | 126 #define OPENPIC_PCPU_BASE(cpu) (0x20000 + (cpu) * 0x1000) argument 128 #define OPENPIC_PCPU_IPI_DISPATCH(cpu, ipi) \ argument 131 #define OPENPIC_PCPU_TPR(cpu) \ argument 134 #define OPENPIC_PCPU_WHOAMI(cpu) \ argument 137 #define OPENPIC_PCPU_IACK(cpu) \ argument 140 #define OPENPIC_PCPU_EOI(cpu) \ argument
|
/freebsd/usr.sbin/pmcstudy/ |
H A D | pmcstudy.c | 168 int cpu; /* CPU we are on */ member 473 allocstall1(struct counters *cpu, int pos) in allocstall1() 495 allocstall2(struct counters *cpu, int pos) in allocstall2() 517 br_mispredict(struct counters *cpu, int pos) in br_mispredict() 541 br_mispredictib(struct counters *cpu, int pos) in br_mispredictib() 595 br_mispredict_broad(struct counters *cpu, int pos) in br_mispredict_broad() 636 splitloadib(struct counters *cpu, int pos) in splitloadib() 670 splitload(struct counters *cpu, int pos) in splitload() 695 splitload_sb(struct counters *cpu, int pos) in splitload_sb() 720 splitstore_sb(struct counters *cpu, int pos) in splitstore_sb() [all …]
|
/freebsd/sys/cddl/dev/dtrace/ |
H A D | dtrace_debug.c | 47 dtrace_debug_lock(int cpu) in dtrace_debug_lock() 58 dtrace_debug_unlock(int cpu) in dtrace_debug_unlock() 153 dtrace_debug__putc(int cpu, char c) in dtrace_debug__putc() 175 int cpu; in dtrace_debug_putc() local 188 int cpu; in dtrace_debug_puts() local 228 dtrace_debug_vprintf(int cpu, const char *fmt, va_list ap) in dtrace_debug_vprintf() 538 int cpu; in dtrace_debug_printf() local
|
/freebsd/sys/riscv/riscv/ |
H A D | mp_machdep.c | 218 int cpu; in smp_after_idle_runnable() local 264 u_int cpu; in ipi_stop() local 421 u_int cpu; in cpu_mp_start() local 451 u_int cpu; in cpu_mp_announce() local 506 ipi_cpu(int cpu, u_int ipi) in ipi_cpu()
|
/freebsd/sys/x86/x86/ |
H A D | mp_x86.c | 1145 int cpu; in smp_after_idle_runnable() local 1287 ipi_bitmap_set(int cpu, u_int ipi) in ipi_bitmap_set() 1309 ipi_send_cpu(int cpu, u_int ipi) in ipi_send_cpu() 1328 int cpu = PCPU_GET(cpuid); in ipi_bitmap_handler() local 1384 int cpu; in ipi_selected() local 1404 ipi_cpu(int cpu, u_int ipi) in ipi_cpu() 1426 int cpu, c; in ipi_all_but_self() local 1491 int cpu; in nmi_call_kdb_smp() local 1518 u_int cpu; in cpustop_handler() local 1561 cpustop_handler_post(u_int cpu) in cpustop_handler_post() [all …]
|
/freebsd/sys/dev/dpaa/ |
H A D | portals_common.c | 51 dpaa_portal_alloc_res(device_t dev, struct dpaa_portals_devinfo *di, int cpu) in dpaa_portal_alloc_res() 149 unsigned int cpu; in dpaa_portal_map_registers() local
|
/freebsd/lib/libkvm/ |
H A D | kvm_pcpu.c | 152 kvm_getpcpu(kvm_t *kd, int cpu) in kvm_getpcpu() 208 _kvm_dpcpu_setcpu(kvm_t *kd, u_int cpu, int report_error) in _kvm_dpcpu_setcpu() 326 kvm_dpcpu_setcpu(kvm_t *kd, u_int cpu) in kvm_dpcpu_setcpu() 346 kvm_read_zpcpu(kvm_t *kd, u_long base, void *buf, size_t size, int cpu) in kvm_read_zpcpu()
|
/freebsd/sys/powerpc/powerpc/ |
H A D | platform.c | 254 platform_timebase_freq(struct cpuref *cpu) in platform_timebase_freq() 269 platform_smp_first_cpu(struct cpuref *cpu) in platform_smp_first_cpu() 275 platform_smp_next_cpu(struct cpuref *cpu) in platform_smp_next_cpu() 281 platform_smp_get_bsp(struct cpuref *cpu) in platform_smp_get_bsp() 287 platform_smp_start_cpu(struct pcpu *cpu) in platform_smp_start_cpu()
|