mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
4a0ee78890
Currently, BPF programs typically have a suffix of .bpf.c. However, some programs still utilize a mixture of _kern.c suffix alongside the naming convention. In order to achieve consistency in the naming of these programs, this commit unifies the inconsistency in the naming convention of BPF kernel programs. Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Link: https://lore.kernel.org/r/20230818090119.477441-4-danieltimlee@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
16 lines
301 B
C
16 lines
301 B
C
#include "vmlinux.h"
|
|
#include <linux/version.h>
|
|
#include <bpf/bpf_helpers.h>
|
|
|
|
SEC("kprobe/open_ctree")
|
|
int bpf_prog1(struct pt_regs *ctx)
|
|
{
|
|
unsigned long rc = -12;
|
|
|
|
bpf_override_return(ctx, rc);
|
|
return 0;
|
|
}
|
|
|
|
char _license[] SEC("license") = "GPL";
|
|
u32 _version SEC("version") = LINUX_VERSION_CODE;
|