Searched refs:oncpu (Results 1 – 13 of 13) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | get_stackid_cannot_attach.c | 30 bpf_program__set_type(skel->progs.oncpu, BPF_PROG_TYPE_PERF_EVENT); in test_get_stackid_cannot_attach() 49 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_get_stackid_cannot_attach() 51 ASSERT_ERR_PTR(skel->links.oncpu, "attach_perf_event_no_callchain"); in test_get_stackid_cannot_attach() 65 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_get_stackid_cannot_attach() 67 ASSERT_OK_PTR(skel->links.oncpu, "attach_perf_event_callchain"); in test_get_stackid_cannot_attach() 68 bpf_link__destroy(skel->links.oncpu); in test_get_stackid_cannot_attach() 82 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_get_stackid_cannot_attach() 84 ASSERT_ERR_PTR(skel->links.oncpu, "attach_perf_event_exclude_callchain_kernel"); in test_get_stackid_cannot_attach()
|
D | stacktrace_build_id_nmi.c | 29 bpf_program__set_type(skel->progs.oncpu, BPF_PROG_TYPE_PERF_EVENT); in test_stacktrace_build_id_nmi() 47 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_stacktrace_build_id_nmi() 49 if (!ASSERT_OK_PTR(skel->links.oncpu, "attach_perf_event")) { in test_stacktrace_build_id_nmi()
|
D | perf_event_stackmap.c | 99 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_perf_event_stackmap() 101 if (!ASSERT_OK_PTR(skel->links.oncpu, "attach_perf_event")) { in test_perf_event_stackmap()
|
/linux-6.12.1/samples/bpf/ |
D | offwaketime.bpf.c | 108 int oncpu(struct trace_event_raw_sched_switch *ctx) function 114 int oncpu(struct pt_regs *ctx)
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | test_tracepoint.c | 20 int oncpu(struct sched_switch_args *ctx) in oncpu() function
|
D | perf_event_stackmap.c | 31 int oncpu(void *ctx) in oncpu() function
|
D | stacktrace_map_skip.c | 36 int oncpu(struct trace_event_raw_sched_switch *ctx) in oncpu() function
|
D | test_stacktrace_build_id.c | 43 int oncpu(struct pt_regs *args) in oncpu() function
|
D | test_stacktrace_map.c | 54 int oncpu(struct sched_switch_args *ctx) in oncpu() function
|
/linux-6.12.1/kernel/sched/ |
D | psi.c | 223 const bool oncpu = state_mask & PSI_ONCPU; in test_states() local 237 if (tasks[NR_RUNNING] > oncpu) in test_states() 240 if (tasks[NR_RUNNING] && !oncpu) in test_states()
|
/linux-6.12.1/kernel/events/ |
D | core.c | 2327 event->oncpu = -1; in event_sched_out() 2597 WRITE_ONCE(event->oncpu, smp_processor_id()); in event_sched_in() 2622 event->oncpu = -1; in event_sched_in() 3128 if (READ_ONCE(event->oncpu) != smp_processor_id()) in __perf_event_stop() 3168 ret = cpu_function_call(READ_ONCE(event->oncpu), in perf_event_stop() 4706 event_oncpu = __perf_event_read_cpu(event, event->oncpu); in perf_event_read_local() 4767 event_cpu = READ_ONCE(event->oncpu); in perf_event_read() 6876 int cpu = READ_ONCE(event->oncpu); in __perf_pending_disable() 7173 if (WARN_ON_ONCE(READ_ONCE(sampler->oncpu) != smp_processor_id())) in perf_prepare_sample_aux() 8310 cpu = READ_ONCE(iter->oncpu); in perf_pmu_output_stop() [all …]
|
/linux-6.12.1/include/linux/ |
D | perf_event.h | 785 int oncpu; member
|
/linux-6.12.1/kernel/trace/ |
D | bpf_trace.c | 644 if (unlikely(event->oncpu != cpu)) in __bpf_perf_event_output()
|