Searched refs:src_cpu (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/include/trace/events/
H A Dsched.h451 TP_PROTO(struct task_struct *tsk, int src_cpu, int dst_cpu),
453 TP_ARGS(tsk, src_cpu, dst_cpu),
459 __field( int, src_cpu )
469 __entry->src_cpu = src_cpu;
470 __entry->src_nid = cpu_to_node(src_cpu);
475 TP_printk("pid=%d tgid=%d ngid=%d src_cpu=%d src_nid=%d dst_cpu=%d dst_nid=%d",
477 __entry->src_cpu, __entry->src_nid,
486 TP_PROTO(struct task_struct *tsk, int src_cpu, int dst_cpu),
488 TP_ARGS(tsk, src_cpu, dst_cpu)
492 TP_PROTO(struct task_struct *tsk, int src_cpu, int dst_cpu),
494 TP_ARGS(tsk, src_cpu, dst_cpu)
499 TP_PROTO(struct task_struct *src_tsk, int src_cpu,
502 TP_ARGS(src_tsk, src_cpu, dst_tsk, dst_cpu),
508 __field( int, src_cpu )
521 __entry->src_cpu = src_cpu;
522 __entry->src_nid = cpu_to_node(src_cpu);
530 TP_printk("src_pid=%d src_tgid=%d src_ngid=%d src_cpu=%d src_nid=%d dst_pid=%d dst_tgid=%d dst_ngid=%d dst_cpu=%d dst_nid=%d",
532 __entry->src_cpu, __entry->src_nid,
/linux-4.1.27/kernel/sched/
H A Dfair.c1172 int src_cpu, src_nid; member in struct:task_numa_env
1262 struct rq *src_rq = cpu_rq(env->src_cpu); task_numa_compare()
1302 if (!cpumask_test_cpu(env->src_cpu, tsk_cpus_allowed(cur))) task_numa_compare()
1417 .src_cpu = task_cpu(p), task_numa_migrate()
1440 sd = rcu_dereference(per_cpu(sd_numa, env.src_cpu)); task_numa_migrate()
1532 trace_sched_stick_numa(p, env.src_cpu, env.best_cpu);
1538 trace_sched_stick_numa(p, env.src_cpu, task_cpu(env.best_task));
3584 * Ensure that neither of the group entities corresponding to src_cpu or
3589 int src_cpu, int dest_cpu) throttled_lb_pair()
3593 src_cfs_rq = tg->cfs_rq[src_cpu]; throttled_lb_pair()
4143 int src_cpu, int dest_cpu) throttled_lb_pair()
5417 int src_cpu; member in struct:lb_env
5484 src_nid = cpu_to_node(env->src_cpu); migrate_improves_locality()
5521 src_nid = cpu_to_node(env->src_cpu); migrate_degrades_locality()
5577 if (throttled_lb_pair(task_group(p), env->src_cpu, env->dst_cpu)) can_migrate_task()
5590 * meet load balance goals by pulling other tasks on src_cpu. can_migrate_task()
6851 if ((sd->flags & SD_ASYM_PACKING) && env->src_cpu > env->dst_cpu) need_active_balance()
6856 * The dst_cpu is idle and the src_cpu CPU has only 1 CFS task. need_active_balance()
6857 * It's worth migrating the task if the src_cpu's capacity is reduced need_active_balance()
6864 (capacity_of(env->src_cpu)*sd->imbalance_pct < capacity_of(env->dst_cpu)*100)) need_active_balance()
6967 env.src_cpu = busiest->cpu; load_balance()
7013 * Revisit (affine) tasks on src_cpu that couldn't be moved to load_balance()
7016 * iterate on same src_cpu is dependent on number of cpus in our load_balance()
7044 * need to continue with same src_cpu. load_balance()
7352 .src_cpu = busiest_rq->cpu,
3588 throttled_lb_pair(struct task_group *tg, int src_cpu, int dest_cpu) throttled_lb_pair() argument
4142 throttled_lb_pair(struct task_group *tg, int src_cpu, int dest_cpu) throttled_lb_pair() argument
H A Dcore.c1082 int src_cpu, dst_cpu; member in struct:migration_swap_arg
1091 src_rq = cpu_rq(arg->src_cpu); migrate_swap_stop()
1100 if (task_cpu(arg->src_task) != arg->src_cpu) migrate_swap_stop()
1106 if (!cpumask_test_cpu(arg->src_cpu, tsk_cpus_allowed(arg->dst_task))) migrate_swap_stop()
1110 __migrate_swap_task(arg->dst_task, arg->src_cpu); migrate_swap_stop()
1132 .src_cpu = task_cpu(cur), migrate_swap()
1137 if (arg.src_cpu == arg.dst_cpu) migrate_swap()
1144 if (!cpu_active(arg.src_cpu) || !cpu_active(arg.dst_cpu)) migrate_swap()
1150 if (!cpumask_test_cpu(arg.src_cpu, tsk_cpus_allowed(arg.dst_task))) migrate_swap()
1153 trace_sched_swap_numa(cur, arg.src_cpu, p, arg.dst_cpu); migrate_swap()
1154 ret = stop_two_cpus(arg.dst_cpu, arg.src_cpu, migrate_swap_stop, &arg); migrate_swap()
4839 static int __migrate_task(struct task_struct *p, int src_cpu, int dest_cpu) __migrate_task() argument
4847 rq = cpu_rq(src_cpu); __migrate_task()
4852 if (task_cpu(p) != src_cpu) __migrate_task()
/linux-4.1.27/include/linux/
H A Dperf_event.h652 int src_cpu, int dst_cpu);
/linux-4.1.27/kernel/events/
H A Dcore.c8303 void perf_pmu_migrate_context(struct pmu *pmu, int src_cpu, int dst_cpu) perf_pmu_migrate_context() argument
8310 src_ctx = &per_cpu_ptr(pmu->pmu_cpu_context, src_cpu)->ctx; perf_pmu_migrate_context()
8321 unaccount_event_cpu(event, src_cpu); perf_pmu_migrate_context()

Completed in 444 milliseconds