/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kvm_cpu.c | 58 kmt_cpu_t *cpu; local 63 if ((cpu = kmt_cpu_ctors[i](t)) != NULL) 64 return (cpu); 76 kmt_cpu_destroy(kmt_cpu_t *cpu) argument 78 if (cpu != NULL) 79 cpu->kmt_cpu_ops->kco_destroy(cpu); 83 kmt_cpu_step_branch(mdb_tgt_t *t, kmt_cpu_t *cpu) argument 85 if (cpu == NULL || cpu 92 kmt_cpu_name(kmt_cpu_t *cpu) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | ib_stats.c | 90 int cpu; local 98 for (cpu = 0; cpu < nr_cpus; cpu++) { 99 src = (uint64_t *)&(rdsv3_per_cpu(rdsv3_ib_stats, cpu));
|
H A D | stats.c | 124 int cpu; local 136 for (cpu = 0; cpu < nr_cpus; cpu++) { 137 src = (uint64_t *)&(rdsv3_per_cpu(rdsv3_stats, cpu));
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | intrq.c | 28 #include <sys/cpu.h> 36 cpu_intrq_register(struct cpu *cpu) argument 38 struct machcpu *mcpup = &cpu->cpu_m; 43 cmn_err(CE_PANIC, "cpu%d: cpu_mondo queue configuration " 44 "failed, error %lu", cpu->cpu_id, ret); 48 cmn_err(CE_PANIC, "cpu%d: dev_mondo queue configuration " 49 "failed, error %lu", cpu->cpu_id, ret); 53 cmn_err(CE_PANIC, "cpu%d: resumable error queue configuration " 54 "failed, error %lu", cpu 63 cpu_intrq_setup(struct cpu *cpu) argument 183 cpu_intrq_cleanup(struct cpu *cpu) argument [all...] |
H A D | mach_mp_startup.c | 46 init_cpu_info(struct cpu *cp) 81 * in cpu_list when this function is called. When a cpu is dynamically 93 * On first cpu setup, tell hv we are booting 105 * destroy all per-cpu information related to this cpu. 142 if (strcmp(type, "cpu") != 0) 149 cmn_err(CE_PANIC, "reg prop not found in cpu node"); 179 cpu_t *cpu; local 198 num_nodes = md_scan_dag(mdp, rootnode, md_find_name(mdp, "cpu"), 237 if ((cpu [all...] |
H A D | cmp.c | 79 * to provide cpu-chip mapping 86 return (cpu[cpuid]->cpu_m.cpu_chip); 116 pg_plat_hw_instance_id(cpu_t *cpu, pghw_type_t hw) argument 120 return (cpu->cpu_m.cpu_ipipe); 122 return (cpu->cpu_m.cpu_chip); 124 return (cpu->cpu_m.cpu_mpipe); 126 return (cpu->cpu_m.cpu_fpu); 174 pg_plat_get_core_id(cpu_t *cpu) argument 176 return (cpu->cpu_m.cpu_core);
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | cpu.c | 150 Prom_node *cpu; local 156 for (cpu = dev_find_type(board->nodes, "cpu"); cpu != NULL; 157 cpu = dev_next_type(cpu, "cpu")) { 164 mid = (int *)get_prop_val(find_prop(cpu, "upa-portid")); 166 mid = (int *)get_prop_val(find_prop(cpu, "portid")); 169 freq = (get_cpu_freq(cpu) [all...] |
/illumos-gate/usr/src/cmd/powertop/common/ |
H A D | turbo.c | 117 int cpu; local 123 for (cpu = 0; cpu < g_ncpus; cpu++) { 124 turbo_info = &turbo_snapshot[cpu]; 125 ksp = kstat_lookup(kc, "turbo", g_cpu_table[cpu], NULL); 128 cpu); 135 cpu); 143 "%d\n", cpu); 156 "%d\n", cpu); 198 int cpu; local [all...] |
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | mach_kdi.c | 125 kdi_stop_slaves(int cpu, int doxc) argument 128 kdi_xc_others(cpu, kdi_slave_entry); 161 cpu_t *cpu = kobj_zalloc(sizeof (*cpu), KM_TMP); local 164 cpu->cpu_self = cpu; 167 wrmsr(MSR_AMD_GSBASE, (uint64_t)cpu); 182 cpu_t *cpu = kobj_zalloc(sizeof (*cpu), KM_TMP); local 187 cpu [all...] |
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | psetsys.c | 52 pset_assign(psetid_t pset, processorid_t cpu, psetid_t *opset) argument 54 return (_pset(PSET_ASSIGN, pset, cpu, opset)); 58 pset_assign_forced(psetid_t pset, processorid_t cpu, psetid_t *opset) argument 60 return (_pset(PSET_ASSIGN_FORCED, pset, cpu, opset));
|
/illumos-gate/usr/src/cmd/mdb/intel/mdb/ |
H A D | kvm_isadep.c | 121 cpu_t cpu; local 123 if (mdb_vread(&cpu, sizeof (cpu_t), cpup) != sizeof (cpu_t)) 126 return (cpu.cpu_id); 141 mdb_warn("failed to find cpuid for cpu at %p", addr); 157 mdb_warn("failed to get regs for cpu %d\n", cpuid); 187 mdb_warn("failed to find cpuid for cpu at %p", addr); 204 mdb_warn("failed to get regs for cpu %d\n", cpuid);
|
/illumos-gate/usr/src/cmd/mdb/sun4v/modules/errh/ |
H A D | errh.c | 43 cpu_t cpu; local 63 if (mdb_vread(&cpu, sizeof (cpu), current) == -1) { 64 mdb_warn("failed to read cpu at %p", current); 69 if (cpu.cpu_m.cpu_rq_lastre == 0) 70 mdb_printf("%-5d empty\n", cpu.cpu_id); 72 mdb_printf("%-5d %lx\n", cpu.cpu_id, 73 cpu.cpu_m.cpu_rq_lastre); 74 } else if (cpu.cpu_m.cpu_rq_lastre != 0) 75 mdb_printf("%lx\n", cpu 86 cpu_t cpu; local 129 cpu_t cpu; local 168 cpu_t cpu; local 215 cpu_t cpu; local 252 cpu_t cpu; local [all...] |
/illumos-gate/usr/src/uts/common/disp/ |
H A D | cmt_policy.c | 122 int hint, i, cpu, nsiblings; local 215 cpu = hint; 217 newcp = GROUP_ACCESS(&tpg->cmt_cpus_actv, cpu); 223 if (++cpu == tgt_size) 224 cpu = 0; 225 } while (cpu != hint);
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | dtrace_subr.c | 42 dtrace_xcall(processorid_t cpu, dtrace_xcall_t func, void *arg) argument 44 if (cpu == DTRACE_CPUALL) { 47 xc_one(cpu, dtrace_xcall_func, (uint64_t)func, (uint64_t)arg);
|
H A D | mp_startup.c | 47 extern int cpu_intrq_setup(struct cpu *); 48 extern void cpu_intrq_cleanup(struct cpu *); 49 extern void cpu_intrq_register(struct cpu *); 51 struct cpu *cpus; /* pointer to other cpus; dynamically allocate */ 52 struct cpu *cpu[NCPU]; /* pointers to all CPUs */ variable in typeref:struct:cpu 83 * other than boot cpu. 94 * common slave cpu initialization code 154 * parametric flag setting functions. these routines set the cpu 155 * state just prior to releasing the slave cpu [all...] |
/illumos-gate/usr/src/uts/intel/os/ |
H A D | arch_kdi.c | 97 cpu_t *cpu; local 105 if ((cpu = kdi_gdt2cpu(gdtr.dtr_base)) == NULL || 106 !cpuid_checkpass(cpu, 1)) 109 *vendorp = cpuid_getvendor(cpu); 110 *familyp = cpuid_getfamily(cpu); 111 *modelp = cpuid_getmodel(cpu);
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | mach_kdi.c | 52 #include <sys/cpu.h> 114 kdi_stop_slaves(int cpu, int doxc) argument 117 kdi_xc_others(cpu, kdi_slave_entry); 129 if (cpu[c] == NULL || !(cpu[c]->cpu_flags & CPU_READY)) 145 if (!(cpu[CPU->cpu_id]->cpu_flags & CPU_READY)) 168 cpu_t *cpu = kobj_zalloc(sizeof (*cpu), KM_TMP); local 173 cpu->cpu_self = cpu; 223 cpu_t *cpu = kobj_zalloc(sizeof (*cpu), KM_TMP); local [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4v/cpumem-retire/ |
H A D | cma_cpu_sun4v.c | 135 cma_cpu_t *cpu; local 163 * check to see if the cpu has been offline. 165 fmd_hdl_debug(hdl, "cpu %u is not offline yet - sleeping\n", cpuid); 168 * Create a cpu node and add to the head of the cpu list 170 cpu = fmd_hdl_zalloc(hdl, sizeof (cma_cpu_t), FMD_SLEEP); 171 (void) nvlist_dup(fmri, &cpu->cpu_fmri, 0); 173 cpu->cpu_uuid = fmd_hdl_strdup(hdl, uuid, FMD_SLEEP); 175 cpu->cpuid = cpuid; 176 cpu 227 cpu_retry(fmd_hdl_t *hdl, cma_cpu_t *cpu) argument 263 cma_cpu_free(fmd_hdl_t *hdl, cma_cpu_t *cpu) argument 282 cma_cpu_t *cpu = *cpup; local 318 cma_cpu_t *cpu; local [all...] |
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/ |
H A D | Drop.java | 123 private final int cpu; field in class:Drop 137 * @param dropCPU cpu where drops occurred 154 cpu = dropCPU; 185 return cpu; 264 buf.append("[cpu = "); 265 buf.append(cpu);
|
/illumos-gate/usr/src/cmd/prstat/ |
H A D | prsort.c | 70 float cpu = 0; local 71 cpu += p->li_usr; 72 cpu += p->li_sys; 73 cpu *= 1000; 74 return ((ulong_t)cpu); 119 if (strcmp("cpu", arg) == 0) {
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | cpupart.c | 44 cpu_t *cpu = (cpu_t *)arg; local 48 BT_SET(cpuset, cpu->cpu_id); 237 cpu_t cpu; local 240 if (mdb_vread(&cpu, sizeof (cpu_t), addr) == -1) { 245 status = wsp->walk_callback(addr, &cpu, wsp->walk_cbdata); 250 addr = (uintptr_t)cpu.cpu_next_part; 256 mdb_warn("cpu count doesn't match cpupart list"); 262 mdb_warn("cpu count doesn't match cpupart list");
|
/illumos-gate/usr/src/cmd/mdb/intel/ia32/kmdb/ |
H A D | kvm_cpu_p6.c | 105 kmt_p6_destroy(kmt_cpu_t *cpu) argument 109 mdb_free(cpu, sizeof (kmt_cpu_t)); 114 kmt_p6_name(kmt_cpu_t *cpu) argument 135 kmt_p6_step_branch(kmt_cpu_t *cpu, mdb_tgt_t *t) argument 137 kmt_cpu_p6_t *p6 = cpu->kmt_cpu_data; 172 kmt_cpu_t *cpu; local 183 cpu = mdb_zalloc(sizeof (kmt_cpu_t), UM_SLEEP); 184 cpu->kmt_cpu_ops = &kmt_p6_ops; 185 cpu->kmt_cpu_data = &kmt_cpu_p6; 193 return (cpu); [all...] |
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/ |
H A D | kvm_cpu_amd.c | 95 kmt_amd_destroy(kmt_cpu_t *cpu) argument 99 mdb_free(cpu, sizeof (kmt_cpu_t)); 104 kmt_amd_name(kmt_cpu_t *cpu) argument 125 kmt_amd_step_branch(kmt_cpu_t *cpu, mdb_tgt_t *t) argument 127 kmt_cpu_amd_t *amd = cpu->kmt_cpu_data; 184 kmt_cpu_t *cpu; local 199 cpu = mdb_zalloc(sizeof (kmt_cpu_t), UM_SLEEP); 200 cpu->kmt_cpu_ops = &kmt_amd_ops; 201 cpu->kmt_cpu_data = &kmt_cpu_amd; 212 return (cpu); [all...] |
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | fixup_tdescs.c | 187 * The cpu structure grows, with the addition of a machcpu member, if 188 * _MACHDEP is defined. This means that, for example, the cpu structure 189 * in unix is different from the cpu structure in genunix. As one might 200 tdesc_t *cput, *cpu; local 207 * We're going to take the circuitous route finding the cpu structure, 215 cpu = cput->t_tdesc; 217 cpu = lookup_tdesc(td, "cpu"); 220 if (cpu == NULL) 223 if (!streq(cpu [all...] |
/illumos-gate/usr/src/uts/i86pc/cpu/generic_cpu/ |
H A D | gcpu_poll_ntv.c | 138 * Logout errors of the MCA banks of this cpu. 163 * just one cpu perform this task at each cyclic fire. 197 * be preempted so we will stay on cpu for the duration. The disabling 232 * Lookup and hold a handle for this cpu (any hold released in 234 * for this cpu back at cmi_init time then this lookup will return 249 gcpu_ntv_mca_poll_offline(void *arg, cpu_t *cpu, void *cyh_arg) argument 275 * gcpu_mca_poll_init is called from gcpu_mca_init for each cpu handle
|