diff options
author | Cong Wang <[email protected]> | 2022-06-15 09:20:14 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-06-20 14:05:52 +0200 |
commit | 43312915b5ba20741617dd2119e835205fa8580c (patch) | |
tree | c3daaabf7cde52b9bae1a1218e37b6af0c5b5d2a /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 57452d767feaeab405de3bff0d240c3ac84bfe0d (diff) |
skmsg: Get rid of unncessary memset()
We always allocate skmsg with kzalloc(), so there is no need
to call memset(0) on it, the only thing we need from
sk_msg_init() is sg_init_marker(). So introduce a new helper
which is just kzalloc()+sg_init_marker(), this saves an
unncessary memset(0) for skmsg on fast path.
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions