]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r256822:
authormarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 Aug 2014 21:41:00 +0000 (21:41 +0000)
committermarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 Aug 2014 21:41:00 +0000 (21:41 +0000)
commit3d05b6944d60ef84073a7681f96170f3e128ddcb
tree66bcf79d723c80a39adae837328093ade8296f2d
parentf94d5869c190da104ae9953801c3e92cb4e96108
MFC r256822:
When fetching function arguments out of a frame on amd64, explicitly select
the register based on the argument index rather than relying on the fields
in struct reg to be in the right order. This assumption is incorrect on
FreeBSD and generally led to bogus argument values for the sixth argument
of PID and USDT probes; the first five are passed directly to dtrace_probe()
via the fasttrap trap handler and so were correctly handled.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269531 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c
sys/cddl/dev/dtrace/amd64/dtrace_isa.c