]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: ensure ustackdepth returns correct value
authorKris Van Hees <kris.van.hees@oracle.com>
Wed, 24 May 2017 05:00:34 +0000 (01:00 -0400)
committerKris Van Hees <kris.van.hees@oracle.com>
Wed, 24 May 2017 16:42:22 +0000 (12:42 -0400)
commitcc6596c13cb0a56680228ded93a77683cccbeb50
treed2d06daf8d12f1d401dd8200c6c9612984a12a65
parentd5bbb54614070d154e815928283ac6e601f68cb8
dtrace: ensure ustackdepth returns correct value

The implementation for ustackdepth was causing it to always return 1,
regardless of the depth of the ustack().  The commit ensures that the
underlying code can walk the stack (without actually collecting PCs)
and determine the depth.

Orabug: 25949692
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Nick Alcock <nick.alcock@oracle.com>
dtrace/dtrace_isa.c