Find the answer to your Linux question:
Results 1 to 3 of 3
Hi I try to understand how UART driver is working, I'd like to know if there is a way to printk the kernel stack in a given point of a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    7

    How to print Kernel stack - please help


    Hi

    I try to understand how UART driver is working, I'd like to know if there is a way to printk the kernel stack in a given point of a code.

    P.S I'll be happy to know if there is more elegant way to get the kernel stuck or to debug it

    Best regards

  2. #2
    Just Joined!
    Join Date
    Nov 2008
    Posts
    1

    Solution for printing Kernel stack

    Hi,

    I would suggest to use dump_stack() and show_regs() kernel functions for dumping the stack also the values of registers.

    Hope it may help you.

    Thnx,
    Jitendra P.

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    7
    Thanx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •