Home
last modified time | relevance | path

Searched refs:target_cpu (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.1.9/tools/testing/selftests/kvm/aarch64/
Dpsci_test.c25 static uint64_t psci_cpu_on(uint64_t target_cpu, uint64_t entry_addr, in psci_cpu_on() argument
30 smccc_hvc(PSCI_0_2_FN64_CPU_ON, target_cpu, entry_addr, context_id, in psci_cpu_on()
117 static void guest_test_cpu_on(uint64_t target_cpu) in guest_test_cpu_on() argument
121 GUEST_ASSERT(!psci_cpu_on(target_cpu, CPU_ON_ENTRY_ADDR, CPU_ON_CONTEXT_ID)); in guest_test_cpu_on()
124 target_state = psci_affinity_info(target_cpu, 0); in guest_test_cpu_on()
/linux-6.1.9/tools/perf/scripts/perl/
Dwakeup-latency.pl55 $comm, $pid, $prio, $success, $target_cpu) = @_;
57 $last_wakeup{$target_cpu}{ts} = nsecs($common_secs, $common_nsecs);
/linux-6.1.9/drivers/hv/
Dchannel_mgmt.c464 hv_clear_allocated_cpu(channel->target_cpu); in hv_process_channel_removal()
707 if (primary->target_cpu == cpu) in hv_cpuself_used()
711 if (sc != chn && sc->target_cpu == cpu) in hv_cpuself_used()
738 u32 target_cpu; in init_vp_index() local
752 channel->target_cpu = VMBUS_CONNECT_CPU; in init_vp_index()
784 target_cpu = cpumask_first(available_mask); in init_vp_index()
785 cpumask_set_cpu(target_cpu, allocated_mask); in init_vp_index()
788 i > ncpu || !hv_cpuself_used(target_cpu, channel)) in init_vp_index()
792 channel->target_cpu = target_cpu; in init_vp_index()
Dvmbus_drv.c242 return sprintf(buf, "%d\n", cpu_to_node(hv_dev->channel->target_cpu)); in numa_node_show()
532 channel->offermsg.child_relid, channel->target_cpu); in channel_vp_mapping_show()
543 cur_sc->target_cpu); in channel_vp_mapping_show()
1760 return sprintf(buf, "%u\n", channel->target_cpu); in target_cpu_show()
1765 u32 target_cpu, origin_cpu; in target_cpu_store() local
1771 if (sscanf(buf, "%uu", &target_cpu) != 1) in target_cpu_store()
1775 if (target_cpu >= nr_cpumask_bits) in target_cpu_store()
1778 if (!cpumask_test_cpu(target_cpu, housekeeping_cpumask(HK_TYPE_MANAGED_IRQ))) in target_cpu_store()
1784 if (!cpu_online(target_cpu)) { in target_cpu_store()
1822 origin_cpu = channel->target_cpu; in target_cpu_store()
[all …]
Dhyperv_vmbus.h427 if (channel->target_cpu == cpu) in hv_is_allocated_cpu()
430 if (sc->target_cpu == cpu) in hv_is_allocated_cpu()
Dhv.c407 if (channel->target_cpu == cpu) { in hv_synic_cleanup()
412 if (sc->target_cpu == cpu) { in hv_synic_cleanup()
Dchannel.c176 page = alloc_pages_node(cpu_to_node(newchannel->target_cpu), in vmbus_alloc_ring()
732 open_msg->target_vp = hv_cpu_number_to_vp_number(newchannel->target_cpu); in __vmbus_open()
/linux-6.1.9/arch/sparc/kernel/
Dsun4d_irq.c487 int target_cpu; in sun4d_init_sbi_irq() local
489 target_cpu = boot_cpu_id; in sun4d_init_sbi_irq()
495 set_sbi_tid(devid, target_cpu << 3); in sun4d_init_sbi_irq()
496 board_to_cpu[board] = target_cpu; in sun4d_init_sbi_irq()
/linux-6.1.9/tools/perf/scripts/python/
Dsched-migration.py355 def wake_up(self, headers, comm, pid, success, target_cpu, fork): argument
359 ts.wake_up(self.timeslices, pid, target_cpu, fork)
433 target_cpu): argument
436 parser.wake_up(headers, comm, pid, success, target_cpu, 1)
441 target_cpu): argument
444 parser.wake_up(headers, comm, pid, success, target_cpu, 0)
/linux-6.1.9/drivers/irqchip/
Dirq-apple-aic.c238 u32 target_cpu; member
255 .target_cpu = AIC_TARGET_CPU,
262 .target_cpu = AIC_TARGET_CPU,
405 BUG_ON(!ic->info.target_cpu); in aic_irq_set_affinity()
412 aic_ic_write(ic, ic->info.target_cpu + AIC_HWIRQ_IRQ(hwirq) * 4, BIT(cpu)); in aic_irq_set_affinity()
1084 off = start_off = irqc->info.target_cpu; in aic_of_ic_init()
1158 if (irqc->info.target_cpu) in aic_of_ic_init()
1160 aic_ic_write(irqc, irqc->info.target_cpu + off + i * 4, 1); in aic_of_ic_init()
/linux-6.1.9/drivers/pci/controller/
Dpci-xgene-msi.c175 int target_cpu = cpumask_first(mask); in xgene_msi_set_affinity() local
179 if (curr_cpu == target_cpu) in xgene_msi_set_affinity()
183 irqdata->hwirq = hwirq_to_canonical_hwirq(irqdata->hwirq) + target_cpu; in xgene_msi_set_affinity()
Dpcie-iproc-msi.c210 int target_cpu = cpumask_first(mask); in iproc_msi_irq_set_affinity() local
215 if (curr_cpu == target_cpu) in iproc_msi_irq_set_affinity()
219 data->hwirq = hwirq_to_canonical_hwirq(msi, data->hwirq) + target_cpu; in iproc_msi_irq_set_affinity()
223 irq_data_update_effective_affinity(data, cpumask_of(target_cpu)); in iproc_msi_irq_set_affinity()
/linux-6.1.9/tools/perf/bench/
Dnuma.c270 static cpu_set_t *bind_to_cpu(int target_cpu) in bind_to_cpu() argument
290 if (target_cpu == -1) { in bind_to_cpu()
296 if (target_cpu < 0 || target_cpu >= g->p.nr_cpus) in bind_to_cpu()
299 CPU_SET_S(target_cpu, size, mask); in bind_to_cpu()
1278 int target_cpu; in worker_thread() local
1290 target_cpu = g->p.nr_cpus-1; in worker_thread()
1292 target_cpu = 0; in worker_thread()
1294 orig_mask = bind_to_cpu(target_cpu); in worker_thread()
1298 printf(" (injecting perturbalance, moved to CPU#%d)\n", target_cpu); in worker_thread()
/linux-6.1.9/arch/powerpc/platforms/pseries/
Dmobility.c500 static void prod_single(unsigned int target_cpu) in prod_single() argument
505 hwid = get_hard_smp_processor_id(target_cpu); in prod_single()
510 target_cpu, hwid, hvrc); in prod_single()
/linux-6.1.9/kernel/
Dpadata.c52 int cpu, target_cpu; in padata_index_to_cpu() local
54 target_cpu = cpumask_first(pd->cpumask.pcpu); in padata_index_to_cpu()
56 target_cpu = cpumask_next(target_cpu, pd->cpumask.pcpu); in padata_index_to_cpu()
58 return target_cpu; in padata_index_to_cpu()
/linux-6.1.9/drivers/scsi/
Dstorvsc_drv.c617 if (device->channel != channel && device->channel->target_cpu == old) { in storvsc_change_target_cpu()
625 if (cur_chn->target_cpu == old) { in storvsc_change_target_cpu()
700 stor_device->stor_chns[new_sc->target_cpu] = new_sc; in handle_sc_creation()
701 cpumask_set_cpu(new_sc->target_cpu, &stor_device->alloced_cpus); in handle_sc_creation()
926 stor_device->stor_chns[device->channel->target_cpu] = device->channel; in storvsc_channel_init()
927 cpumask_set_cpu(device->channel->target_cpu, in storvsc_channel_init()
1433 if (outgoing_channel->target_cpu == q_num) { in storvsc_do_io()
/linux-6.1.9/include/trace/events/
Dsched.h151 __field( int, target_cpu )
158 __entry->target_cpu = task_cpu(p);
163 __entry->target_cpu)
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-debugfs.c82 fq->target_cpu, in dpaa2_dbg_fqs_show()
Ddpaa2-eth.h436 int target_cpu; member
/linux-6.1.9/tools/perf/Documentation/
Dperf-script-perl.txt71 field:int target_cpu;
81 $comm, $pid, $prio, $success, $target_cpu) = @_;
Dperf-script-python.txt465 field:int target_cpu;
473 comm, pid, prio, success, target_cpu):
/linux-6.1.9/tools/lib/traceevent/Documentation/
Dlibtraceevent-filter.txt118 ret = tep_filter_add_filter_str(filter, "sched/sched_wakeup:target_cpu==1");
/linux-6.1.9/Documentation/trace/
Dhistogram.rst2245 …<idle>-0 [005] d.h3 309.873611: sched_waking: comm=cyclictest pid=2102 prio=19 target_cpu=005
2246 …<idle>-0 [005] dNh4 309.873613: sched_wakeup: comm=cyclictest pid=2102 prio=19 target_cpu=005
2249 …<idle>-0 [005] d.h3 309.874624: sched_waking: comm=cyclictest pid=2102 prio=19 target_cpu=005
2250 …<idle>-0 [005] dNh4 309.874626: sched_wakeup: comm=cyclictest pid=2102 prio=19 target_cpu=005
2251 …<idle>-0 [005] dNh3 309.874628: sched_waking: comm=cyclictest pid=2103 prio=19 target_cpu=005
2252 …<idle>-0 [005] dNh4 309.874630: sched_wakeup: comm=cyclictest pid=2103 prio=19 target_cpu=005
2254 …-0 [004] d.h3 309.874757: sched_waking: comm=gnome-terminal- pid=1699 prio=120 target_cpu=004
2255 …-0 [004] dNh4 309.874762: sched_wakeup: comm=gnome-terminal- pid=1699 prio=120 target_cpu=004
2258 … <idle>-0 [003] d.s4 309.874956: sched_waking: comm=rcu_sched pid=9 prio=120 target_cpu=007
2260 … <idle>-0 [003] d.s5 309.874961: sched_wakeup: comm=rcu_sched pid=9 prio=120 target_cpu=007
/linux-6.1.9/kernel/sched/
Dcore.c3241 int target_cpu, int curr_cpu) in migrate_swap() argument
3250 .dst_cpu = target_cpu, in migrate_swap()
9111 int migrate_task_to(struct task_struct *p, int target_cpu) in migrate_task_to() argument
9113 struct migration_arg arg = { p, target_cpu }; in migrate_task_to()
9116 if (curr_cpu == target_cpu) in migrate_task_to()
9119 if (!cpumask_test_cpu(target_cpu, p->cpus_ptr)) in migrate_task_to()
9124 trace_sched_move_numa(p, curr_cpu, target_cpu); in migrate_task_to()
/linux-6.1.9/include/linux/
Dhyperv.h907 u32 target_cpu; member

12