linux-stable/arch/xtensa/include/uapi/asm
Max Filippov c91e02bd97 xtensa: support hardware breakpoints/watchpoints
Use perf framework to manage hardware instruction and data breakpoints.
Add two new ptrace calls: PTRACE_GETHBPREGS and PTRACE_SETHBPREGS to
query and set instruction and data breakpoints.
Address bit 0 choose instruction (0) or data (1) break register, bits
31..1 are the register number.
Both calls transfer two 32-bit words: address (0) and control (1).
Instruction breakpoint contorl word is 0 to clear breakpoint, 1 to set.
Data breakpoint control word bit 31 is 'trigger on store', bit 30 is
'trigger on load, bits 29..0 are length. Length 0 is used to clear a
breakpoint. To set a breakpoint length must be a power of 2 in the range
1..64 and the address must be length-aligned.

Introduce new thread_info flag: TIF_DB_DISABLED. Set it if debug
exception is raised by the kernel code accessing watched userspace
address and disable corresponding data breakpoint. On exit to userspace
check that flag and, if set, restore all data breakpoints.

Handle debug exceptions raised with PS.EXCM set. This may happen when
window overflow/underflow handler or fast exception handler hits data
breakpoint, in which case save and disable all data breakpoints,
single-step faulting instruction and restore data breakpoints.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2016-03-11 08:53:32 +00:00
..
auxvec.h
byteorder.h
ioctls.h xtensa/uapi: Add definition of TIOC[SG]RS485 2014-09-09 23:48:57 -07:00
ipcbuf.h
Kbuild xtensa: Use Kbuild infrastructure to handle asm-generic headers 2012-10-15 21:49:50 -07:00
mman.h mm: mlock: add mlock flags to enable VM_LOCKONFAULT usage 2015-11-05 19:34:48 -08:00
msgbuf.h
param.h
poll.h
posix_types.h
ptrace.h xtensa: support hardware breakpoints/watchpoints 2016-03-11 08:53:32 +00:00
sembuf.h
setup.h
shmbuf.h
sigcontext.h
signal.h xtensa: pull signal definitions from signal-defs.h 2013-02-23 19:12:52 -08:00
socket.h net: sock: allow eBPF programs to be attached to sockets 2014-12-05 21:47:32 -08:00
sockios.h
stat.h
swab.h
termbits.h
types.h
unistd.h xtensa: provide __NR_sync_file_range2 instead of __NR_sync_file_range 2015-03-04 12:07:05 +03:00