summaryrefslogtreecommitdiff
path: root/tools/bpf
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2023-03-02 15:50:10 -0800
committerAlexei Starovoitov <ast@kernel.org>2023-03-04 11:14:32 -0800
commitf4b4eee6169bb33c5157ebe07e53d7e4be7631c0 (patch)
treed251cda307aaca61992ee1915cc255f9c2ee6166 /tools/bpf
parenta461f5adf17756e99ee0903d1a40961b0342ebb3 (diff)
bpf: add support for fixed-size memory pointer returns for kfuncs
Support direct fixed-size (and for now, read-only) memory access when kfunc's return type is a pointer to non-struct type. Calculate type size and let BPF program access that many bytes directly. This is crucial for numbers iterator. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/r/20230302235015.2044271-13-andrii@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/bpf')
0 files changed, 0 insertions, 0 deletions