diff options
| author | Puranjay Mohan <[email protected]> | 2023-08-31 13:12:28 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2023-09-06 13:26:06 +0000 |
| commit | cad539baa48ff257b598000a90db2b7edd4b2dd5 (patch) | |
| tree | eee232a8bf720d79d5c2a19e76df01658e593658 /tools/perf/builtin-script.c | |
| parent | riscv: extend patch_text_nosync() for multiple pages (diff) | |
| download | kernel-cad539baa48ff257b598000a90db2b7edd4b2dd5.tar.gz kernel-cad539baa48ff257b598000a90db2b7edd4b2dd5.zip | |
riscv: implement a memset like function for text
The BPF JIT needs to write invalid instructions to RX regions of memory to
invalidate removed BPF programs. This needs a function like memset() that
can work with RX memory.
Implement patch_text_set_nosync() which is similar to text_poke_set() of
x86.
Signed-off-by: Puranjay Mohan <[email protected]>
Reviewed-by: Pu Lehui <[email protected]>
Acked-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/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
