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

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dget_stackid_cannot_attach.c30 bpf_program__set_type(skel->progs.oncpu, BPF_PROG_TYPE_PERF_EVENT);
49 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu,
51 ASSERT_ERR_PTR(skel->links.oncpu, "attach_perf_event_no_callchain");
65 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu,
67 ASSERT_OK_PTR(skel->links.oncpu, "attach_perf_event_callchain");
68 bpf_link__destroy(skel->links.oncpu);
82 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu,
[all...]
H A Dperf_event_stackmap.c99 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu,
101 if (!ASSERT_OK_PTR(skel->links.oncpu, "attach_perf_event")) {
H A Dstacktrace_build_id_nmi.c29 bpf_program__set_type(skel->progs.oncpu, BPF_PROG_TYPE_PERF_EVENT);
47 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu,
49 if (!ASSERT_OK_PTR(skel->links.oncpu, "attach_perf_event")) {
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_tracepoint.c20 int oncpu(struct sched_switch_args *ctx) function
H A Dperf_event_stackmap.c31 int oncpu(void *ctx) function
H A Dstacktrace_map_skip.c36 int oncpu(struct trace_event_raw_sched_switch *ctx) function
H A Dtest_stacktrace_build_id.c43 int oncpu(struct pt_regs *args) function
H A Dtest_stacktrace_map.c54 int oncpu(struct sched_switch_args *ctx) function
/linux-master/samples/bpf/
H A Doffwaketime.bpf.c108 int oncpu(struct trace_event_raw_sched_switch *ctx) function
114 int oncpu(struct pt_regs *ctx) function
/linux-master/kernel/sched/
H A Dpsi.c44 * CPU, productive means an oncpu task.
221 static bool test_state(unsigned int *tasks, enum psi_states state, bool oncpu) argument
234 return unlikely(tasks[NR_RUNNING] > oncpu);
236 return unlikely(tasks[NR_RUNNING] && !oncpu);
/linux-master/kernel/events/
H A Dcore.c2278 event->oncpu = -1;
2529 WRITE_ONCE(event->oncpu, smp_processor_id());
2531 * Order event::oncpu write to happen before the ACTIVE state is
2533 * ->oncpu if it sees ACTIVE.
2554 event->oncpu = -1;
3057 if (READ_ONCE(event->oncpu) != smp_processor_id())
3094 * inactive here (event->oncpu==-1), there's nothing more to do;
3097 ret = cpu_function_call(READ_ONCE(event->oncpu),
4595 event_oncpu = __perf_event_read_cpu(event, event->oncpu);
4614 * oncpu
[all...]
/linux-master/include/linux/
H A Dperf_event.h761 int oncpu; member in struct:perf_event
/linux-master/kernel/trace/
H A Dbpf_trace.c645 if (unlikely(event->oncpu != cpu))

Completed in 268 milliseconds