-
Notifications
You must be signed in to change notification settings - Fork 820
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
How can I get dynamic instruction count? #14
Comments
The proxy kernel can do this for you with its -s flag (try spike pk -s On Mon, Mar 23, 2015 at 1:23 AM, Channoh Kim notifications@github.com
|
Good. Thanks! |
Is there an updated and current way to get dynamic instruction count? This no longer works. |
Is there a way to get a more detailed breakdown of types of instructions executed? |
Hi, You can check out the implemented features and ongoing features at - https://bitbucket.org/anmol07/spikepost |
Can that one differentiate between instructions in the user program vs instructions from pk? |
Currently we are processing log files using pure Python. These suffice for the common riscv benchmarks. I am looking at a numpy/spark backend for faster analytics. As to the other part of your question, I am not sure if I understand correctly. Could you please elaborate a bit about what you mean instructions generated by pk? |
What I mean is when you execute a program with |
You are right. Syscalls like printf will be inserted by pk. In
spikepost/Rita we also plan to add a feature of skip-address.. where the
profiling skips sections of the user specified address range for all or
certain histograms.
Again this is work in progress. Might it take its time for the feature to
get plugged in.
…On Thu 21 Jun, 2018, 9:02 PM Ahmed Samara, ***@***.***> wrote:
What I mean is when you execute a program with spike pk <prog>, you
aren't just running your program, you are also running pk. So not every
instruction that is a part of the log is a part of the program.
But as I type this out I realized pk is only necessary for me because of
the printf statements.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE-sxfwC6s2dqDwDoqR1jbwK44cDdAc3ks5t-7yRgaJpZM4Dy68v>
.
|
We already have a feature of selecting an address range where you want the profiling to happen. It can be extended to incorporate address blocks that have to be skipped. Will add that as an enhancement in the repo. |
I think the problem with using a full log file is that for complicated programs, it becomes really huge. for the program I was trying to benchmark, it produced a 300GB log file and then crashed because it run out of HDD space. I could move it onto a larger system but at that point, parsing will also be ridiculous. It's possible I did something wrong. |
Hi,
I want to get dynamic instruction count via Spike, but the disassembly codes from -d option (i.e.,
spike -d pk hello
and:r
) is weird.How can I get dynamic instruction count via Spike?
The text was updated successfully, but these errors were encountered: