aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlexandre Ghiti <[email protected]>2021-03-13 03:45:05 -0500
committerPalmer Dabbelt <[email protected]>2021-03-29 23:13:29 -0700
commit2da073c19641bb6820c3591d3d865120263f14e8 (patch)
treec60b934124b45604c1724fc3cbe1233267ef912f /tools/perf/scripts/python
parentf35bb4b8d10a8ce356f0fff634fa885926f8d439 (diff)
riscv: Cleanup KASAN_VMALLOC support
When KASAN vmalloc region is populated, there is no userspace process and the page table in use is swapper_pg_dir, so there is no need to read SATP. Then we can use the same scheme used by kasan_populate_p*d functions to go through the page table, which harmonizes the code. In addition, make use of set_pgd that goes through all unused page table levels, contrary to p*d_populate functions, which makes this function work whatever the number of page table levels. Signed-off-by: Alexandre Ghiti <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions