aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorPuranjay Mohan <[email protected]>2023-08-31 13:12:27 +0000
committerPalmer Dabbelt <[email protected]>2023-09-06 13:26:05 +0000
commit9721873c3c023254f04138bbb21d539b4f0f0ad6 (patch)
treeaad205f7c45646fd33e32e56379f67202d9de60a /tools/perf/util/c++/clang.cpp
parentbpf: make bpf_prog_pack allocator portable (diff)
downloadkernel-9721873c3c023254f04138bbb21d539b4f0f0ad6.tar.gz
kernel-9721873c3c023254f04138bbb21d539b4f0f0ad6.zip
riscv: extend patch_text_nosync() for multiple pages
The patch_insn_write() function currently doesn't work for multiple pages of instructions, therefore patch_text_nosync() will fail with a page fault if called with lengths spanning multiple pages. This commit extends the patch_insn_write() function to support multiple pages by copying at max 2 pages at a time in a loop. This implementation is similar to text_poke_copy() function of x86. Signed-off-by: Puranjay Mohan <[email protected]> Reviewed-by: Pu Lehui <[email protected]> Reviewed-by: Björn Töpel <[email protected]> Tested-by: Björn Töpel <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions