diff options
author | Andrii Nakryiko <[email protected]> | 2020-12-03 15:54:39 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-12-03 18:07:05 -0800 |
commit | 3015b500ae42356936b9b4a8b660eacaee7a6147 (patch) | |
tree | 65180d871a42736984449c4b5651c73fc9e82eed /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 8158c5fd619d42e94a006e9fb8005fb8a4e6f4d4 (diff) |
libbpf: Use memcpy instead of strncpy to please GCC
Some versions of GCC are really nit-picky about strncpy() use. Use memcpy(),
as they are pretty much equivalent for the case of fixed length strings.
Fixes: e459f49b4394 ("libbpf: Separate XDP program load with xsk socket creation")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions