Skip to content

add PERF_FORMAT_TOTAL_TIME_{ENABLED,RUNNING} to support multiplexing#1814

Merged
dmah42 merged 1 commit into
mainfrom
perf_multiplex
Jul 12, 2024
Merged

add PERF_FORMAT_TOTAL_TIME_{ENABLED,RUNNING} to support multiplexing#1814
dmah42 merged 1 commit into
mainfrom
perf_multiplex

Conversation

@dmah42

@dmah42 dmah42 commented Jul 11, 2024

Copy link
Copy Markdown
Member

Fixes #1813

@dmah42 dmah42 merged commit 38df9da into main Jul 12, 2024
@dmah42 dmah42 deleted the perf_multiplex branch July 12, 2024 09:28
@jan-wassenberg

Copy link
Copy Markdown
Member

Nice, thanks for adding :) I think this does not fully fix the issue. Adding the flags changes the in-memory layout of the counters. It remains to add those to the struct, replacing the 'padding' field, and then to extrapolate the counters based on the fraction of enabled/running.

@dmah42

dmah42 commented Jul 16, 2024

Copy link
Copy Markdown
Member Author

do you have a pointer? i have no idea how this is meant to work.

@jan-wassenberg

Copy link
Copy Markdown
Member

Check out cl/638153709 :)

@dmah42

dmah42 commented Jul 16, 2024

Copy link
Copy Markdown
Member Author

i think it's quite a different approach to how we currently do things, and i'm not qualified to rewrite this so we may need to find someone who knows what they're doing.

@jan-wassenberg

Copy link
Copy Markdown
Member

SG. In the meantime, probably best to revert this commit.

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

Successfully merging this pull request may close these issues.

[BUG] Perf counters not multiplexed

2 participants