1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2017 Facebook
5 #include <bpf/bpf_helpers.h>
7 /* taken from /sys/kernel/debug/tracing/events/sched/sched_switch/format */
8 struct sched_switch_args {
9 unsigned long long pad;
19 SEC("tracepoint/sched/sched_switch")
20 int oncpu(struct sched_switch_args *ctx)
25 char _license[] SEC("license") = "GPL";