summaryrefslogtreecommitdiff
path: root/include/vdso/jiffies.h
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2022-09-04 23:41:14 +0300
committerAlexei Starovoitov <ast@kernel.org>2022-09-07 21:45:28 +0300
commit448325199f574d33824dbf9121efb03558412966 (patch)
tree370e555559cee9bf7aa0238aa0dfaf2545d3a3aa /include/vdso/jiffies.h
parent9fad7fe5b29803584c7f17a2abe6c2936fec6828 (diff)
downloadlinux-448325199f574d33824dbf9121efb03558412966.tar.xz
bpf: Add copy_map_value_long to copy to remote percpu memory
bpf_long_memcpy is used while copying to remote percpu regions from BPF syscall and helpers, so that the copy is atomic at word size granularity. This might not be possible when you copy from map value hosting kptrs from or to percpu maps, as the alignment or size in disjoint regions may not be multiple of word size. Hence, to avoid complicating the copy loop, we only use bpf_long_memcpy when special fields are not present, otherwise use normal memcpy to copy the disjoint regions. Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20220904204145.3089-2-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/vdso/jiffies.h')
0 files changed, 0 insertions, 0 deletions