Home
last modified time | relevance | path

Searched refs:on_cpu (Results 1 – 18 of 18) sorted by relevance

/linux/drivers/perf/hisilicon/
H A Dhisi_uncore_pmu.c48 return sysfs_emit(buf, "%d\n", hisi_pmu->on_cpu); in hisi_cpumask_sysfs_show()
240 if (hisi_pmu->on_cpu == -1) in hisi_uncore_pmu_event_init()
254 event->cpu = hisi_pmu->on_cpu; in hisi_uncore_pmu_event_init()
504 * If the CPU is not associated to PMU, initialize the hisi_pmu->on_cpu in hisi_uncore_pmu_online_cpu()
509 if (hisi_pmu->on_cpu != -1) in hisi_uncore_pmu_online_cpu()
512 hisi_pmu->on_cpu = cpumask_local_spread(0, dev_to_node(hisi_pmu->dev)); in hisi_uncore_pmu_online_cpu()
515 cpumask_of(hisi_pmu->on_cpu))); in hisi_uncore_pmu_online_cpu()
522 if (hisi_pmu->on_cpu != -1 && in hisi_uncore_pmu_online_cpu()
523 cpumask_test_cpu(hisi_pmu->on_cpu, &hisi_pmu->associated_cpus)) in hisi_uncore_pmu_online_cpu()
527 hisi_pmu->on_cpu in hisi_uncore_pmu_online_cpu()
[all...]
H A Dhisi_pcie_pmu.c76 int on_cpu; member
124 return cpumap_print_to_pagebuf(true, buf, cpumask_of(pcie_pmu->on_cpu)); in cpumask_show()
405 event->cpu = pcie_pmu->on_cpu; in hisi_pcie_pmu_event_init()
695 if (pcie_pmu->on_cpu == -1) { in hisi_pcie_pmu_online_cpu()
696 pcie_pmu->on_cpu = cpumask_local_spread(0, dev_to_node(&pcie_pmu->pdev->dev)); in hisi_pcie_pmu_online_cpu()
697 WARN_ON(irq_set_affinity(pcie_pmu->irq, cpumask_of(pcie_pmu->on_cpu))); in hisi_pcie_pmu_online_cpu()
710 if (pcie_pmu->on_cpu != cpu) in hisi_pcie_pmu_offline_cpu()
713 pcie_pmu->on_cpu = -1; in hisi_pcie_pmu_offline_cpu()
730 pcie_pmu->on_cpu = target; in hisi_pcie_pmu_offline_cpu()
837 pcie_pmu->on_cpu in hisi_pcie_alloc_pmu()
[all...]
H A Dhisi_uncore_pmu.h130 int on_cpu; member
H A Dhisi_uncore_cpa_pmu.c270 cpa_pmu->on_cpu = -1; in hisi_cpa_pmu_dev_probe()
H A Dhisi_uncore_pa_pmu.c446 pa_pmu->on_cpu = -1; in hisi_pa_pmu_dev_probe()
H A Dhisi_uncore_ddrc_pmu.c370 ddrc_pmu->on_cpu = -1; in hisi_ddrc_pmu_dev_probe()
H A Dhisi_uncore_l3c_pmu.c503 l3c_pmu->on_cpu = -1; in hisi_l3c_pmu_dev_probe()
H A Dhisi_uncore_uc_pmu.c485 uc_pmu->on_cpu = -1; in hisi_uc_pmu_dev_probe()
H A Dhisi_uncore_sllc_pmu.c482 sllc_pmu->on_cpu = -1; in hisi_sllc_pmu_dev_probe()
/linux/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(); in BPF_PROG()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Draw_tp_test_run.c43 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/drivers/perf/
H A Darm_smmuv3_pmu.c128 unsigned int on_cpu; member
438 event->cpu = smmu_pmu->on_cpu; in smmu_pmu_event_init()
540 return cpumap_print_to_pagebuf(true, buf, cpumask_of(smmu_pmu->on_cpu)); in smmu_pmu_cpumask_show()
674 if (cpu != smmu_pmu->on_cpu) in smmu_pmu_offline_cpu()
682 smmu_pmu->on_cpu = target; in smmu_pmu_offline_cpu()
942 smmu_pmu->on_cpu = raw_smp_processor_id(); in smmu_pmu_probe()
943 WARN_ON(irq_set_affinity(smmu_pmu->irq, cpumask_of(smmu_pmu->on_cpu))); in smmu_pmu_probe()
/linux/drivers/hwtracing/ptt/
H A Dhisi_ptt.h123 * @on_cpu: current tracing cpu
135 int on_cpu; member
H A Dhisi_ptt.c773 hisi_ptt->trace_ctrl.on_cpu = -1; in hisi_ptt_init_ctrls()
1111 hisi_ptt->trace_ctrl.on_cpu = cpu; in hisi_ptt_pmu_start()
1390 src = hisi_ptt->trace_ctrl.on_cpu; in hisi_ptt_cpu_teardown()
1411 hisi_ptt->trace_ctrl.on_cpu = target; in hisi_ptt_cpu_teardown()
/linux/arch/x86/include/asm/
H A Dunwind.h148 return task != current && task->on_cpu; in task_on_another_cpu()
/linux/kernel/rcu/
H A Dtree_nocb.h1510 // The ->on_cpu field is available only in CONFIG_SMP=y, so...
1514 return tsp && task_is_running(tsp) && !tsp->on_cpu ? "!" : ""; in show_rcu_should_be_on_cpu()
/linux/kernel/sched/
H A Dsched.h2272 return p->on_cpu; in task_on_cpu()
H A Dfair.c1477 (lockdep_is_held(__rq_lockp(task_rq(p))) && !READ_ONCE(p->on_cpu))); in deref_task_numa_group()
12725 * This is OK, because current is on_cpu, which avoids it being picked in sched_balance_newidle()