summaryrefslogtreecommitdiffstats
path: root/tools/bpf/runqslower/runqslower.bpf.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-03-03 01:32:33 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2020-03-04 17:00:06 +0100
commit367d82f17eff53cec531920eb0de9973fac89ec1 (patch)
treef226fe625bc79e1ea70a223dac69fdf33e434383 /tools/bpf/runqslower/runqslower.bpf.c
parentlibbpf: Assume unsigned values for BTF_KIND_ENUM (diff)
downloadlinux-367d82f17eff53cec531920eb0de9973fac89ec1.tar.xz
linux-367d82f17eff53cec531920eb0de9973fac89ec1.zip
tools/runqslower: Drop copy/pasted BPF_F_CURRENT_CPU definiton
With BPF_F_CURRENT_CPU being an enum, it is now captured in vmlinux.h and is readily usable by runqslower. So drop local copy/pasted definition in favor of the one coming from vmlinux.h. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20200303003233.3496043-4-andriin@fb.com
Diffstat (limited to 'tools/bpf/runqslower/runqslower.bpf.c')
-rw-r--r--tools/bpf/runqslower/runqslower.bpf.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/bpf/runqslower/runqslower.bpf.c b/tools/bpf/runqslower/runqslower.bpf.c
index 48a39f72fadf..0ba501305bad 100644
--- a/tools/bpf/runqslower/runqslower.bpf.c
+++ b/tools/bpf/runqslower/runqslower.bpf.c
@@ -6,9 +6,6 @@
#define TASK_RUNNING 0
-#define BPF_F_INDEX_MASK 0xffffffffULL
-#define BPF_F_CURRENT_CPU BPF_F_INDEX_MASK
-
const volatile __u64 min_us = 0;
const volatile pid_t targ_pid = 0;