diff options
author | Benjamin Tissoires <bentiss@kernel.org> | 2024-06-08 11:01:20 +0200 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-06-14 11:20:20 +0200 |
commit | 4a86220e046da009bef0948e9f51d1d26d68f93c (patch) | |
tree | 41e0cf9fdf3c33a3ae99190bc4d3f30702b76c3d /drivers/hid/bpf/entrypoints/entrypoints.bpf.c | |
parent | 50fe0fc6e206c9b85a0a6cc183ee5513d70179d1 (diff) | |
download | linux-4a86220e046da009bef0948e9f51d1d26d68f93c.tar.gz linux-4a86220e046da009bef0948e9f51d1d26d68f93c.tar.bz2 linux-4a86220e046da009bef0948e9f51d1d26d68f93c.zip |
HID: bpf: remove tracing HID-BPF capability
We can now rely on struct_ops as we cleared the users in-tree.
Link: https://lore.kernel.org/r/20240608-hid_bpf_struct_ops-v3-8-6ac6ade58329@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'drivers/hid/bpf/entrypoints/entrypoints.bpf.c')
-rw-r--r-- | drivers/hid/bpf/entrypoints/entrypoints.bpf.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/hid/bpf/entrypoints/entrypoints.bpf.c b/drivers/hid/bpf/entrypoints/entrypoints.bpf.c deleted file mode 100644 index c22921125a1a..000000000000 --- a/drivers/hid/bpf/entrypoints/entrypoints.bpf.c +++ /dev/null @@ -1,25 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* Copyright (c) 2022 Benjamin Tissoires */ - -#include ".output/vmlinux.h" -#include <bpf/bpf_helpers.h> -#include <bpf/bpf_tracing.h> - -#define HID_BPF_MAX_PROGS 1024 - -struct { - __uint(type, BPF_MAP_TYPE_PROG_ARRAY); - __uint(max_entries, HID_BPF_MAX_PROGS); - __uint(key_size, sizeof(__u32)); - __uint(value_size, sizeof(__u32)); -} hid_jmp_table SEC(".maps"); - -SEC("fmod_ret/__hid_bpf_tail_call") -int BPF_PROG(hid_tail_call, struct hid_bpf_ctx *hctx) -{ - bpf_tail_call(ctx, &hid_jmp_table, hctx->index); - - return 0; -} - -char LICENSE[] SEC("license") = "GPL"; |