]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: enforce inlining of dtrace_dif_variable
authorKris Van Hees <kris.van.hees@oracle.com>
Tue, 11 Apr 2017 20:34:35 +0000 (16:34 -0400)
committerKris Van Hees <kris.van.hees@oracle.com>
Wed, 12 Apr 2017 11:38:50 +0000 (07:38 -0400)
commit41db14f8e031dadcc556ed3d19ad403b753e4166
tree25a8d04f7e8a3567b96be571955d5df680a4b9e7
parent9f7ef2431e16793a9866cfe8a9a8db794f010d7d
dtrace: enforce inlining of dtrace_dif_variable

The dtrace_dif_variable() function is inlined during some compilations
and not during others, causing the number of frames to be skipped in
DTrace kernel stack traces to not be a constant.  That causes incorrect
values for stackdepth to be reported.

This commit requests dtrace_dif_variable() to always be inlined, and
adjusts the aframes values in function of the inlining.

Orabug: 25872472
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Tomas jedlicka <tomas.jedlicka@oracle.com>
Acked-by: Nick Alcock <nick.alcock@oracle.com>
dtrace/dtrace_dif.c