misc: tegra-profiler: prevent infinite loop
authorIgor Nabirushkin <inabirushkin@nvidia.com>
Mon, 9 Mar 2015 16:16:55 +0000 (20:16 +0400)
committerBharat Nihalani <bnihalani@nvidia.com>
Wed, 11 Mar 2015 05:34:42 +0000 (22:34 -0700)
commitd8e79953332c96786da5f57475013b045d7ef817
treefee571b04aee97aaa017ccaec38baab3b25ce8b4
parentb93eebf3afb92cfa97eb66067e5a5ef252a20ae8
misc: tegra-profiler: prevent infinite loop

* Prevent false recursion in mixed mode.
* Unwinding based on frame pointers: do not save lr address
  if previous frame is incorrect.

Bug 1619030

Change-Id: Iadeb8ca87ead576b18821964878cddf7aa94cf27
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/715291
Tested-by: Maxim Morin <mmorin@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/misc/tegra-profiler/backtrace.c
drivers/misc/tegra-profiler/power_clk.c
drivers/misc/tegra-profiler/version.h