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

perf_to_profile: [ERROR:perf_data_handler.cc:310] stat: missing_callchain_mmap 20547/294830 #40

Closed
tamird opened this issue Jan 30, 2018 · 6 comments

Comments

@tamird
Copy link

tamird commented Jan 30, 2018

Triggered when attempting to convert a perf capture of an OCaml program. Unfortunately, I can't share the code, but I might be able to produce a freestanding reproduction case if someone's available to chase this.

@aalexand
Copy link
Collaborator

@lannadorai PTAL, but I think these are benign in most cases. We should probably downgrade the logging severity?

@tamird
Copy link
Author

tamird commented Jan 30, 2018

Doing this again with file generated with perf record --call-graph dwarf produces a fatal error:

[ERROR:perf_data_converter.cc:659] Could not read input perf.data
Expected profile vector to have one element.
Aborted

@lannadorai
Copy link
Contributor

@tamird Could you please share the perf.data files for both the cases?

@tamird
Copy link
Author

tamird commented Jan 31, 2018 via email

@lannadorai
Copy link
Contributor

Below is the complete error log from perf_to_profile to convert a perf.data file generated with perf record --call-graph dwarf:

[ERROR:quipper/sample_info_reader.cc:275] PERF_SAMPLE_REGS_USER is not yet supported.
[ERROR:quipper/sample_info_reader.cc:519] Read/skipped 184 bytes, expected 8568 bytes.
[ERROR:perf_data_converter.cc:659] Could not read input perf.data
Expected profile vector to have one element.
Aborted

It looks that quipper doesn't support PERF_SAMPLE_REGS_USER sample type. So, it fails to process perf.data containing this sample type.

Patches are welcome to add support for this sample type. We do not accept pull request because of the hassle of merging it with the upstream. However, you could add a link to a patch in this issue.

lannadorai added a commit that referenced this issue Jun 6, 2018
This is to address #40.

PiperOrigin-RevId: 195994810
lannadorai added a commit that referenced this issue Jun 7, 2018
This is to address #40.

PiperOrigin-RevId: 195994810
vlankhaar pushed a commit that referenced this issue Jun 7, 2018
This is to address #40.

PiperOrigin-RevId: 195994810
@aalexand
Copy link
Collaborator

I am closing this issue because the original report which is error messages about addresses from the call stack not being within in mmap'ed regions was fixed by making that error message a warning. As for further comments in this discussion about the converter complaining about PERF_SAMPLE_REGS_USER and PERF_SAMPLE_STACK_USER types, I believe there is a way to make sure the perf.data file doesn't contain the data so I'd recommend trying that. Please comment further / re-open if there are still issues that can't be worked around easily.

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

3 participants