diff options
author | Jordan Rome <linux@jordanrome.com> | 2025-02-13 07:21:23 -0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2025-02-19 16:57:16 -0800 |
commit | f0b79944e6f41b1a242b128fb2702378eb48fbd2 (patch) | |
tree | 1e1edf60a093c9a1fc424a24f64ad1610936dea7 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ac13c5087299e7690848302cd3073a37c7222364 (diff) |
mm: Add copy_remote_vm_str() for readng C strings from remote VM
Similar to `access_process_vm()` but specific to strings. Also chunks
reads by page and utilizes `strscpy()` for handling null termination.
The primary motivation for this change is to copy strings from
a non-current task/process in BPF. There is already a helper
`bpf_copy_from_user_task()`, which uses `access_process_vm()` but one to
handle strings would be very helpful.
Signed-off-by: Jordan Rome <linux@jordanrome.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Shakeel Butt <shakeel.butt@linux.dev>
Link: https://lore.kernel.org/bpf/20250213152125.1837400-1-linux@jordanrome.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions