Skip to content

Enable logging after trigger #447

Closed Answered by ghost
danbone asked this question in Q&A
Oct 18, 2023 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Yes! In the Olympia Performance Simulator (and in the Sparta CoreModel), you can use the command line option --debug-on-icount 100k to start whatever collection mechanisms you've defined on the command line. For example:

olympia -l top info my_info_log.out --debug-on-icount 100k traces/dhry_riscv.zstf 

This will start collecting a log on the top node after 100k instructions have been retired.

How this works...

Since the command line option is a Sparta command line option, Sparta needs to know which counter in the implemented simulator that represents the icount. This is communicated to Sparta via the derived sparta::app::Simulation instance overriding the method findSemanticCounter_

For …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by danbone
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@klingaard
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants