Home
last modified time | relevance | path

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

12

/Linux-v5.4/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-v5.4/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-v5.4/kernel/
Dpadata.c40 int cpu, target_cpu; in padata_index_to_cpu() local
42 target_cpu = cpumask_first(pd->cpumask.pcpu); in padata_index_to_cpu()
44 target_cpu = cpumask_next(target_cpu, pd->cpumask.pcpu); in padata_index_to_cpu()
46 return target_cpu; in padata_index_to_cpu()
104 int i, cpu, cpu_index, target_cpu, err; in padata_do_parallel() local
143 target_cpu = padata_cpu_hash(pd, padata->seq_nr); in padata_do_parallel()
144 padata->cpu = target_cpu; in padata_do_parallel()
145 queue = per_cpu_ptr(pd->pqueue, target_cpu); in padata_do_parallel()
/Linux-v5.4/drivers/hv/
Dchannel_mgmt.c382 if (channel->target_cpu != get_cpu()) { in hv_process_channel_removal()
384 smp_call_function_single(channel->target_cpu, in hv_process_channel_removal()
407 cpumask_clear_cpu(channel->target_cpu, in hv_process_channel_removal()
450 if (newchannel->target_cpu != get_cpu()) { in vmbus_add_channel_work()
452 smp_call_function_single(newchannel->target_cpu, in vmbus_add_channel_work()
528 if (newchannel->target_cpu != get_cpu()) { in vmbus_add_channel_work()
530 smp_call_function_single(newchannel->target_cpu, in vmbus_add_channel_work()
672 channel->target_cpu = 0; in init_vp_index()
758 channel->target_cpu = cur_cpu; in init_vp_index()
Dhyperv_vmbus.h372 if (in_interrupt() && (channel->target_cpu == smp_processor_id())) { in hv_poll_channel()
376 smp_call_function_single(channel->target_cpu, cb, channel, true); in hv_poll_channel()
Dhv.c260 if (channel->target_cpu == cpu) { in hv_synic_cleanup()
266 if (sc->target_cpu == cpu) { in hv_synic_cleanup()
Dchannel.c97 page = alloc_pages_node(cpu_to_node(newchannel->target_cpu), in vmbus_alloc_ring()
618 if (channel->target_cpu != get_cpu()) { in vmbus_reset_channel_cb()
620 smp_call_function_single(channel->target_cpu, reset_channel_cb, in vmbus_reset_channel_cb()
Dvmbus_drv.c501 channel->offermsg.child_relid, channel->target_cpu); in channel_vp_mapping_show()
514 cur_sc->target_cpu); in channel_vp_mapping_show()
1585 return sprintf(buf, "%u\n", channel->target_cpu); in show_target_cpu()
/Linux-v5.4/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-v5.4/tools/perf/bench/
Dnuma.c263 static cpu_set_t bind_to_cpu(int target_cpu) in bind_to_cpu() argument
273 if (target_cpu == -1) { in bind_to_cpu()
279 BUG_ON(target_cpu < 0 || target_cpu >= g->p.nr_cpus); in bind_to_cpu()
280 CPU_SET(target_cpu, &mask); in bind_to_cpu()
1212 int target_cpu; in worker_thread() local
1224 target_cpu = g->p.nr_cpus-1; in worker_thread()
1226 target_cpu = 0; in worker_thread()
1228 orig_mask = bind_to_cpu(target_cpu); in worker_thread()
1232 printf(" (injecting perturbalance, moved to CPU#%d)\n", target_cpu); in worker_thread()
/Linux-v5.4/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
214 if (curr_cpu == target_cpu) in iproc_msi_irq_set_affinity()
218 data->hwirq = hwirq_to_canonical_hwirq(msi, data->hwirq) + target_cpu; in iproc_msi_irq_set_affinity()
/Linux-v5.4/include/trace/events/
Dsched.h68 __field( int, target_cpu )
76 __entry->target_cpu = task_cpu(p);
81 __entry->target_cpu)
/Linux-v5.4/drivers/scsi/
Dstorvsc_drv.c652 stor_device->stor_chns[new_sc->target_cpu] = new_sc; in handle_sc_creation()
653 cpumask_set_cpu(new_sc->target_cpu, &stor_device->alloced_cpus); in handle_sc_creation()
879 stor_device->stor_chns[device->channel->target_cpu] = device->channel; in storvsc_channel_init()
880 cpumask_set_cpu(device->channel->target_cpu, in storvsc_channel_init()
1315 if (outgoing_channel->target_cpu == q_num) { in storvsc_do_io()
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-debugfs.c95 fq->target_cpu, in dpaa2_dbg_fqs_show()
Ddpaa2-eth.h308 int target_cpu; member
Ddpaa2-eth.c1963 cpumask_set_cpu(fq->target_cpu, &xps_mask); in update_xps()
2306 fq->target_cpu = rx_cpu; in set_fq_affinity()
2312 fq->target_cpu = txc_cpu; in set_fq_affinity()
2320 fq->channel = get_affine_channel(priv, fq->target_cpu); in set_fq_affinity()
/Linux-v5.4/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-v5.4/tools/lib/traceevent/Documentation/
Dlibtraceevent-filter.txt118 ret = tep_filter_add_filter_str(filter, "sched/sched_wakeup:target_cpu==1");
/Linux-v5.4/kernel/sched/
Dcore.c1839 int target_cpu, int curr_cpu) in migrate_swap() argument
1848 .dst_cpu = target_cpu, in migrate_swap()
6125 int migrate_task_to(struct task_struct *p, int target_cpu) in migrate_task_to() argument
6127 struct migration_arg arg = { p, target_cpu }; in migrate_task_to()
6130 if (curr_cpu == target_cpu) in migrate_task_to()
6133 if (!cpumask_test_cpu(target_cpu, p->cpus_ptr)) in migrate_task_to()
6138 trace_sched_move_numa(p, curr_cpu, target_cpu); in migrate_task_to()
/Linux-v5.4/Documentation/trace/
Dhistogram.rst2132 …<idle>-0 [005] d.h3 309.873611: sched_waking: comm=cyclictest pid=2102 prio=19 target_cpu=005
2133 …<idle>-0 [005] dNh4 309.873613: sched_wakeup: comm=cyclictest pid=2102 prio=19 target_cpu=005
2136 …<idle>-0 [005] d.h3 309.874624: sched_waking: comm=cyclictest pid=2102 prio=19 target_cpu=005
2137 …<idle>-0 [005] dNh4 309.874626: sched_wakeup: comm=cyclictest pid=2102 prio=19 target_cpu=005
2138 …<idle>-0 [005] dNh3 309.874628: sched_waking: comm=cyclictest pid=2103 prio=19 target_cpu=005
2139 …<idle>-0 [005] dNh4 309.874630: sched_wakeup: comm=cyclictest pid=2103 prio=19 target_cpu=005
2141 …-0 [004] d.h3 309.874757: sched_waking: comm=gnome-terminal- pid=1699 prio=120 target_cpu=004
2142 …-0 [004] dNh4 309.874762: sched_wakeup: comm=gnome-terminal- pid=1699 prio=120 target_cpu=004
2145 … <idle>-0 [003] d.s4 309.874956: sched_waking: comm=rcu_sched pid=9 prio=120 target_cpu=007
2147 … <idle>-0 [003] d.s5 309.874961: sched_wakeup: comm=rcu_sched pid=9 prio=120 target_cpu=007
Dftrace.rst2097 <idle>-0 2d.h4 1us : sched_wakeup: comm=sleep pid=5882 prio=94 success=1 target_cpu=002
3369 …8 [000] d..4 136.676759: sched_wakeup: comm=kworker/0:1 pid=59 prio=120 success=1 target_cpu=000
3370 …h-1998 [000] dN.4 136.676760: sched_wakeup: comm=bash pid=1998 prio=120 success=1 target_cpu=000
3371 … [003] d.h3 136.676906: sched_wakeup: comm=rcu_preempt pid=9 prio=120 success=1 target_cpu=003
3374 …8 [000] d..4 136.677014: sched_wakeup: comm=kworker/0:1 pid=59 prio=120 success=1 target_cpu=000
3375 …h-1998 [000] dN.4 136.677016: sched_wakeup: comm=bash pid=1998 prio=120 success=1 target_cpu=000
3377 …1-59 [000] d..4 136.677022: sched_wakeup: comm=sshd pid=1995 prio=120 success=1 target_cpu=001
/Linux-v5.4/include/linux/
Dhyperv.h800 u32 target_cpu; member
/Linux-v5.4/drivers/net/hyperv/
Dnetvsc.c284 int node = cpu_to_node(nvchan->channel->target_cpu); in netvsc_alloc_recv_comp_ring()

12