Home
last modified time | relevance | path

Searched refs:oncpu (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dget_stackid_cannot_attach.c30 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()
81 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_get_stackid_cannot_attach()
83 ASSERT_ERR_PTR(skel->links.oncpu, "attach_perf_event_exclude_callchain_kernel"); in test_get_stackid_cannot_attach()
Dstacktrace_build_id_nmi.c45 bpf_program__set_type(skel->progs.oncpu, BPF_PROG_TYPE_PERF_EVENT); in test_stacktrace_build_id_nmi()
63 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_stacktrace_build_id_nmi()
65 if (!ASSERT_OK_PTR(skel->links.oncpu, "attach_perf_event")) { in test_stacktrace_build_id_nmi()
Dperf_event_stackmap.c98 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_perf_event_stackmap()
100 if (!ASSERT_OK_PTR(skel->links.oncpu, "attach_perf_event")) { in test_perf_event_stackmap()
/linux-6.1.9/samples/bpf/
Doffwaketime_kern.c125 int oncpu(struct sched_switch_args *ctx) function
131 int oncpu(struct pt_regs *ctx)
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_tracepoint.c20 int oncpu(struct sched_switch_args *ctx) in oncpu() function
Dperf_event_stackmap.c31 int oncpu(void *ctx) in oncpu() function
Dstacktrace_map_skip.c36 int oncpu(struct trace_event_raw_sched_switch *ctx) in oncpu() function
Dtest_stacktrace_build_id.c43 int oncpu(struct pt_regs *args) in oncpu() function
Dtest_stacktrace_map.c54 int oncpu(struct sched_switch_args *ctx) in oncpu() function
/linux-6.1.9/kernel/sched/
Dpsi.c216 static bool test_state(unsigned int *tasks, enum psi_states state, bool oncpu) in test_state() argument
229 return unlikely(tasks[NR_RUNNING] > oncpu); in test_state()
231 return unlikely(tasks[NR_RUNNING] && !oncpu); in test_state()
/linux-6.1.9/kernel/events/
Dcore.c2278 event->oncpu = -1; in event_sched_out()
2523 WRITE_ONCE(event->oncpu, smp_processor_id()); in event_sched_in()
2548 event->oncpu = -1; in event_sched_in()
3054 if (READ_ONCE(event->oncpu) != smp_processor_id()) in __perf_event_stop()
3094 ret = cpu_function_call(READ_ONCE(event->oncpu), in perf_event_stop()
4491 if (event->attr.pinned && event->oncpu != smp_processor_id()) { in perf_event_read_local()
4501 if (event->oncpu == smp_processor_id()) in perf_event_read_local()
4541 event_cpu = READ_ONCE(event->oncpu); in perf_event_read()
6492 int cpu = READ_ONCE(event->oncpu); in __perf_pending_irq()
6777 if (WARN_ON_ONCE(READ_ONCE(sampler->oncpu) != smp_processor_id())) in perf_prepare_sample_aux()
[all …]
/linux-6.1.9/include/linux/
Dperf_event.h739 int oncpu; member
/linux-6.1.9/kernel/trace/
Dbpf_trace.c646 if (unlikely(event->oncpu != cpu)) in __bpf_perf_event_output()