Home
last modified time | relevance | path

Searched full:cpu_id (Results 1 – 25 of 91) sorted by relevance

1234

/freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DPerfContextSwitchDecoder.cpp147 lldb::cpu_id_t cpu_id, lldb::tid_t tid, lldb::pid_t pid, uint64_t start, in CreateCompleteExecution() argument
149 ThreadContinuousExecution o(cpu_id, tid, pid); in CreateCompleteExecution()
157 lldb::cpu_id_t cpu_id, lldb::tid_t tid, lldb::pid_t pid, in CreateHintedStartExecution() argument
159 ThreadContinuousExecution o(cpu_id, tid, pid); in CreateHintedStartExecution()
167 lldb::cpu_id_t cpu_id, lldb::tid_t tid, lldb::pid_t pid, uint64_t start, in CreateHintedEndExecution() argument
169 ThreadContinuousExecution o(cpu_id, tid, pid); in CreateHintedEndExecution()
177 lldb::cpu_id_t cpu_id, lldb::tid_t tid, lldb::pid_t pid, uint64_t end) { in CreateOnlyEndExecution() argument
178 ThreadContinuousExecution o(cpu_id, tid, pid); in CreateOnlyEndExecution()
185 lldb::cpu_id_t cpu_id, lldb::tid_t tid, lldb::pid_t pid, uint64_t start) { in CreateOnlyStartExecution() argument
186 ThreadContinuousExecution o(cpu_id, tid, pid); in CreateOnlyStartExecution()
[all …]
H A DPerfContextSwitchDecoder.h64 CreateCompleteExecution(lldb::cpu_id_t cpu_id, lldb::tid_t tid,
68 CreateHintedStartExecution(lldb::cpu_id_t cpu_id, lldb::tid_t tid,
73 CreateHintedEndExecution(lldb::cpu_id_t cpu_id, lldb::tid_t tid,
77 static ThreadContinuousExecution CreateOnlyEndExecution(lldb::cpu_id_t cpu_id,
83 CreateOnlyStartExecution(lldb::cpu_id_t cpu_id, lldb::tid_t tid,
110 lldb::cpu_id_t cpu_id; member
117 ThreadContinuousExecution(lldb::cpu_id_t cpu_id, lldb::tid_t tid, in ThreadContinuousExecution()
119 : cpu_id(cpu_id), tid(tid), pid(pid) {} in ThreadContinuousExecution()
127 /// \param[i] cpu_id
128 /// The cpu_id where the trace were gotten from.
[all …]
H A DTraceIntelPTBundleSaver.cpp138 WriteContextSwitchTrace(TraceIntelPT &trace_ipt, lldb::cpu_id_t cpu_id, in WriteContextSwitchTrace() argument
141 output_context_switch_trace.AppendPathComponent(std::to_string(cpu_id) + in WriteContextSwitchTrace()
147 cpu_id, IntelPTDataKinds::kPerfContextSwitchTrace, in WriteContextSwitchTrace()
178 lldb::cpu_id_t cpu_id, in WriteIntelPTTrace() argument
181 output_trace.AppendPathComponent(std::to_string(cpu_id) + ".intelpt_trace"); in WriteIntelPTTrace()
184 cpu_id, IntelPTDataKinds::kIptTrace, in WriteIntelPTTrace()
203 for (lldb::cpu_id_t cpu_id : trace_ipt.GetTracedCpus()) { in BuildCpusSection() local
205 json_cpu.id = cpu_id; in BuildCpusSection()
207 WriteContextSwitchTrace(trace_ipt, cpu_id, cpus_dir, compact); in BuildCpusSection()
216 WriteIntelPTTrace(trace_ipt, cpu_id, cpus_dir)) in BuildCpusSection()
H A DTraceIntelPTMultiCpuDecoder.cpp94 cpu_id_t cpu_id) { in GetPSBBlocksForCPU() argument
97 cpu_id, IntelPTDataKinds::kIptTrace, in GetPSBBlocksForCPU()
127 for (cpu_id_t cpu_id : trace_sp->GetTracedCpus()) { in DoCorrelateContextSwitchesAndIntelPtTraces() local
129 GetPSBBlocksForCPU(*trace_sp, cpu_id); in DoCorrelateContextSwitchesAndIntelPtTraces()
154 cpu_id, IntelPTDataKinds::kPerfContextSwitchTrace, in DoCorrelateContextSwitchesAndIntelPtTraces()
157 DecodePerfContextSwitchTrace(data, cpu_id, tsc_conversion); in DoCorrelateContextSwitchesAndIntelPtTraces()
H A DDecodedThread.cpp147 void DecodedThread::NotifyCPU(lldb::cpu_id_t cpu_id) { in NotifyCPU()
148 if (!m_last_cpu || *m_last_cpu != cpu_id) { in NotifyCPU()
149 m_cpus.emplace(GetItemsCount(), cpu_id); in NotifyCPU()
150 m_last_cpu = cpu_id; in NotifyCPU()
145 NotifyCPU(lldb::cpu_id_t cpu_id) NotifyCPU() argument
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DTrace.cpp193 std::optional<uint64_t> Trace::GetLiveCpuBinaryDataSize(lldb::cpu_id_t cpu_id, in GetLiveCpuBinaryDataSize() argument
196 return Lookup(storage.live_cpu_data_sizes, cpu_id, ConstString(kind)); in GetLiveCpuBinaryDataSize()
213 request.kind, request.tid, request.cpu_id)); in GetLiveTraceBinaryData()
227 request.cpu_id)); in GetLiveTraceBinaryData()
242 /*cpu_id=*/std::nullopt}; in GetLiveThreadBinaryData()
247 Trace::GetLiveCpuBinaryData(lldb::cpu_id_t cpu_id, llvm::StringRef kind) { in GetLiveCpuBinaryData() argument
252 std::optional<uint64_t> size = GetLiveCpuBinaryDataSize(cpu_id, kind); in GetLiveCpuBinaryData()
256 "Tracing data \"%s\" is not available for cpu_id %" PRIu64 ".", in GetLiveCpuBinaryData()
257 kind.data(), cpu_id); in GetLiveCpuBinaryData()
260 /*tid=*/std::nullopt, cpu_id}; in GetLiveCpuBinaryData()
[all …]
/freebsd/sys/x86/x86/
H A Dcpu_machdep.c305 cpu_est_clockrate(int cpu_id, uint64_t *rate) in cpu_est_clockrate() argument
311 if (pcpu_find(cpu_id) == NULL || rate == NULL) in cpu_est_clockrate()
329 sched_bind(curthread, cpu_id); in cpu_est_clockrate()
816 CPUID_TO_FAMILY(cpu_id) == 0x17 && CPUID_TO_MODEL(cpu_id) == 0x1) { in cpu_idle_tun()
824 CPUID_TO_FAMILY(cpu_id) == 0x6 && CPUID_TO_MODEL(cpu_id) == 0x5c) { in cpu_idle_tun()
1197 } else if (CPUID_TO_FAMILY(cpu_id) == 0x6 && in hw_mds_recalculate()
1198 (CPUID_TO_MODEL(cpu_id) == 0x2e || CPUID_TO_MODEL(cpu_id) == 0x1e || in hw_mds_recalculate()
1199 CPUID_TO_MODEL(cpu_id) == 0x1f || CPUID_TO_MODEL(cpu_id) == 0x1a || in hw_mds_recalculate()
1200 CPUID_TO_MODEL(cpu_id) == 0x2f || CPUID_TO_MODEL(cpu_id) == 0x25 || in hw_mds_recalculate()
1201 CPUID_TO_MODEL(cpu_id) == 0x2c || CPUID_TO_MODEL(cpu_id) == 0x2d || in hw_mds_recalculate()
[all …]
H A Didentcpu.c106 u_int cpu_id; /* Stepping ID */ variable
273 if ((cpu_id & 0xf00) > 0x300) { in printcpuinfo()
278 switch (cpu_id & 0x3000) { in printcpuinfo()
287 switch (cpu_id & 0xf00) { in printcpuinfo()
291 switch (cpu_id & 0xf0) { in printcpuinfo()
320 switch (cpu_id & 0xf0) { in printcpuinfo()
357 switch (cpu_id & 0xf0) { in printcpuinfo()
418 switch (cpu_id & 0xFF0) { in printcpuinfo()
472 if ((cpu_id & 0xf00) == 0xf00) in printcpuinfo()
481 switch (cpu_id & 0xff0) { in printcpuinfo()
[all …]
H A Dtsc.c292 switch (cpu_id & 0xFF0) { in probe_tsc_freq_early()
300 switch (cpu_id & 0xff0) { in probe_tsc_freq_early()
313 switch (cpu_id & 0xff0) { in probe_tsc_freq_early()
315 if ((cpu_id & CPUID_STEPPING) == 0) { in probe_tsc_freq_early()
330 CPUID_TO_FAMILY(cpu_id) >= 0x10)) in probe_tsc_freq_early()
340 ((CPUID_TO_FAMILY(cpu_id) == 0x6 && in probe_tsc_freq_early()
341 CPUID_TO_MODEL(cpu_id) >= 0xe) || in probe_tsc_freq_early()
342 (CPUID_TO_FAMILY(cpu_id) == 0xf && in probe_tsc_freq_early()
343 CPUID_TO_MODEL(cpu_id) >= 0x3)))) in probe_tsc_freq_early()
352 CPUID_TO_FAMILY(cpu_id) == 0x6 && in probe_tsc_freq_early()
[all …]
H A Dmca.c212 if (CPUID_TO_FAMILY(cpu_id) >= 0x10 && CPUID_TO_FAMILY(cpu_id) <= 0x16) in amd_thresholding_supported()
214 if (CPUID_TO_FAMILY(cpu_id) >= 0x17) in amd_thresholding_supported()
411 CPUID_TO_FAMILY(cpu_id) == 0x6 && in mca_mute()
412 (CPUID_TO_MODEL(cpu_id) == 0x3c || /* HSD131, HSM142, HSW131 */ in mca_mute()
413 CPUID_TO_MODEL(cpu_id) == 0x3d || /* BDM48 */ in mca_mute()
414 CPUID_TO_MODEL(cpu_id) == 0x45 || in mca_mute()
415 CPUID_TO_MODEL(cpu_id) == 0x46) && /* HSM142 */ in mca_mute()
685 rec->mr_cpu_id = cpu_id; in mca_check_status()
1126 CPUID_TO_FAMILY(cpu_id) == 0x10 && amd10h_L1TP) in mca_setup()
1293 if (CPUID_TO_FAMILY(cpu_id) < 0x15 && i >= 5) in amd_thresholding_monitor()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DTraceGDBRemotePackets.cpp122 uint64_t cpu_id; in fromJSON() local
123 if (!(o && o.map("id", cpu_id) && o.map("binaryData", packet.binary_data))) in fromJSON()
125 packet.id = static_cast<lldb::cpu_id_t>(cpu_id); in fromJSON()
141 {"cpuId", packet.cpu_id}}); in toJSON()
147 std::optional<uint64_t> cpu_id; in fromJSON() local
149 o.map("tid", packet.tid) && o.map("cpuId", cpu_id))) in fromJSON()
152 if (cpu_id) in fromJSON()
153 packet.cpu_id = static_cast<lldb::cpu_id_t>(*cpu_id); in fromJSON()
/freebsd/cddl/lib/libdtrace/
H A Dsched.d32 processorid_t cpu_id; /* CPU identifier */ member
42 cpu_id = C->cpu_id;
50 cpu_id = D->disp_cpu == NULL ? -1 :
51 xlate <cpuinfo_t> (D->disp_cpu).cpu_id;
67 inline processorid_t cpu = curcpu->cpu_id;
/freebsd/sys/amd64/amd64/
H A Dinitcpu.c82 if ((CPUID_TO_FAMILY(cpu_id) == 0xf || in init_amd()
83 CPUID_TO_FAMILY(cpu_id) == 0x10) && (cpu_feature2 & CPUID2_HV) == 0) in init_amd()
100 switch (CPUID_TO_FAMILY(cpu_id)) { in init_amd()
114 if (CPUID_TO_FAMILY(cpu_id) == 0x10) { in init_amd()
128 if (CPUID_TO_FAMILY(cpu_id) == 0x10) { in init_amd()
142 if (CPUID_TO_FAMILY(cpu_id) == 0x16 && CPUID_TO_MODEL(cpu_id) <= 0xf) { in init_amd()
151 if (CPUID_TO_FAMILY(cpu_id) == 0x17 && CPUID_TO_MODEL(cpu_id) == 0x1 && in init_amd()
191 if (CPUID_TO_FAMILY(cpu_id) == 0x17 || in init_amd()
192 CPUID_TO_FAMILY(cpu_id) == 0x18) { in init_amd()
/freebsd/sys/i386/i386/
H A Dinitcpu.c412 if (CPUID_TO_MODEL(cpu_id) >= 8) in init_winchip()
574 if (CPUID_TO_MODEL(cpu_id) <= 9) in init_via()
674 if (((cpu_id & 0x0f0) > 0) && in initializecpu()
675 ((cpu_id & 0x0f0) < 0x60) && in initializecpu()
676 ((cpu_id & 0x00f) > 3)) in initializecpu()
678 else if (((cpu_id & 0x0f0) > 0x80) || in initializecpu()
679 (((cpu_id & 0x0f0) == 0x80) && in initializecpu()
680 (cpu_id & 0x00f) > 0x07)) in initializecpu()
682 else if ((cpu_id & 0x0f0) > 0x50) in initializecpu()
685 if ((cpu_id & 0xf0) == 0xa0) in initializecpu()
[all …]
H A Dk6_mem.c181 if ((cpu_id & 0xf00) != 0x500) in k6_mem_drvinit()
183 if ((cpu_id & 0xf0) < 0x80 || in k6_mem_drvinit()
184 ((cpu_id & 0xf0) == 0x80 && (cpu_id & 0xf) <= 0x7)) in k6_mem_drvinit()
/freebsd/sys/dev/liquidio/
H A Dlio_core.c412 static int cpu_id, cpu_id_modulus; in lio_setup_io_queues() local
424 cpu_id = 0; in lio_setup_io_queues()
447 droq->cpu_id = cpu_id; in lio_setup_io_queues()
448 cpu_id++; in lio_setup_io_queues()
449 if (cpu_id >= cpu_id_modulus) in lio_setup_io_queues()
450 cpu_id = 0; in lio_setup_io_queues()
552 int cpu_id, err, i; in lio_setup_interrupt() local
612 cpu_id = rss_getcpu(i % rss_getnumbuckets()); in lio_setup_interrupt()
614 cpu_id = i % mp_ncpus; in lio_setup_interrupt()
616 CPU_SETOF(cpu_id, &ioq_vector->affinity_mask); in lio_setup_interrupt()
[all …]
/freebsd/sys/powerpc/ps3/
H A Dps3-hvcall.master57 HVCALL 11 lv1_configure_irq_state_bitmap ppe_id,cpu_id,bitmap_addr
58 HVCALL 12 lv1_connect_irq_plug_ext ppe_id,cpu_id,virq,outlet,zero
61 HVCALL 17 lv1_disconnect_irq_plug_ext ppe_id,cpu_id,virq
68 HVCALL 30 lv1_end_of_interrupt_ext ppe_id,cpu_id,virq
69 HVCALL 31 lv1_did_update_interrupt_mask ppe_id,cpu_id
H A Dps3-hvcall.h56 int lv1_configure_irq_state_bitmap(uint64_t ppe_id, uint64_t cpu_id, uint64_t bitmap_addr);
57 int lv1_connect_irq_plug_ext(uint64_t ppe_id, uint64_t cpu_id, uint64_t virq, uint64_t outlet, uint…
60 int lv1_disconnect_irq_plug_ext(uint64_t ppe_id, uint64_t cpu_id, uint64_t virq);
67 int lv1_end_of_interrupt_ext(uint64_t ppe_id, uint64_t cpu_id, uint64_t virq);
68 int lv1_did_update_interrupt_mask(uint64_t ppe_id, uint64_t cpu_id);
/freebsd/tools/tools/ncpus/
H A Dacpidump.h60 u_char cpu_id; member
94 u_char cpu_id; member
112 u_char cpu_id; member
125 u_char cpu_id; member
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/buffering/
H A Dtst.ring3.d48 * anyway.) Thirdly: we rely on t_cpu/cpu_id. Finally: we rely on being
65 cpuid = curthread->t_cpu->cpu_id;
69 /curthread->t_cpu->cpu_id == cpuid && n < 100/
/freebsd/sys/dev/hwpmc/
H A Dhwpmc_intel.c85 PMCDBG1(MDP,INI,0, "intel-initialize cpuid=0x%x", cpu_id); in pmc_intel_initialize()
91 family = CPUID_TO_FAMILY(cpu_id); in pmc_intel_initialize()
92 model = CPUID_TO_MODEL(cpu_id); in pmc_intel_initialize()
93 stepping = CPUID_TO_STEPPING(cpu_id); in pmc_intel_initialize()
98 switch (cpu_id & 0xF00) { in pmc_intel_initialize()
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DTrace.h299 /// \param[in] cpu_id
313 llvm::Error OnCpuBinaryDataRead(lldb::cpu_id_t cpu_id, llvm::StringRef kind,
368 llvm::Error OnPostMortemCpuBinaryDataRead(lldb::cpu_id_t cpu_id,
390 /// \param[in] cpu_id
399 llvm::Expected<FileSpec> GetPostMortemCpuDataFile(lldb::cpu_id_t cpu_id,
417 /// \param[in] cpu_id
425 void SetPostMortemCpuDataFile(lldb::cpu_id_t cpu_id, llvm::StringRef kind,
444 /// \param[in] cpu_id
454 GetLiveCpuBinaryData(lldb::cpu_id_t cpu_id, llvm::StringRef kind);
472 std::optional<uint64_t> GetLiveCpuBinaryDataSize(lldb::cpu_id_t cpu_id,
[all...]
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/sched/
H A Dtst.enqueue.d39 /self->one && args[2]->cpu_id >= 0 && args[2]->cpu_id <= `max_cpuid/
/freebsd/lib/libsys/
H A Dmembarrier.240 .Fn membarrier "int cmd" "unsigned flags" "int cpu_id"
101 .Fa cpu_id
/freebsd/sys/arm64/nvidia/tegra210/
H A Dtegra210_coretemp.c58 int cpu_id; member
164 sc->tsens_id = 0x100 + sc->cpu_id; in tegra210_coretemp_ofw_parse()
209 sc->cpu_id = device_get_unit(dev); in tegra210_coretemp_attach()

1234