diff options
author | Chris Wilson <[email protected]> | 2020-05-01 15:51:20 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2020-05-01 17:30:47 +0100 |
commit | 9f909e215fea0652023b9ed09d3d7bfe10386423 (patch) | |
tree | 34df8bc60968127a3d894ed80d82de1e1b1450d7 /tools/perf/scripts/python/syscall-counts.py | |
parent | a211da9c771bf97395a3ced83a3aa383372b13a7 (diff) |
drm/i915: Implement vm_ops->access for gdb access into mmaps
gdb uses ptrace() to peek and poke bytes of the target's address space.
The driver must implement an vm_ops->access() handler or else gdb will
be unable to inspect the pointer and report it as out-of-bounds.
Worse than useless as it causes immediate suspicion of the valid GTT
pointer, distracting the poor programmer trying to find his bug.
v2: Write-protect readonly objects (Matthew).
Testcase: igt/gem_mmap_gtt/ptrace
Testcase: igt/gem_mmap_offset/ptrace
Suggested-by: Kristian H. Kristensen <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: Matthew Auld <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Maciej Patelczyk <[email protected]>
Cc: Kristian H. Kristensen <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions