diff options
author | 2024-08-23 12:51:00 -0700 | |
---|---|---|
committer | 2024-08-23 15:40:01 -0700 | |
commit | 65ab5ac4df012388481d0414fcac1d5ac1721fb3 (patch) | |
tree | 2f677483b768b820295a519019d1b11b3a30c7b6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/bpf: use simply-expanded variables for libpcap flags (diff) | |
download | wireguard-linux-65ab5ac4df012388481d0414fcac1d5ac1721fb3.tar.xz wireguard-linux-65ab5ac4df012388481d0414fcac1d5ac1721fb3.zip |
bpf: Add bpf_copy_from_user_str kfunc
This adds a kfunc wrapper around strncpy_from_user,
which can be called from sleepable BPF programs.
This matches the non-sleepable 'bpf_probe_read_user_str'
helper except it includes an additional 'flags'
param, which allows consumers to clear the entire
destination buffer on success or failure.
Signed-off-by: Jordan Rome <linux@jordanrome.com>
Link: https://lore.kernel.org/r/20240823195101.3621028-1-linux@jordanrome.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions