]> git.baikalelectronics.ru Git - kernel.git/commit
new helper: current_pt_regs()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 30 Sep 2012 17:12:36 +0000 (13:12 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 30 Sep 2012 17:36:39 +0000 (13:36 -0400)
commit0d5521534119a5d00d8e4c12b18a4ed782e786bc
tree73395c8755c27c82b867a210bacba7e585c0839c
parentd658033e0af436f75dcd52493b110b3e32e53351
new helper: current_pt_regs()

Normally (and that's the default) it's just task_pt_regs(current).
However, if an architecture can optimize that, it can do so by
making a macro of its own available from asm/ptrace.h.  More
importantly, some architectures have task_pt_regs() working only
for traced tasks blocked on signal delivery.  current_pt_regs()
needs to work for *all* processes, so before those architectures
start using stuff relying on current_pt_regs() they'll need a
properly working variant.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/ptrace.h