Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide mechanism to export defmt mappings from the ELF #854

Open
ryan-summers opened this issue Jun 13, 2024 · 2 comments
Open

Provide mechanism to export defmt mappings from the ELF #854

ryan-summers opened this issue Jun 13, 2024 · 2 comments
Labels
type: enhancement Enhancement or feature request

Comments

@ryan-summers
Copy link

There are a number of potential uses of defmt that don't actually require the ELF binary, such as:

  • Using defmt in device logs for compact storage
  • Using defmt to generate telemetry information

Some external receiver is then responsible for decoding and formatting these values at a later time/date. Currently, this process requires an elf binary file that generated the defmt logs in the first place.

Being able to export the defmt mapping tables into some other format (i.e. TOML, JSON, YAML, etc.) would aid in the ability to write custom tools to process these logs after-the-fact.

@ryan-summers
Copy link
Author

For reference, this table may be what we would want to dump

@jonathanpallant
Copy link
Contributor

That sounds really interesting.

Is the symbol table sufficient (apologies, I should dig in and check to answer that, but I haven't yet)? IIRC the defmt strings are all JSON encoded symbol names that are easy to find from an objdump.

@Urhengulas Urhengulas added the type: enhancement Enhancement or feature request label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Enhancement or feature request
Projects
None yet
Development

No branches or pull requests

3 participants