Giter Site home page Giter Site logo

Comments (9)

lgirdwood avatar lgirdwood commented on August 15, 2024 1

@pratik0509 yep, still open. please have a look at the oops messages in some of the sof issues for examples of text format.. The C format is defined in uapi/ipc.h. You will also need some xtensa ISA documentation to help you understand the DSP registers. Google for "xtensa ISA".

The goal is to read the oops message and provide a stack dump, alongside runlevel, C code that each EPC register points too. Anything useful for debugging really.

from sof.

lgirdwood avatar lgirdwood commented on August 15, 2024 1

@pratik0509 so we want to take the register dump and stack trace addresses and lookup the symbols for those addresses in the firmware disassembly text file (*.dis). i.e. the inputs to the script would be a kernel dmesg and a firmware disassembly file. The outputs would be the call trace (from the stack dump) and the function that each EPC register pointed too.

from sof.

lgirdwood avatar lgirdwood commented on August 15, 2024 1

@pratik0509 it's maybe worth while installing Docker and building some firmware images using Docker container. See sof.git/scripts/README.docker. This will give you the disassembly files and firmware binaries. The next step would be to take some dmesg files from github SOF issues tracker and use both dmesg and disassembly file to test your scipt. Please note that you will need to build the firmware that matches the commit ID from the dmesg oops mesage otherwise your symbols and addresses wont match.

from sof.

jocelyn-li avatar jocelyn-li commented on August 15, 2024

Suggest to put into SOF 1.3

from sof.

pratik0509 avatar pratik0509 commented on August 15, 2024

Hey, I would like to work on this if it is still open?

from sof.

pratik0509 avatar pratik0509 commented on August 15, 2024

@lgirdwood Sorry missed the mail before. I'll get to it asap :)

from sof.

pratik0509 avatar pratik0509 commented on August 15, 2024

@lgirdwood I looked up for Xtensa ISA exception registers and went through the C format in ipc.h and some of the oops messages. What I understood till now is:
Building a tool which helps in debugging the code. The tool will parse the oops messages and try to link it with the function call or line of code which was responsible for it and generate a Trace Stack(if possible).
Sorry if it sounds dumb, but can you be more precise as to what needs to be done exactly? (new developer here)

from sof.

tlauda avatar tlauda commented on August 15, 2024

@lgirdwood @mmaka1 Is it already covered by the new logger and FW core dump parsing feature?

from sof.

lgirdwood avatar lgirdwood commented on August 15, 2024

yep, I guess we can close this now.

from sof.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.