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

No user types being generated when using System map + dwarf #19

Closed
richsurgenor opened this issue Jul 15, 2020 · 4 comments
Closed

No user types being generated when using System map + dwarf #19

richsurgenor opened this issue Jul 15, 2020 · 4 comments

Comments

@richsurgenor
Copy link

richsurgenor commented Jul 15, 2020

Dwarf was generated using vol2's tools/linux.

Using Ubuntu 18.

If I use vmlinux it works but shouldn't just a dwarf and map be enough?

Command issued"
./dwarf2json linux --system-map System.map-4.15.0-106-generic module.dwarf > output.json

I have included an upload to the files:
dwarf_and_map.zip

@ilch1
Copy link
Collaborator

ilch1 commented Jul 15, 2020

Hi @richsurgenor,

Thank you for submitting the issue.

The current master does not fully support creating symbols for Linux without a debug kernel. There is ongoing work in trying to add that functionality, see #12.

The likely reason that user types were not included in your output is that you did not provide the --elf-types flag with the DWARF file in the command. Also, the dwarf file in the zip is ASCII and looks like the output of dwarfdump or some other tool. You would need to pass an ELF file that contains DWARF debug information (i.e., the actual linux module ko file).

@richsurgenor
Copy link
Author

Hi, thanks for responding. So I either need a dbg kernel or a kernel module, but the actual dwarf+system map doesn't get you everything you need I guess?

@ilch1
Copy link
Collaborator

ilch1 commented Jul 28, 2020

Yes, that is correct.

@ilch1
Copy link
Collaborator

ilch1 commented May 10, 2021

Closing issue. Please re-open if you have further questions.

@ilch1 ilch1 closed this as completed May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants