Hi all,

I'm pretty new to m5 so be easy on me. I have a few question related to
code profiling and was hoping that the m5 would be able to meet my
needs.

I have been given a fairly large piece of code that I need to profile.
Basically, I need to collect information on certain section of the code
(that I already know are computationally complex) and derive statistics
on their operation. Ultimately, what I would like to do is identify
components of the code that would be ideal for hardware acceleration.
Unfortunately, since the code was not partitioned with hardware
acceleration in mind (the functions corresponding identically to the
computationally complex operations in their entirety) profiling tools
like gprof do not give satisfactory results. I know this is a pretty
standard thing to do in Computer Engineering so I'm sure someone has
come across the problem before -just not me!

What I would like to do is to demarcate regions of code (not necessary
confined to function calls) from which I could collect information on 1)
the number of instructions required to execute that region (to
eventually derive a MIPS count for that area), and 2) to generate a
figure for memory bandwidth in that region (not necessarily exact, but
in the ball park).

I'm looking at embedded applications so the system would probably be
something like an ARM9 with (maybe) a small on-chip cache. The ARM9 is a
fairly straight forward 5-staged pipelined CPU so it's my belief that
the ALPHA model would give roughly similar (ball park) figures in
simulation.

Could someone give me advice on how this can be accomplished with m5, if
even possible at all?

Best regards,

Stephen

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users

Reply via email to