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

Perfetto annotation from timemory components #289

Merged

Conversation

jrmadsen
Copy link
Collaborator

@jrmadsen jrmadsen commented Jun 16, 2023

  • support perfetto annotations via timemory component data, e.g. use PAPI component for exact HW counter annotations
  • tests for perfetto annotation via timemory data
  • remove --default-components argument to omnitrace-instrument (causes unexpected behavior)
    • this overrides any components set in configuration file (this is a bug)
    • required by perfetto annotation via timemory data tests
  • Remove disabling PAPI support when perf_event_paranoid > 2 but process has CAP_SYS_ADMIN capability

- support perfetto annotations via timemory component data, e.g. use PAPI component for exact HW counter annotations
- remove --default-components argument as this overrides any components set in configuration file
- required by perfetto annotation via timemory data tests
@jrmadsen jrmadsen added bug fix Fixes a bug perfetto Issue affects/involves perfetto features/capabilities timemory Issue affects/involves timemory features/capabilities libomnitrace Involves omnitrace library omnitrace-instrument Involves the omnitrace-instrument executable (binary instrumenter) testing Extends/improves/modifies testing submodule Updates a git submodule labels Jun 16, 2023
- filter out unavailable timemory components before attempting to invoke the annotate operation on the bundle
- account for no PAPI support
- replace '-d wall_clock peak_rss' with '--env OMNITRACE_TIMEMORY_COMPONENTS="wall_clock peak_rss"'
- fix misnamed test
- restrict binary rewrite to run function to force instrumentation despite heuristics
- print {available,overlapping,excluded,instrumented} functions during binary rewrite
- add allow-overlapping flag
- do not disable PAPI if perf_event_paranoid > 2 but has CAP_SYS_ADMIN capability
@jrmadsen jrmadsen added the PAPI Hardware counters via PAPI label Jun 19, 2023
@jrmadsen jrmadsen merged commit 1aca8c1 into ROCm:main Jun 20, 2023
@jrmadsen jrmadsen deleted the perfetto-annotation-from-timemory-components branch June 20, 2023 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Fixes a bug libomnitrace Involves omnitrace library omnitrace-instrument Involves the omnitrace-instrument executable (binary instrumenter) PAPI Hardware counters via PAPI perfetto Issue affects/involves perfetto features/capabilities submodule Updates a git submodule testing Extends/improves/modifies testing timemory Issue affects/involves timemory features/capabilities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant