summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMykyta Yatsenko <yatsenko@meta.com>2025-02-26 18:32:00 +0000
committerAlexei Starovoitov <ast@kernel.org>2025-03-15 11:48:16 -0700
commitdaec295a70941c556708c59e1f970a24d8194d89 (patch)
treebb16ba1f0d92b2684d15de0f40d30936cdfcf4dc /tools/perf/scripts/python/stackcollapse.py
parent09206af69c5238909af208b3f46a4aa7997ac0e1 (diff)
bpf/helpers: Introduce bpf_dynptr_copy kfunc
Introducing bpf_dynptr_copy kfunc allowing copying data from one dynptr to another. This functionality is useful in scenarios such as capturing XDP data to a ring buffer. The implementation consists of 4 branches: * A fast branch for contiguous buffer capacity in both source and destination dynptrs * 3 branches utilizing __bpf_dynptr_read and __bpf_dynptr_write to copy data to/from non-contiguous buffer Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20250226183201.332713-3-mykyta.yatsenko5@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions