diff options
author | Hongbo Li <lihongbo22@huawei.com> | 2024-08-28 14:21:28 +0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-08-29 12:25:38 -0700 |
commit | c6d9dafb595564ae44ef2e25e3ace2973aa867f3 (patch) | |
tree | 1305a7b888249ab5d1038989bff1d2f9c086bade /samples/trace_events | |
parent | 89dd9bb25597621ca0500aa598140ff0858091e2 (diff) |
bpf: Use kvmemdup to simplify the code
Use kvmemdup instead of kvmalloc() + memcpy() to simplify the
code.
No functional change intended.
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://lore.kernel.org/r/20240828062128.1223417-1-lihongbo22@huawei.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/trace_events')
0 files changed, 0 insertions, 0 deletions