MFC r339924: Implement the dump_stack() function in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies