blob: 8c0fc691d329dd5c9d6bf575801fd112bdd34d35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// SPDX-License-Identifier: GPL-2.0
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
char LICENSE[] SEC("license") = "GPL";
void *user_ptr;
int retval;
SEC("fentry.s")
int BPF_PROG(fentry_xdp)
{
char buff[64];
retval = bpf_copy_from_user(buff, sizeof(buff), user_ptr);
return 0;
}
|