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

perfparser: inspect reading feature PerfHeader::SAMPLE_TIME and PerfHeader::BPF_PROG_INFO #537

Open
GitMensch opened this issue Oct 23, 2023 · 0 comments

Comments

@GitMensch
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I've just recognized the unhandled features in the PerfHeader messages I get when opening recordings and those two seem to be useful to inspect further. Obviously this is nothing that is important for the short term.

unhandled feature PerfHeader::BPF_PROG_INFO 4
unhandled feature PerfHeader::BPF_BTF 4
unhandled feature PerfHeader::CPU_PMU_CAPS 140
unhandled feature PerfHeader::CACHE 5508
unhandled feature PerfHeader::SAMPLE_TIME 16
feature not properly read PerfHeader::CPU_TOPOLOGY 884 620

Describe the solution you'd like
Check the contents of:
PerfHeader::SAMPLE_TIME, the perf_event_open manpage says that this "Records a timestamp" - this likely means the summary could output the time of recording.
PerfHeader::BPF_PROG_INFO, this contains the struct bpf_prog_info from /include/linux/bpf.h), also see https://www.kernel.org/doc/html/latest/bpf/btf.html ; the entries that seem interesting there are the run_time_ns, possibly there are more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants