freebsd-dev/sys/cddl/dev/fbt
Mark Johnston 6c2806594b Make the second argument of dtrace_invop() a trapframe pointer.
Currently this argument is a pointer into the stack which is used by FBT
to fetch the first five probe arguments. On all non-x86 architectures it's
simply the trapframe address, so this change has no functional impact. On
amd64 it's a pointer into the trapframe such that stack[1 .. 5] gives the
first five argument registers, which are deliberately grouped together in
the amd64 trapframe definition.

A trapframe argument simplifies the invop handlers on !x86 and makes the
x86 FBT invop handler easier to understand. Moreover, it allows for invop
handlers that may want to modify the register set of the interrupted thread.
2016-04-17 23:08:47 +00:00
..
aarch64 Make the second argument of dtrace_invop() a trapframe pointer. 2016-04-17 23:08:47 +00:00
arm Make the second argument of dtrace_invop() a trapframe pointer. 2016-04-17 23:08:47 +00:00
powerpc Make the second argument of dtrace_invop() a trapframe pointer. 2016-04-17 23:08:47 +00:00
x86 Make the second argument of dtrace_invop() a trapframe pointer. 2016-04-17 23:08:47 +00:00
fbt.c Remove checks for a NULL return value from M_WAITOK allocations. 2015-07-21 23:44:36 +00:00
fbt.h Make the second argument of dtrace_invop() a trapframe pointer. 2016-04-17 23:08:47 +00:00