<div dir="ltr">Adding one more Q :<div><br></div><div>4. Is there a way I can know a list of all the locks that are held by a given process.</div><div>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!</div><div><br></div><div>Thank you.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><div>Best Regards,<br></div>Sandeep Kumar<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 18, 2020 at 4:18 PM sandeep kumar Mantrala <<a href="mailto:sandeep.mvd@gmail.com">sandeep.mvd@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>I am having a few questions related to crash utility.</div><div><br></div><div>1. How do i measure various times like the following</div><div>   - When was last time that the task was in Running state</div><div>   -  How much time the task is in its current state(UN, IN etc..)?</div><div><br></div><div>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.</div><div><br></div><div>3. bt -f shows stack data. Any references on how to interpret it? Is there a more convenient way to get the local variables?</div><div><br></div><div>Thank you for your time!</div><div></div><div>PS: This is my first email to this list. Please let me know if I am violating any rules.</div><div><br></div><div>Best Regards,<br></div>Sandeep<br></div></div></div>
</blockquote></div>