Home
last modified time | relevance | path

Searched refs:cpu (Results 1 – 25 of 486) sorted by relevance

12345678910>>...20

/illumos-gate/usr/src/uts/i86pc/io/apix/
H A Dapix_intr.c102 struct cpu *cpu = CPU; in apix_remove_pending_av() local
110 if (avp->av_vector != NULL && avp->av_prilevel < cpu->cpu_base_spl) { in apix_remove_pending_av()
230 apix_do_softint_prolog(struct cpu *cpu, uint_t pil, uint_t oldpil, in apix_do_softint_prolog() argument
234 struct machcpu *mcpu = &cpu->cpu_m; in apix_do_softint_prolog()
238 ASSERT(pil > mcpu->mcpu_pri && pil > cpu->cpu_base_spl); in apix_do_softint_prolog()
251 it = cpu->cpu_intr_thread; in apix_do_softint_prolog()
253 cpu->cpu_intr_thread = it->t_link; in apix_do_softint_prolog()
256 t = cpu->cpu_thread; in apix_do_softint_prolog()
260 cpu->cpu_intracct[cpu->cpu_mstate] += intrtime; in apix_do_softint_prolog()
284 cpu->cpu_thread = it; in apix_do_softint_prolog()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dintr.c522 struct cpu *cpu = CPU; in set_base_spl() local
523 uint16_t active = (uint16_t)cpu->cpu_intr_actv; in set_base_spl()
525 cpu->cpu_base_spl = active == 0 ? 0 : bsrw_insn(active); in set_base_spl()
539 hilevel_intr_prolog(struct cpu *cpu, uint_t pil, uint_t oldpil, struct regs *rp) in hilevel_intr_prolog() argument
541 struct machcpu *mcpu = &cpu->cpu_m; in hilevel_intr_prolog()
549 cpu->cpu_profile_pil = oldpil; in hilevel_intr_prolog()
551 cpu->cpu_profile_pc = 0; in hilevel_intr_prolog()
552 cpu->cpu_profile_upc = rp->r_pc; in hilevel_intr_prolog()
553 cpu->cpu_cpcprofile_pc = 0; in hilevel_intr_prolog()
554 cpu->cpu_cpcprofile_upc = rp->r_pc; in hilevel_intr_prolog()
[all …]
H A Dmp_startup.c87 struct cpu cpus[1] __aligned(MMU_PAGESIZE);
88 struct cpu *cpu[NCPU] = {&cpus[0]}; variable
89 struct cpu *cpu_free_list;
127 init_cpu_info(struct cpu *cp) in init_cpu_info()
171 init_cpu_syscall(struct cpu *cp) in init_cpu_syscall()
268 init_cpu_id_gdt(struct cpu *cp) in init_cpu_id_gdt()
284 static struct cpu *
287 struct cpu *cp; in mp_cpu_configure_common()
303 ASSERT(cpun < NCPU && cpu[cpun] == NULL); in mp_cpu_configure_common()
494 mp_cpu_unconfigure_common(struct cpu *cp, int error) in mp_cpu_unconfigure_common()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dcyclic.c696 #define CYC_TRACE(cpu, level, why, arg0, arg1) \ argument
697 CYC_TRACE_IMPL(&cpu->cyp_trace[level], level, why, arg0, arg1)
720 #define CYC_TRACE(cpu, level, why, arg0, arg1) argument
725 #define CYC_TRACE0(cpu, level, why) CYC_TRACE(cpu, level, why, 0, 0) argument
726 #define CYC_TRACE1(cpu, level, why, arg0) CYC_TRACE(cpu, level, why, arg0, 0) argument
742 cyclic_upheap(cyc_cpu_t *cpu, cyc_index_t ndx) in cyclic_upheap() argument
752 heap = cpu->cyp_heap; in cyclic_upheap()
753 cyclics = cpu->cyp_cyclics; in cyclic_upheap()
785 cyclic_downheap(cyc_cpu_t *cpu, cyc_index_t ndx) in cyclic_downheap() argument
787 cyclic_t *cyclics = cpu->cyp_cyclics; in cyclic_downheap()
[all …]
H A Dpool_pset.c107 cpu_t *cpu; member
129 cpu_visibility_configure(sa->cpu, zone); in pool_pset_setup_cb()
132 cpu_visibility_unconfigure(sa->cpu, zone); in pool_pset_setup_cb()
135 cpu_visibility_online(sa->cpu, zone); in pool_pset_setup_cb()
138 cpu_visibility_offline(sa->cpu, zone); in pool_pset_setup_cb()
141 cpu_visibility_add(sa->cpu, zone); in pool_pset_setup_cb()
144 cpu_visibility_remove(sa->cpu, zone); in pool_pset_setup_cb()
178 sarg.cpu = c; in pool_pset_cpu_setup()
289 cpu_t *cpu; in pool_pset_disable() local
304 if ((cpu = cpu_get(cpuid)) == NULL) in pool_pset_disable()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/boston/frutree/
H A Dsystem-board.info110 REFNODE cpu-module fru WITH name:/platform/i2c@1f,520000/cpu-fru-prom?UnitAddress=0,b8
111 name:/frutree/chassis/MB/system-board/C0/cpu-module
113 REFPROP _seeprom_source name:/platform/i2c@1f,520000/cpu-fru-prom?UnitAddress=0,b8
115 name:/platform/i2c@1f,520000/cpu-fru-prom?UnitAddress=0,b8
116 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/C0/cpu-module
122 REFNODE cpu-module fru WITH name:/platform/i2c@1f,520000/cpu-fru-prom?UnitAddress=0,c8
123 name:/frutree/chassis/MB/system-board/C1/cpu-module
125 REFPROP _seeprom_source name:/platform/i2c@1f,520000/cpu-fru-prom?UnitAddress=0,c8
127 name:/platform/i2c@1f,520000/cpu-fru-prom?UnitAddress=0,c8
128 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/C1/cpu-module
[all …]
/illumos-gate/usr/src/cmd/fm/dicts/
H A DINTEL.dict29 fault.cpu.intel.internal=1
30 fault.cpu.intel.l0cache=2
31 fault.cpu.intel.l1cache=3
32 fault.cpu.intel.l2cache=4
33 fault.cpu.intel.cache=5
34 fault.cpu.intel.l0dtlb=6
35 fault.cpu.intel.l1dtlb=7
36 fault.cpu.intel.l2dtlb=8
37 fault.cpu.intel.dtlb=9
38 fault.cpu.intel.l0itlb=10
[all …]
H A DGMCA.dict29 fault.cpu.generic-x86.internal=1
30 fault.cpu.generic-x86.l0cache=2
31 fault.cpu.generic-x86.l1cache=3
32 fault.cpu.generic-x86.l2cache=4
33 fault.cpu.generic-x86.cache=5
34 fault.cpu.generic-x86.l0dtlb=6
35 fault.cpu.generic-x86.l1dtlb=7
36 fault.cpu.generic-x86.l2dtlb=8
37 fault.cpu.generic-x86.dtlb=9
38 fault.cpu.generic-x86.l0itlb=10
[all …]
/illumos-gate/usr/src/uts/intel/io/intel_nhm/
H A Dintel_nhm.h50 #define SOCKET_BUS(cpu) (MAX_BUS_NUMBER - (cpu)) argument
51 #define CPU_ID_RD(cpu) nhm_pci_getl(SOCKET_BUS(cpu), 0, 0, 0, 0) argument
52 #define MC_CONTROL_RD(cpu) \ argument
53 nhm_pci_getl(SOCKET_BUS(cpu), 3, 0, 0x48, 0)
54 #define MC_STATUS_RD(cpu) \ argument
55 nhm_pci_getl(SOCKET_BUS(cpu), 3, 0, 0x4c, 0)
56 #define MC_SMI_SPARE_DIMM_ERROR_STATUS_RD(cpu) \ argument
57 nhm_pci_getl(SOCKET_BUS(cpu), 3, 0, 0x50, 0)
58 #define MC_CPU_RAS_RD(cpu) \ argument
59 nhm_pci_getl(SOCKET_BUS(cpu), 3, 2, 0, 0)
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/files/i386/i86pc/
H A Dintel.esc37 event ereport.cpu.intel.leafclass@chip/core/strand { within(t) }
52 * trips. prop statement for ereport.cpu.intel.internal_unclassified is
56 engine serd.cpu.intel.simple@chip/core/strand, N=3, T=72h;
57 event fault.cpu.intel.internal@chip/core/strand,
58 engine=serd.cpu.intel.simple@chip/core/strand;
60 prop fault.cpu.intel.internal@chip/core/strand
62 ereport.cpu.intel.microcode_rom_parity@chip/core/strand,
63 ereport.cpu.intel.internal_timer@chip/core/strand,
64 ereport.cpu.intel.internal_parity@chip/core/strand,
65 ereport.cpu.intel.unclassified@chip/core/strand,
[all …]
H A Damd64.esc122 event ereport.cpu.amd.ic.inf_sys_ecc1@chip/core/strand{within(5s)};
123 event ereport.cpu.amd.dc.inf_sys_ecc1@chip/core/strand{within(5s)};
124 event ereport.cpu.amd.bu.s_ecc1@chip/core/strand{within(5s)};
125 event ereport.cpu.amd.nb.mem_ce@chip/core/strand{within(5s)};
246 ereport.cpu.amd.dc.inf_sys_ecc1@chip/core<>/strand<>,
247 ereport.cpu.amd.bu.s_ecc1@chip/core<>/strand<>,
248 ereport.cpu.amd.nb.mem_ce@chip/core<>/strand<>;
253 ereport.cpu.amd.dc.inf_sys_ecc1@chip/core<>/strand<>,
254 ereport.cpu.amd.bu.s_ecc1@chip/core<>/strand<>,
255 ereport.cpu.amd.nb.mem_ce@chip/core<>/strand<>;
[all …]
/illumos-gate/usr/src/cmd/intrd/
H A Dintrd.pl180 while (my ($cpu, $cpst) = each %{$ks->{cpu}}) {
181 next if !exists($ks->{cpu_info}{$cpu}{"cpu_info$cpu"}{state});
184 my $state = $ks->{cpu_info}{$cpu}{"cpu_info$cpu"}{state};
188 $stat{$cpu}{tot} = ($cpu_sys->{cpu_nsec_idle} +
191 $stat{$cpu}{crtime} = $cpu_sys->{crtime};
192 $stat{$cpu}{ivecs} = {};
216 my $cpu = $intrcfg->{cpu};
218 next unless exists $stat{$cpu};
232 if (exists $stat{$cpu}{ivecs}{$cookie}) {
233 my $cookiestats = $stat{$cpu}{ivecs}{$cookie};
[all …]
/illumos-gate/usr/src/compat/bhyve/sys/
H A Dcpuset.h26 #define CPU_SET(cpu, set) cpuset_add((set), (cpu)) argument
27 #define CPU_SETOF(cpu, set) cpuset_only((set), (cpu)) argument
29 #define CPU_CLR(cpu, set) cpuset_del((set), (cpu)) argument
32 #define CPU_ISSET(cpu, set) cpu_in_set((cpuset_t *)(set), (cpu)) argument
42 #define CPU_SET_ATOMIC(cpu, set) cpuset_atomic_add( \ argument
44 (cpu))
45 #define CPU_CLR_ATOMIC(cpu, set) cpuset_atomic_del( \ argument
47 (cpu))
49 #define CPU_SET_ATOMIC_ACQ(cpu, set) cpuset_atomic_add((set), (cpu)) argument
118 #define CPU_SET(cpu, setp) BT_SET((setp)->_bits, cpu) argument
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dcpuvar.h86 typedef struct cpu { struct
90 struct cpu *cpu_self; /* pointer to itself */ argument
109 struct cpu *cpu_next; /* next existing CPU */ argument
110 struct cpu *cpu_prev; /* prev existing CPU */ argument
111 struct cpu *cpu_next_onln; /* next online (enabled) CPU */ argument
112 struct cpu *cpu_prev_onln; /* prev online (enabled) CPU */ argument
113 struct cpu *cpu_next_part; /* next CPU in partition */ argument
114 struct cpu *cpu_prev_part; /* prev CPU in partition */ argument
115 struct cpu *cpu_next_lgrp; /* next CPU in latency group */ argument
116 struct cpu *cpu_prev_lgrp; /* prev CPU in latency group */ argument
[all …]
H A Ddisp.h80 struct cpu *disp_cpu; /* cpu owning this queue or NULL */
136 extern void (*disp_enq_thread)(struct cpu *, int);
142 extern int intr_active(struct cpu *, int);
156 extern struct cpu *disp_lowpri_cpu(struct cpu *, kthread_t *, pri_t);
157 extern int disp_bound_threads(struct cpu *, int);
158 extern int disp_bound_anythreads(struct cpu *, int);
159 extern int disp_bound_partition(struct cpu *, int);
160 extern void disp_cpu_init(struct cpu *);
161 extern void disp_cpu_fini(struct cpu *);
162 extern void disp_cpu_inactive(struct cpu *);
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/cpc/
H A Dtst.allcpus.ksh43 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=$(($cpu+1))
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dcyclic.c41 cyccpu_vread(cyc_cpu_t *cpu, uintptr_t addr) in cyccpu_vread() argument
50 cyccpu_size = (cyc_trace_enabled) ? sizeof (*cpu) : in cyccpu_vread()
54 if (mdb_vread(cpu, cyccpu_size, addr) == -1) in cyccpu_vread()
58 bzero(cpu->cyp_trace, sizeof (cpu->cyp_trace)); in cyccpu_vread()
78 cyc_cpu_t cpu; in cyccpu_walk_step() local
80 if (cyccpu_vread(&cpu, addr) == -1) { in cyccpu_walk_step()
85 return (wsp->walk_callback(addr, &cpu, wsp->walk_cbdata)); in cyccpu_walk_step()
134 cyclic_dump_node(cyc_cpu_t *cpu, cyc_index_t *heap, char **c, size_t w, in cyclic_dump_node() argument
146 if (ndx >= cpu->cyp_nelems) in cyclic_dump_node()
170 if (heap_left >= cpu->cyp_nelems) in cyclic_dump_node()
[all …]
/illumos-gate/usr/src/cmd/pbind/
H A Dpbind.c100 query_out(id_t pid, id_t lwpid, processorid_t cpu) in query_out() argument
113 if (cpu == PBIND_NONE) in query_out()
118 proclwp, pidstr, cpu); in query_out()
125 bind_err(processorid_t cpu, id_t pid, id_t lwpid, int err) in bind_err() argument
129 switch (cpu) { in bind_err()
218 bind_lwp(struct ps_prochandle *Pr, id_t pid, id_t lwpid, processorid_t cpu) in bind_lwp() argument
222 if (pr_processor_bind(Pr, P_LWPID, lwpid, cpu, &old_cpu) < 0) { in bind_lwp()
223 bind_err(cpu, pid, lwpid, errno); in bind_lwp()
229 bind_out(pid, lwpid, old_cpu, cpu); in bind_lwp()
237 do_lwps(id_t pid, const char *range, processorid_t cpu) in do_lwps() argument
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frutree/
H A Dsystem-board.info72 PROP SlotType string r 0 "cpu"
76 PROP SlotType string r 0 "cpu"
84 REFNODE cpu fru WITH name:/platform/SUNW,UltraSPARC-IIIi@0,0
85 name:/frutree/chassis/MB/system-board/P0/cpu
86 REFNODE F0 location WITH name:/frutree/chassis/MB/system-board/P0/cpu
87 name:/frutree/chassis/MB/system-board/P0/cpu/F0
91 name:/frutree/chassis/MB/system-board/P0/cpu
92 REFNODE F1 location WITH name:/frutree/chassis/MB/system-board/P0/cpu
93 name:/frutree/chassis/MB/system-board/P0/cpu/F1
97 name:/frutree/chassis/MB/system-board/P0/cpu
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/chalupa/frutree/
H A Dsystem-board.info87 …REFNODE system-board fru WITH name:/platform/pci@1e,600000/isa@7/i2c@0,320/cpu-fru-prom?UnitAddre…
90 REFPROP _seeprom_source name:/platform/pci@1e,600000/isa@7/i2c@0,320/cpu-fru-prom?UnitAddress=0,be
92 name:/platform/pci@1e,600000/isa@7/i2c@0,320/cpu-fru-prom?UnitAddress=0,be
99 …REFNODE system-board fru WITH name:/platform/pci@1e,600000/isa@7/i2c@0,320/cpu-fru-prom?UnitAddre…
102 REFPROP _seeprom_source name:/platform/pci@1e,600000/isa@7/i2c@0,320/cpu-fru-prom?UnitAddress=0,ce
104 name:/platform/pci@1e,600000/isa@7/i2c@0,320/cpu-fru-prom?UnitAddress=0,ce
111 …REFNODE system-board fru WITH name:/platform/pci@1e,600000/isa@7/i2c@0,320/cpu-fru-prom?UnitAddre…
114 REFPROP _seeprom_source name:/platform/pci@1e,600000/isa@7/i2c@0,320/cpu-fru-prom?UnitAddress=0,de
116 name:/platform/pci@1e,600000/isa@7/i2c@0,320/cpu-fru-prom?UnitAddress=0,de
123 …REFNODE system-board fru WITH name:/platform/pci@1e,600000/isa@7/i2c@0,320/cpu-fru-prom?UnitAddre…
[all …]
/illumos-gate/usr/src/cmd/powertop/common/
H A Dturbo.c117 int cpu; in pt_turbo_snapshot() local
123 for (cpu = 0; cpu < g_ncpus; cpu++) { in pt_turbo_snapshot()
124 turbo_info = &turbo_snapshot[cpu]; in pt_turbo_snapshot()
125 ksp = kstat_lookup(kc, "turbo", g_cpu_table[cpu], NULL); in pt_turbo_snapshot()
128 cpu); in pt_turbo_snapshot()
135 cpu); in pt_turbo_snapshot()
143 "%d\n", cpu); in pt_turbo_snapshot()
156 "%d\n", cpu); in pt_turbo_snapshot()
198 int cpu; in pt_turbo_stat_collect() local
215 for (cpu = 0; cpu < g_ncpus; cpu++) { in pt_turbo_stat_collect()
[all …]
/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_lapic.c64 lapic_set_intr(struct vm *vm, int cpu, int vector, bool level) in lapic_set_intr() argument
69 if (cpu < 0 || cpu >= vm_get_maxcpus(vm)) in lapic_set_intr()
79 vlapic = vm_lapic(vm, cpu); in lapic_set_intr()
81 vcpu_notify_event_type(vm, cpu, notify); in lapic_set_intr()
86 lapic_set_local_intr(struct vm *vm, int cpu, int vector) in lapic_set_local_intr() argument
92 if (cpu < -1 || cpu >= vm_get_maxcpus(vm)) in lapic_set_local_intr()
95 if (cpu == -1) in lapic_set_local_intr()
98 CPU_SETOF(cpu, &dmask); in lapic_set_local_intr()
100 while ((cpu = CPU_FFS(&dmask)) != 0) { in lapic_set_local_intr()
101 cpu--; in lapic_set_local_intr()
[all …]
/illumos-gate/usr/src/cmd/psradm/
H A Dpsradm.c118 psr_set_state(processorid_t cpu, int action, psr_action_t *pac, int mustexist) in psr_set_state() argument
125 old_state = p_online(cpu, P_STATUS); in psr_set_state()
131 cmdname, cpu); in psr_set_state()
139 "add -F option to force change\n", cmdname, cpu); in psr_set_state()
143 old_state = p_online(cpu, force ? action | P_FORCED : action); in psr_set_state()
149 cmdname, cpu); in psr_set_state()
156 (void) printf("processor %d already %s.\n", cpu, in psr_set_state()
162 cpu, pac->p_action, pac->p_state); in psr_set_state()
186 cpu, pac->p_wtmp); in psr_set_state()
198 processorid_t cpu; in do_range() local
[all …]
/illumos-gate/usr/src/uts/sun4v/os/
H A Dintrq.c36 cpu_intrq_register(struct cpu *cpu) in cpu_intrq_register() argument
38 struct machcpu *mcpup = &cpu->cpu_m; in cpu_intrq_register()
44 "failed, error %lu", cpu->cpu_id, ret); in cpu_intrq_register()
49 "failed, error %lu", cpu->cpu_id, ret); in cpu_intrq_register()
54 "failed, error %lu", cpu->cpu_id, ret); in cpu_intrq_register()
59 "configuration failed, error %lu", cpu->cpu_id, ret); in cpu_intrq_register()
63 cpu_intrq_setup(struct cpu *cpu) in cpu_intrq_setup() argument
65 struct machcpu *mcpup = &cpu->cpu_m; in cpu_intrq_setup()
82 cpu->cpu_id); in cpu_intrq_setup()
110 cpu->cpu_id); in cpu_intrq_setup()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/daktari/frutree/
H A Dpiclfrutree.info33 name:/frutree/chassis/system-board/cpu-mem-slot?Label=A/mem-slot?Label=J2900
35 name:/frutree/chassis/system-board/cpu-mem-slot?Label=A/mem-slot?Label=J3100
37 name:/frutree/chassis/system-board/cpu-mem-slot?Label=A/mem-slot?Label=J2901
39 name:/frutree/chassis/system-board/cpu-mem-slot?Label=A/mem-slot?Label=J3101
41 name:/frutree/chassis/system-board/cpu-mem-slot?Label=A/mem-slot?Label=J3000
43 name:/frutree/chassis/system-board/cpu-mem-slot?Label=A/mem-slot?Label=J3200
45 name:/frutree/chassis/system-board/cpu-mem-slot?Label=A/mem-slot?Label=J3001
47 name:/frutree/chassis/system-board/cpu-mem-slot?Label=A/mem-slot?Label=J3201
49 name:/frutree/chassis/system-board/cpu-mem-slot?Label=A/mem-slot?Label=J7900
51 name:/frutree/chassis/system-board/cpu-mem-slot?Label=A/mem-slot?Label=J8100
[all …]

12345678910>>...20