summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorYun Lu <luyun@kylinos.cn>2026-07-08 13:54:54 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-07-21 11:35:42 +0200
commitb9ecdfda4d48b7cb33bff3bd924ded7019aa4df2 (patch)
tree9bcaffb6565590c176e9fd0628353b0fad5a1c3f /tools/perf/scripts/python/bin/stackcollapse-record
parentc7838468195b2e3e41e72486b8fbf597707f3892 (diff)
net: skbuff: optimization of net_zcopy_get() call in pskb_carve helpers
Commit 98d0912e9f84 ("net: skbuff: fix missing zerocopy reference in pskb_carve helpers") introduced two calls of net_zcopy_get(skb_zcopy(skb)). In fact, skb_zcopy() has already been executed once before. When calling net_zcopy_get(), skb_zcopy() always returns skb_uarg(skb), which results in adding some unnecessary instructions in skb_zcopy. So, change these two calls to directly use skb_uarg(skb) instead of skb_zcopy. In addition, also use net_zcopy_get() instead of refcount_inc() in pskb_expand_head() for code consistency. No functional change intended. Signed-off-by: Yun Lu <luyun@kylinos.cn> Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20260708055454.9167-1-luyun_611@163.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions