/Linux-v6.6/tools/testing/selftests/bpf/progs/ |
D | test_raw_tp_test_run.c | 9 __u32 on_cpu = 0xffffffff; variable 17 on_cpu = bpf_get_smp_processor_id(); in BPF_PROG()
|
/Linux-v6.6/drivers/perf/hisilicon/ |
D | hisi_uncore_pmu.c | 61 return sysfs_emit(buf, "%d\n", hisi_pmu->on_cpu); in hisi_cpumask_sysfs_show() 218 if (hisi_pmu->on_cpu == -1) in hisi_uncore_pmu_event_init() 232 event->cpu = hisi_pmu->on_cpu; in hisi_uncore_pmu_event_init() 490 if (hisi_pmu->on_cpu != -1) in hisi_uncore_pmu_online_cpu() 494 hisi_pmu->on_cpu = cpu; in hisi_uncore_pmu_online_cpu() 514 if (hisi_pmu->on_cpu != cpu) in hisi_uncore_pmu_offline_cpu() 518 hisi_pmu->on_cpu = -1; in hisi_uncore_pmu_offline_cpu() 529 hisi_pmu->on_cpu = target; in hisi_uncore_pmu_offline_cpu()
|
D | hisi_pcie_pmu.c | 76 int on_cpu; member 135 return cpumap_print_to_pagebuf(true, buf, cpumask_of(pcie_pmu->on_cpu)); in cpumask_show() 356 event->cpu = pcie_pmu->on_cpu; in hisi_pcie_pmu_event_init() 667 if (pcie_pmu->on_cpu == -1) { in hisi_pcie_pmu_online_cpu() 668 pcie_pmu->on_cpu = cpumask_local_spread(0, dev_to_node(&pcie_pmu->pdev->dev)); in hisi_pcie_pmu_online_cpu() 669 WARN_ON(irq_set_affinity(pcie_pmu->irq, cpumask_of(pcie_pmu->on_cpu))); in hisi_pcie_pmu_online_cpu() 683 if (pcie_pmu->on_cpu != cpu) in hisi_pcie_pmu_offline_cpu() 686 pcie_pmu->on_cpu = -1; in hisi_pcie_pmu_offline_cpu() 703 pcie_pmu->on_cpu = target; in hisi_pcie_pmu_offline_cpu() 800 pcie_pmu->on_cpu = -1; in hisi_pcie_alloc_pmu()
|
D | hns3_pmu.c | 308 int on_cpu; member 482 return sysfs_emit(buf, "%d\n", hns3_pmu->on_cpu); in cpumask_show() 1246 event->cpu = hns3_pmu->on_cpu; in hns3_pmu_event_init() 1417 hns3_pmu->on_cpu = -1; in hns3_pmu_alloc_pmu() 1467 if (hns3_pmu->on_cpu == -1) { in hns3_pmu_online_cpu() 1468 hns3_pmu->on_cpu = cpu; in hns3_pmu_online_cpu() 1485 if (hns3_pmu->on_cpu != cpu) in hns3_pmu_offline_cpu() 1494 hns3_pmu->on_cpu = target; in hns3_pmu_offline_cpu()
|
D | hisi_uncore_pmu.h | 93 int on_cpu; member
|
D | hisi_uncore_cpa_pmu.c | 295 cpa_pmu->on_cpu = -1; in hisi_cpa_pmu_dev_probe()
|
D | hisi_uncore_ddrc_pmu.c | 481 ddrc_pmu->on_cpu = -1; in hisi_ddrc_pmu_dev_probe()
|
D | hisi_uncore_pa_pmu.c | 472 pa_pmu->on_cpu = -1; in hisi_pa_pmu_dev_probe()
|
D | hisi_uncore_sllc_pmu.c | 417 sllc_pmu->on_cpu = -1; in hisi_sllc_pmu_dev_probe()
|
D | hisi_uncore_uc_pmu.c | 470 uc_pmu->on_cpu = -1; in hisi_uc_pmu_dev_probe()
|
D | hisi_uncore_hha_pmu.c | 492 hha_pmu->on_cpu = -1; in hisi_hha_pmu_dev_probe()
|
D | hisi_uncore_l3c_pmu.c | 526 l3c_pmu->on_cpu = -1; in hisi_l3c_pmu_dev_probe()
|
/Linux-v6.6/drivers/perf/ |
D | qcom_l2_pmu.c | 144 int on_cpu; member 498 (cluster->on_cpu != event->group_leader->cpu)) { in l2_cache_event_init() 536 event->cpu = cluster->on_cpu; in l2_cache_event_init() 785 if (cluster->on_cpu != -1) in l2cache_pmu_online_cpu() 792 cluster->on_cpu = cpu; in l2cache_pmu_online_cpu() 815 if (cluster->on_cpu != cpu) in l2cache_pmu_offline_cpu() 820 cluster->on_cpu = -1; in l2cache_pmu_offline_cpu() 832 cluster->on_cpu = target; in l2cache_pmu_offline_cpu() 868 cluster->on_cpu = -1; in l2_cache_pmu_probe_cluster()
|
D | cxl_pmu.c | 106 int on_cpu; member 504 return cpumap_print_to_pagebuf(true, buf, cpumask_of(info->on_cpu)); in cpumask_show() 591 event->cpu = info->on_cpu; in cxl_pmu_event_init() 840 info->on_cpu = -1; in cxl_pmu_probe() 923 if (info->on_cpu != -1) in cxl_pmu_online_cpu() 926 info->on_cpu = cpu; in cxl_pmu_online_cpu() 941 if (info->on_cpu != cpu) in cxl_pmu_offline_cpu() 944 info->on_cpu = -1; in cxl_pmu_offline_cpu() 952 info->on_cpu = target; in cxl_pmu_offline_cpu()
|
D | arm_smmuv3_pmu.c | 128 unsigned int on_cpu; member 451 event->cpu = smmu_pmu->on_cpu; in smmu_pmu_event_init() 537 return cpumap_print_to_pagebuf(true, buf, cpumask_of(smmu_pmu->on_cpu)); in smmu_pmu_cpumask_show() 671 if (cpu != smmu_pmu->on_cpu) in smmu_pmu_offline_cpu() 679 smmu_pmu->on_cpu = target; in smmu_pmu_offline_cpu() 938 smmu_pmu->on_cpu = raw_smp_processor_id(); in smmu_pmu_probe() 939 WARN_ON(irq_set_affinity(smmu_pmu->irq, cpumask_of(smmu_pmu->on_cpu))); in smmu_pmu_probe()
|
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
D | raw_tp_test_run.c | 43 ASSERT_EQ(skel->data->on_cpu, 0xffffffff, "check_on_cpu"); in test_raw_tp_test_run() 65 ASSERT_EQ(skel->data->on_cpu, i, "check_on_cpu"); in test_raw_tp_test_run()
|
/Linux-v6.6/drivers/hwtracing/ptt/ |
D | hisi_ptt.h | 134 int on_cpu; member
|
D | hisi_ptt.c | 770 hisi_ptt->trace_ctrl.on_cpu = -1; in hisi_ptt_init_ctrls() 1105 hisi_ptt->trace_ctrl.on_cpu = cpu; in hisi_ptt_pmu_start() 1378 src = hisi_ptt->trace_ctrl.on_cpu; in hisi_ptt_cpu_teardown() 1399 hisi_ptt->trace_ctrl.on_cpu = target; in hisi_ptt_cpu_teardown()
|
/Linux-v6.6/arch/x86/include/asm/ |
D | unwind.h | 148 return task != current && task->on_cpu; in task_on_another_cpu()
|
/Linux-v6.6/kernel/sched/ |
D | core.c | 2766 SCHED_WARN_ON(!p->on_cpu); in __do_set_cpus_allowed() 3884 if (WARN_ON_ONCE(p->on_cpu)) in sched_ttwu_pending() 3885 smp_cond_load_acquire(&p->on_cpu, !VAL); in sched_ttwu_pending() 4316 if (smp_load_acquire(&p->on_cpu) && in try_to_wake_up() 4329 smp_cond_load_acquire(&p->on_cpu, !VAL); in try_to_wake_up() 4383 smp_cond_load_acquire(&p->on_cpu, !VAL); in __task_needs_rq_lock() 4781 p->on_cpu = 0; in sched_fork() 4986 WRITE_ONCE(next->on_cpu, 1); in prepare_task() 5004 smp_store_release(&prev->on_cpu, 0); in finish_task() 5564 if (!p->on_cpu || !task_on_rq_queued(p)) in task_sched_runtime() [all …]
|
D | sched.h | 2139 return p->on_cpu; in task_on_cpu()
|
D | fair.c | 1411 (lockdep_is_held(__rq_lockp(task_rq(p))) && !READ_ONCE(p->on_cpu))); in deref_task_numa_group()
|
/Linux-v6.6/include/linux/ |
D | sched.h | 771 int on_cpu; member 2316 return READ_ONCE(owner->on_cpu) && !vcpu_is_preempted(task_cpu(owner)); in owner_on_cpu()
|
/Linux-v6.6/kernel/rcu/ |
D | tree_nocb.h | 1615 return tsp && task_is_running(tsp) && !tsp->on_cpu ? "!" : ""; in show_rcu_should_be_on_cpu()
|