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

Add an example of PEvent generation #145

Merged
merged 11 commits into from
Feb 4, 2024
Merged

Conversation

klingaard
Copy link
Collaborator

@klingaard klingaard commented Jan 27, 2024

This SHA is an example of how to generate PEvents (Performance Events) typically used for correlation
efforts between a perf model and hardware.

PEvents are a more "compact" form of the pipeout collection pairs, allowing a modeler to specify more direct items
for collection. Pipeout pairs can be more elaborate/detailed. However, with some clever coding, there can be
reuse -- it's not done here.

To generate performance events, use the command line parameter --pevents <filename> <pevent1,pevent2,...|all>.

Examples:

# All pevents
./olympia traces/dhry_riscv.zstf --pevents retire.out all -i100

# Just RETIRE pevent
./olympia traces/dhry_riscv.zstf --pevents retire.out RETIRE -i100

# RETIRE and COMPLETE pevent
./olympia traces/dhry_riscv.zstf --pevents retire.out COMPLETE,RETIRE -i100

While I was at it, I removed the generated annotation for pipeline collection for LoadStore/MemoryAccess classes -- uses NVP which generates faster, as well as creates smaller pipeouts.

@klingaard klingaard added the enhancement New feature or request label Jan 27, 2024
@klingaard klingaard self-assigned this Jan 27, 2024
Copy link
Collaborator

@furuame furuame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! You may also add a test for it.

@klingaard klingaard merged commit 8694a71 into master Feb 4, 2024
4 checks passed
@klingaard klingaard deleted the knutel/issue_141_pevents branch February 4, 2024 22:11
@klingaard
Copy link
Collaborator Author

klingaard commented Feb 4, 2024

Looks good to me! You may also add a test for it.

Done! Zhen keeping me honest. 😛

@klingaard klingaard linked an issue Feb 8, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an example of PEvent usage to the model
2 participants