[PATCH] Add stack unwind support for the functions in .ko

Howard Su howard0su at gmail.com
Mon Dec 9 14:44:16 UTC 2013


Here is a new version which solve the unreadable $a problem. (the fix is in
ddb/db_main.c in the end of the patch.)

I attached the diff for review.

Howard

On Saturday, December 7, 2013, Howard Su wrote:

> I need this function when working on dtrace/arm support. the basic idea is
> locate the ARM.EXIDX section by the symbol __exidx_start and __exidx_stop.
>
> To keep it simple, I always look through the link_file_list when unwind
> the stack. From the testing, the performance seems ok.
>
> Also, I implement the count parameter when unwind the stack which can make
> 'show threads' output more readable. I also disabled some print output by
> #if 0 which makes output more align with the other platform.
>
> Please review.
>
> Thanks,
>
> Howard Su
>
>
>

-- 
-Howard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unwind.2.patch
Type: text/x-patch
Size: 9285 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20131209/80c3b63c/attachment.bin>


More information about the freebsd-arm mailing list