Adding one more Q :

4. Is there a way I can know a list of all the locks that are held by a given process.
Currently I am looking at the call stack(bt -f) and trying to figure out from the source code which locks must have been acquired on the way to here. But if the crash tool can report this, it would be awesome!

Thank you.

Best Regards,
Sandeep Kumar


On Fri, Dec 18, 2020 at 4:18 PM sandeep kumar Mantrala <sandeep.mvd@gmail.com> wrote:
Hi,

I am having a few questions related to crash utility.

1. How do i measure various times like the following
   - When was last time that the task was in Running state
   -  How much time the task is in its current state(UN, IN etc..)?

2. How do I get register values from the crash dump? All the registers are generally saved onto the stack when switching from one function to another. So, ideally at any given time, we should be able to find the register values.

3. bt -f shows stack data. Any references on how to interpret it? Is there a more convenient way to get the local variables?

Thank you for your time!
PS: This is my first email to this list. Please let me know if I am violating any rules.

Best Regards,
Sandeep