Searched refs:on_cpu (Results 1 - 25 of 25) sorted by relevance

/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_raw_tp_test_run.c9 __u32 on_cpu = 0xffffffff; variable
17 on_cpu = bpf_get_smp_processor_id();
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Draw_tp_test_run.c43 ASSERT_EQ(skel->data->on_cpu, 0xffffffff, "check_on_cpu");
65 ASSERT_EQ(skel->data->on_cpu, i, "check_on_cpu");
/linux-master/drivers/perf/hisilicon/
H A Dhisi_uncore_pmu.c61 return sysfs_emit(buf, "%d\n", hisi_pmu->on_cpu);
218 if (hisi_pmu->on_cpu == -1)
232 event->cpu = hisi_pmu->on_cpu;
490 if (hisi_pmu->on_cpu != -1)
494 hisi_pmu->on_cpu = cpu;
514 if (hisi_pmu->on_cpu != cpu)
518 hisi_pmu->on_cpu = -1;
529 hisi_pmu->on_cpu = target;
H A Dhisi_pcie_pmu.c76 int on_cpu; member in struct:hisi_pcie_pmu
135 return cpumap_print_to_pagebuf(true, buf, cpumask_of(pcie_pmu->on_cpu));
388 event->cpu = pcie_pmu->on_cpu;
664 if (pcie_pmu->on_cpu == -1) {
665 pcie_pmu->on_cpu = cpumask_local_spread(0, dev_to_node(&pcie_pmu->pdev->dev));
666 WARN_ON(irq_set_affinity(pcie_pmu->irq, cpumask_of(pcie_pmu->on_cpu)));
680 if (pcie_pmu->on_cpu != cpu)
683 pcie_pmu->on_cpu = -1;
700 pcie_pmu->on_cpu = target;
805 pcie_pmu->on_cpu
[all...]
H A Dhisi_uncore_pmu.h93 int on_cpu; member in struct:hisi_pmu
H A Dhns3_pmu.c308 int on_cpu; member in struct:hns3_pmu
482 return sysfs_emit(buf, "%d\n", hns3_pmu->on_cpu);
1246 event->cpu = hns3_pmu->on_cpu;
1417 hns3_pmu->on_cpu = -1;
1467 if (hns3_pmu->on_cpu == -1) {
1468 hns3_pmu->on_cpu = cpu;
1485 if (hns3_pmu->on_cpu != cpu)
1494 hns3_pmu->on_cpu = target;
H A Dhisi_uncore_cpa_pmu.c295 cpa_pmu->on_cpu = -1;
H A Dhisi_uncore_ddrc_pmu.c481 ddrc_pmu->on_cpu = -1;
H A Dhisi_uncore_pa_pmu.c472 pa_pmu->on_cpu = -1;
H A Dhisi_uncore_sllc_pmu.c417 sllc_pmu->on_cpu = -1;
H A Dhisi_uncore_hha_pmu.c492 hha_pmu->on_cpu = -1;
H A Dhisi_uncore_l3c_pmu.c526 l3c_pmu->on_cpu = -1;
H A Dhisi_uncore_uc_pmu.c510 uc_pmu->on_cpu = -1;
/linux-master/drivers/perf/
H A Ddwc_pcie_pmu.c88 int on_cpu; member in struct:dwc_pcie_pmu
119 return cpumap_print_to_pagebuf(true, buf, cpumask_of(pcie_pmu->on_cpu));
398 event->cpu = pcie_pmu->on_cpu;
633 pcie_pmu->on_cpu = -1;
682 if (pcie_pmu->on_cpu == -1)
683 pcie_pmu->on_cpu = cpumask_local_spread(
699 if (cpu != pcie_pmu->on_cpu)
702 pcie_pmu->on_cpu = -1;
718 pcie_pmu->on_cpu = target;
H A Dcxl_pmu.c106 int on_cpu; member in struct:cxl_pmu_info
504 return cpumap_print_to_pagebuf(true, buf, cpumask_of(info->on_cpu));
591 event->cpu = info->on_cpu;
840 info->on_cpu = -1;
923 if (info->on_cpu != -1)
926 info->on_cpu = cpu;
941 if (info->on_cpu != cpu)
944 info->on_cpu = -1;
952 info->on_cpu = target;
H A Dqcom_l2_pmu.c144 int on_cpu; member in struct:cluster_pmu
498 (cluster->on_cpu != event->group_leader->cpu)) {
536 event->cpu = cluster->on_cpu;
785 if (cluster->on_cpu != -1)
792 cluster->on_cpu = cpu;
815 if (cluster->on_cpu != cpu)
820 cluster->on_cpu = -1;
832 cluster->on_cpu = target;
868 cluster->on_cpu = -1;
H A Darm_smmuv3_pmu.c128 unsigned int on_cpu; member in struct:smmu_pmu
451 event->cpu = smmu_pmu->on_cpu;
537 return cpumap_print_to_pagebuf(true, buf, cpumask_of(smmu_pmu->on_cpu));
671 if (cpu != smmu_pmu->on_cpu)
679 smmu_pmu->on_cpu = target;
938 smmu_pmu->on_cpu = raw_smp_processor_id();
939 WARN_ON(irq_set_affinity(smmu_pmu->irq, cpumask_of(smmu_pmu->on_cpu)));
/linux-master/arch/x86/include/asm/
H A Dunwind.h148 return task != current && task->on_cpu;
/linux-master/drivers/hwtracing/ptt/
H A Dhisi_ptt.h123 * @on_cpu: current tracing cpu
135 int on_cpu; member in struct:hisi_ptt_trace_ctrl
H A Dhisi_ptt.c773 hisi_ptt->trace_ctrl.on_cpu = -1;
1111 hisi_ptt->trace_ctrl.on_cpu = cpu;
1389 src = hisi_ptt->trace_ctrl.on_cpu;
1410 hisi_ptt->trace_ctrl.on_cpu = target;
/linux-master/include/linux/
H A Dsched.h774 int on_cpu; member in struct:task_struct
909 * queueing no longer being serialized by p->on_cpu. However:
913 * smp_mb__after_spinlock(); if (smp_load_acquire(&p->on_cpu) && //true
2169 return READ_ONCE(owner->on_cpu) && !vcpu_is_preempted(task_cpu(owner));
/linux-master/kernel/sched/
H A Dcore.c517 * p->on_cpu <- { 0, 1 }:
524 * CPU to have ->on_cpu = 1 at the same time. ]
2766 * smp_cond_load_acquire(&p->on_cpu, !VAL), and we're in __schedule()
2772 SCHED_WARN_ON(!p->on_cpu);
3860 * When on_rq && !on_cpu the task is preempted, see if
3889 if (WARN_ON_ONCE(p->on_cpu))
3890 smp_cond_load_acquire(&p->on_cpu, !VAL);
4018 * p->on_cpu can be whatever, we've done the dequeue, so
4159 * 1) smp_store_release(X->on_cpu, 0) -- finish_task()
4160 * 2) smp_cond_load_acquire(!X->on_cpu)
[all...]
H A Dsched.h2161 return p->on_cpu;
H A Dfair.c1404 (lockdep_is_held(__rq_lockp(task_rq(p))) && !READ_ONCE(p->on_cpu)));
12319 * This is OK, because current is on_cpu, which avoids it being picked
/linux-master/kernel/rcu/
H A Dtree_nocb.h1621 // The ->on_cpu field is available only in CONFIG_SMP=y, so...
1625 return tsp && task_is_running(tsp) && !tsp->on_cpu ? "!" : "";

Completed in 396 milliseconds