Discussion:
benchmark ROI in gem5
(too old to reply)
shervin hajiamini
2012-08-17 16:47:15 UTC
Permalink
Hi all,


I want to specify in gem5 (cpu.cc file) when the region of interest
(ROI) of a benchmark (splash or parsec) starts and when it ends. Does anyone know how I can do
this? I would appreciate any help.


Thanks,

Shervin
Ali Saidi
2012-08-17 16:54:20 UTC
Permalink
I don't think you want to specify this in a cpu.cc file. For PARSEC
you want to modify the hooks library in parsec and add functions like
m5_checkpoint(0,0) and m5_dumpreset_stats(0,0) to the end of
__parsec_roi_begin() and probably and m5_exit(0) to __parsec_roi_end().
I imagine something similar can be done for splash.

You'll need to
change the make file for the hooks to include the m5op_XXXXXX.S file
from the util/m5 directory along with the headers for whatever
architecture you're using.

Ali

On 17.08.2012 12:47, shervin
Post by shervin hajiamini
Hi all,
I want to specify in gem5 (cpu.cc
file) when the region of interest (ROI) of a benchmark (splash or
parsec) starts and when it ends. Does anyone know how I can do this? I
would appreciate any help.
Post by shervin hajiamini
Thanks,
Shervin
Mona Jalal
2013-07-08 19:21:21 UTC
Permalink
Hi,
I am using hooks and have modified them in a way to just run the ROI in code
for X86. But unfortunately m5_exit(0) in the end of ROI_end in hooks.c
doesn't work though I have provided its assembly code and continues to run
to the end of the benchmark. I was wondering if you might be aware of any
solution to this:
x86_m5.S http://paste.ubuntu.com/5856273/
hooks.c http://paste.ubuntu.com/5856278/
part of the benchmark which includes the ROI: backprop_kernel.c
http://paste.ubuntu.com/5856280/


Here's my system.terminal which shows that simulation continued even after
the m5_exit(0) put in the end of the rodinia_roi_end in hooks.c:

after m5_checkpoint(0,0)
[HOOKS] Entering ROI
[HOOKS] Leaving ROI
Training done
[HOOKS] Terminating ...
Simulation is successfully finished!

Also what are the alternatives to using m5_exit(0) in the end of ROI_end()
function in hooks.c ?

Best regards,
Mona Jalal.
Ali Saidi
2013-07-23 03:31:14 UTC
Permalink
I th
Post by Mona Jalal
Hi,
I am using hooks and have modified them in a way to just run the ROI in code
for X86. But unfortunately m5_exit(0) in the end of ROI_end in hooks.c
doesn't work though I have provided its assembly code and continues to run
to the end of the benchmark. I was wondering if you might be aware of any
x86_m5.S http://paste.ubuntu.com/5856273/
hooks.c http://paste.ubuntu.com/5856278/
part of the benchmark which includes the ROI: backprop_kernel.c
http://paste.ubuntu.com/5856280/
Here's my system.terminal which shows that simulation continued even after
after m5_checkpoint(0,0)
[HOOKS] Entering ROI
[HOOKS] Leaving ROI
Training done
[HOOKS] Terminating ...
Simulation is successfully finished!
Also what are the alternatives to using m5_exit(0) in the end of ROI_end()
function in hooks.c ?
Best regards,
Mona Jalal.
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
I think that is the best way, and it certainly should work. I think parsec compiles the hooks as a library, are you sure you got that updated on the disk image? Does the m5_checkpoint() call work?

Ali

Anh Nguyen
2012-08-17 16:57:41 UTC
Permalink
Hi Shervin,

I would consider using Systemtap if you are on Linux.

Anh

On Fri, Aug 17, 2012 at 9:47 AM, shervin hajiamini
Post by shervin hajiamini
Hi all,
I want to specify in gem5 (cpu.cc file) when the region of interest (ROI)
of a benchmark (splash or parsec) starts and when it ends. Does anyone know
how I can do this? I would appreciate any help.
Thanks,
Shervin
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Amin Farmahini
2012-08-17 17:05:30 UTC
Permalink
Ahn,

I am not familiar with SystemTap, but I just took a look at its beginners
guide and I believe you cannot use this tool for the kind of things Shervin
would like to do. This is because "The host system must be the same
architecture and running the same distribution of Linux as the target
system in order for the built instrumentation module to work."
My understanding could be wrong, though.

Thanks,
Amin
Post by Anh Nguyen
Systemtap
Anthony Gutierrez
2012-08-17 17:13:14 UTC
Permalink
I've used an x86_64 host with Ubuntu to build SystemTap modules and run
them on Android ARM, so it's doable. But, I don't think SystemTap is
relevant here if you're trying to do architectural simulation. SystemTap is
a profiling tool that uses kprobes; it doesn't really do userspace
profiling last time I checked.

-Tony
Post by Amin Farmahini
Ahn,
I am not familiar with SystemTap, but I just took a look at its beginners
guide and I believe you cannot use this tool for the kind of things Shervin
would like to do. This is because "The host system must be the same
architecture and running the same distribution of Linux as the target
system in order for the built instrumentation module to work."
My understanding could be wrong, though.
Thanks,
Amin
Post by Anh Nguyen
Systemtap
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Ali Saidi
2012-08-17 17:26:40 UTC
Permalink
Some versions of systemtap do, however I'd still just instrument the
binaries/libraries with m5 ops: http://gem5.org/M5ops

Ali

On
Post by Anthony Gutierrez
I've used an x86_64 host
with Ubuntu to build SystemTap modules and run them on Android ARM, so
it's doable. But, I don't think SystemTap is relevant here if you're
trying to do architectural simulation. SystemTap is a profiling tool
that uses kprobes; it doesn't really do userspace profiling last time I
checked.
Post by Anthony Gutierrez
-Tony
On Fri, Aug 17, 2012 at 1:05 PM, Amin Farmahini
Post by Amin Farmahini
Ahn,
I am not familiar with
SystemTap, but I just took a look at its beginners guide and I believe
you cannot use this tool for the kind of things Shervin would like to
do. This is because "The host system must be the same architecture and
running the same distribution of Linux as the target system in order for
the built instrumentation module to work."
Post by Anthony Gutierrez
Post by Amin Farmahini
My understanding could be
wrong, though.
Post by Anthony Gutierrez
Post by Amin Farmahini
Thanks,
Amin
On Fri, Aug 17, 2012 at
11:57 AM, Anh Nguyen <***@gmail.com [1]> wrote:
Systemtap
Post by Anthony Gutierrez
Post by Amin Farmahini
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [3]




Links:
------
[1] mailto:***@gmail.com
[2]
mailto:gem5-***@gem5.org
[3]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[4]
mailto:***@gmail.com
Anh Nguyen
2012-08-17 17:31:56 UTC
Permalink
Tony,

It traces both kernel and user-space codes. I traced JVM before.

Anh-
Post by Anthony Gutierrez
I've used an x86_64 host with Ubuntu to build SystemTap modules and run
them on Android ARM, so it's doable. But, I don't think SystemTap is
relevant here if you're trying to do architectural simulation. SystemTap is
a profiling tool that uses kprobes; it doesn't really do userspace
profiling last time I checked.
-Tony
Post by Amin Farmahini
Ahn,
I am not familiar with SystemTap, but I just took a look at its beginners
guide and I believe you cannot use this tool for the kind of things Shervin
would like to do. This is because "The host system must be the same
architecture and running the same distribution of Linux as the target
system in order for the built instrumentation module to work."
My understanding could be wrong, though.
Thanks,
Amin
Post by Anh Nguyen
Systemtap
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Amin Farmahini
2012-08-17 18:51:28 UTC
Permalink
I have a somewhat similar question. The method Ali mentioned works well
when your ROI is large, but what if your ROI is short? For example the loop
body of a loop that is executed many times.
I believe using m5_dumpreset_stats is not doable in this case for two
reasons: (1) since the loop body is short, the overhead of
m5_dumpreset_stats is not negiligible. m5_dumpreset_stats is also executed
non-speculatively which imposes performance cost. (2) the loop is exectued
many times so it dumps stats every time the loop is executed.
I am interested in finding the execution time of the loop body (and not the
loop boundary checking, etc). So I was wondering if there is such a way to
do fine-grained profling within Gem5?

Thanks,
Amin
Post by Anh Nguyen
Tony,
It traces both kernel and user-space codes. I traced JVM before.
Anh-
Post by Anthony Gutierrez
I've used an x86_64 host with Ubuntu to build SystemTap modules and run
them on Android ARM, so it's doable. But, I don't think SystemTap is
relevant here if you're trying to do architectural simulation. SystemTap is
a profiling tool that uses kprobes; it doesn't really do userspace
profiling last time I checked.
-Tony
Post by Amin Farmahini
Ahn,
I am not familiar with SystemTap, but I just took a look at its
beginners guide and I believe you cannot use this tool for the kind of
things Shervin would like to do. This is because "The host system must be
the same architecture and running the same distribution of Linux as the
target system in order for the built instrumentation module to work."
My understanding could be wrong, though.
Thanks,
Amin
Post by Anh Nguyen
Systemtap
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Ali Saidi
2012-08-17 20:18:02 UTC
Permalink
You can solve one of your probrems with the m5_work_begin()
m5_work_end() ops that record how long a "work item" takes to run,
however these are also marked non-speculative, although you could
probably allow them to be speculative if you wanted to and perhaps
cleanup the mess in the instruction destructor if it ended up being
squashed.

Also depending on exactly what you want you can use PC based
events cause events to happen in gem5 when the PC reaches certain
values. If you know the PC of your loop this should be a workable
solution.

Ali
Post by Amin Farmahini
I have
a somewhat similar question. The method Ali mentioned works well when
your ROI is large, but what if your ROI is short? For example the loop
body of a loop that is executed many times.
Post by Amin Farmahini
I believe using
m5_dumpreset_stats is not doable in this case for two reasons: (1) since
the loop body is short, the overhead of m5_dumpreset_stats is not
negiligible. m5_dumpreset_stats is also executed non-speculatively which
imposes performance cost. (2) the loop is exectued many times so it
dumps stats every time the loop is executed.
Post by Amin Farmahini
I am interested in
finding the execution time of the loop body (and not the loop boundary
checking, etc). So I was wondering if there is such a way to do
fine-grained profling within Gem5?
Post by Amin Farmahini
Thanks,
Amin
On Fri, Aug
Post by Anh Nguyen
Tony,
It traces both kernel and user-space codes. I traced JVM
before.
Post by Amin Farmahini
Post by Anh Nguyen
Anh-
On Fri, Aug 17, 2012 at 10:13 AM, Anthony
Post by Anthony Gutierrez
I've used an x86_64
host with Ubuntu to build SystemTap modules and run them on Android ARM,
so it's doable. But, I don't think SystemTap is relevant here if you're
trying to do architectural simulation. SystemTap is a profiling tool
that uses kprobes; it doesn't really do userspace profiling last time I
checked.
Post by Amin Farmahini
Post by Anh Nguyen
Post by Anthony Gutierrez
-Tony
On Fri, Aug 17, 2012 at 1:05 PM, Amin
Post by Amin Farmahini
Ahn,
I am
not familiar with SystemTap, but I just took a look at its beginners
guide and I believe you cannot use this tool for the kind of things
Shervin would like to do. This is because "The host system must be the
same architecture and running the same distribution of Linux as the
target system in order for the built instrumentation module to work."
Post by Amin Farmahini
Post by Anh Nguyen
Post by Anthony Gutierrez
Post by Amin Farmahini
My understanding could be wrong, though.
Thanks,
Amin
Post by Amin Farmahini
Post by Anh Nguyen
Post by Anthony Gutierrez
Post by Amin Farmahini
On Fri, Aug 17, 2012 at 11:57 AM, Anh Nguyen
Post by Anh Nguyen
Systemtap
_______________________________________________
Post by Amin Farmahini
Post by Anh Nguyen
Post by Anthony Gutierrez
Post by Amin Farmahini
gem5-users mailing
list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [3]
_______________________________________________
Post by Amin Farmahini
Post by Anh Nguyen
Post by Anthony Gutierrez
gem5-users mailing
list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [6]
_______________________________________________
Post by Amin Farmahini
Post by Anh Nguyen
gem5-users mailing
list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [9]




Links:
------
[1] mailto:***@gmail.com
[2]
mailto:gem5-***@gem5.org
[3]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[4]
mailto:***@gmail.com
[5] mailto:gem5-***@gem5.org
[6]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[7]
mailto:***@umich.edu
[8] mailto:gem5-***@gem5.org
[9]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[10]
mailto:***@gmail.com
Anh Nguyen
2012-08-17 17:30:10 UTC
Permalink
Amin,

I am not sure what Shervin's environment is like and why cross compilation
would be required in the first place - why not working solely on the target
machine.
He may have other limitations, which I am not aware of.

Anh-
Post by Amin Farmahini
Ahn,
I am not familiar with SystemTap, but I just took a look at its beginners
guide and I believe you cannot use this tool for the kind of things Shervin
would like to do. This is because "The host system must be the same
architecture and running the same distribution of Linux as the target
system in order for the built instrumentation module to work."
My understanding could be wrong, though.
Thanks,
Amin
Post by Anh Nguyen
Systemtap
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
shervin hajiamini
2012-08-17 19:23:15 UTC
Permalink
Hi guys,

Thank you very much for all your replies. My host machine is X86 (32 bits) and target machine is Linux Ubuntu.

Regards,
Shervin

--- On Fri, 8/17/12, gem5-users-***@gem5.org <gem5-users-***@gem5.org> wrote:

From: gem5-users-***@gem5.org <gem5-users-***@gem5.org>
Subject: gem5-users Digest, Vol 73, Issue 32
To: gem5-***@gem5.org
Date: Friday, August 17, 2012, 11:20 PM

Send gem5-users mailing list submissions to
    gem5-***@gem5.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
or, via email, send a message with subject or body 'help' to
    gem5-users-***@gem5.org

You can reach the person managing the list at
    gem5-users-***@gem5.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gem5-users digest..."


Today's Topics:

   1. Re: benchmark ROI in gem5 (Amin Farmahini)
   2. Re: benchmark ROI in gem5 (Anthony Gutierrez)
   3. Re: benchmark ROI in gem5 (Ali Saidi)
   4. Re: benchmark ROI in gem5 (Anh Nguyen)
   5. Re: benchmark ROI in gem5 (Anh Nguyen)
   6. Re: benchmark ROI in gem5 (Amin Farmahini)


----------------------------------------------------------------------

Message: 1
Date: Fri, 17 Aug 2012 12:05:30 -0500
From: Amin Farmahini <***@gmail.com>
To: gem5 users mailing list <gem5-***@gem5.org>
Subject: Re: [gem5-users] benchmark ROI in gem5
Message-ID:
    <CAJWO9avMvDrMnOh-1P=***@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Ahn,

I am not familiar with SystemTap, but I just took a look at its beginners
guide and I believe you cannot use this tool for the kind of things Shervin
would like to do. This is because "The host system must be the same
architecture and running the same distribution of Linux as the target
system in order for the built instrumentation module to work."
My understanding could be wrong, though.

Thanks,
Amin
Post by Anh Nguyen
Systemtap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20120817/b04f0467/attachment-0001.html>

------------------------------

Message: 2
Date: Fri, 17 Aug 2012 13:13:14 -0400
From: Anthony Gutierrez <***@umich.edu>
To: gem5 users mailing list <gem5-***@gem5.org>
Subject: Re: [gem5-users] benchmark ROI in gem5
Message-ID:
    <CAEQEbpS9gVj725wfVCNt9Mbm8yRBFb7aeYM017eTu-+***@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I've used an x86_64 host with Ubuntu to build SystemTap modules and run
them on Android ARM, so it's doable. But, I don't think SystemTap is
relevant here if you're trying to do architectural simulation. SystemTap is
a profiling tool that uses kprobes; it doesn't really do userspace
profiling last time I checked.

-Tony
Post by Anh Nguyen
Ahn,
I am not familiar with SystemTap, but I just took a look at its beginners
guide and I believe you cannot use this tool for the kind of things Shervin
would like to do. This is because "The host system must be the same
architecture and running the same distribution of Linux as the target
system in order for the built instrumentation module to work."
My understanding could be wrong, though.
Thanks,
Amin
Post by Anh Nguyen
Systemtap
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20120817/f0795635/attachment-0001.html>

------------------------------

Message: 3
Date: Fri, 17 Aug 2012 13:26:40 -0400
From: Ali Saidi <***@umich.edu>
To: gem5 users mailing list <gem5-***@gem5.org>
Subject: Re: [gem5-users] benchmark ROI in gem5
Message-ID: <***@overt.org>
Content-Type: text/plain; charset="utf-8"



Some versions of systemtap do, however I'd still just instrument the
binaries/libraries with m5 ops: http://gem5.org/M5ops

Ali

On
Post by Anh Nguyen
I've used an x86_64 host
with Ubuntu to build SystemTap modules and run them on Android ARM, so
it's doable. But, I don't think SystemTap is relevant here if you're
trying to do architectural simulation. SystemTap is a profiling tool
that uses kprobes; it doesn't really do userspace profiling last time I
checked.
Post by Anh Nguyen
-Tony
On Fri, Aug 17, 2012 at 1:05 PM, Amin Farmahini
Post by Anh Nguyen
Ahn,
I am not familiar with
SystemTap, but I just took a look at its beginners guide and I believe
you cannot use this tool for the kind of things Shervin would like to
do. This is because "The host system must be the same architecture and
running the same distribution of Linux as the target system in order for
the built instrumentation module to work."
Post by Anh Nguyen
Post by Anh Nguyen
My understanding could be
wrong, though.
Post by Anh Nguyen
Post by Anh Nguyen
Thanks,
Amin
On Fri, Aug 17, 2012 at
11:57 AM, Anh Nguyen <***@gmail.com [1]> wrote:
Systemtap
Post by Anh Nguyen
Post by Anh Nguyen
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [3]




Links:
------
[1] mailto:***@gmail.com
[2]
mailto:gem5-***@gem5.org
[3]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[4]
mailto:***@gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20120817/96c487be/attachment-0001.html>

------------------------------

Message: 4
Date: Fri, 17 Aug 2012 10:30:10 -0700
From: Anh Nguyen <***@gmail.com>
To: gem5 users mailing list <gem5-***@gem5.org>
Subject: Re: [gem5-users] benchmark ROI in gem5
Message-ID:
    <CAPxV-eZAuMnvUtkL-yKppKeg1fDm6mVrs-R+***@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Amin,

I am not sure what Shervin's environment is like and why cross compilation
would be required in the first place - why not working solely on the target
machine.
He may have other limitations, which I am not aware of.

Anh-
Post by Anh Nguyen
Ahn,
I am not familiar with SystemTap, but I just took a look at its beginners
guide and I believe you cannot use this tool for the kind of things Shervin
would like to do. This is because "The host system must be the same
architecture and running the same distribution of Linux as the target
system in order for the built instrumentation module to work."
My understanding could be wrong, though.
Thanks,
Amin
Post by Anh Nguyen
Systemtap
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20120817/6cd2d1d4/attachment-0001.html>

------------------------------

Message: 5
Date: Fri, 17 Aug 2012 10:31:56 -0700
From: Anh Nguyen <***@gmail.com>
To: gem5 users mailing list <gem5-***@gem5.org>
Subject: Re: [gem5-users] benchmark ROI in gem5
Message-ID:
    <CAPxV-eaJCSq2z+ZWSCiVKG9fEq29giZhMPjyNE7+***@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Tony,

It traces both kernel and user-space codes. I traced JVM before.

Anh-
Post by Anh Nguyen
I've used an x86_64 host with Ubuntu to build SystemTap modules and run
them on Android ARM, so it's doable. But, I don't think SystemTap is
relevant here if you're trying to do architectural simulation. SystemTap is
a profiling tool that uses kprobes; it doesn't really do userspace
profiling last time I checked.
-Tony
Post by Anh Nguyen
Ahn,
I am not familiar with SystemTap, but I just took a look at its beginners
guide and I believe you cannot use this tool for the kind of things Shervin
would like to do. This is because "The host system must be the same
architecture and running the same distribution of Linux as the target
system in order for the built instrumentation module to work."
My understanding could be wrong, though.
Thanks,
Amin
Post by Anh Nguyen
Systemtap
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20120817/2f6c2bde/attachment-0001.html>

------------------------------

Message: 6
Date: Fri, 17 Aug 2012 13:51:28 -0500
From: Amin Farmahini <***@gmail.com>
To: gem5 users mailing list <gem5-***@gem5.org>
Subject: Re: [gem5-users] benchmark ROI in gem5
Message-ID:
    <CAJWO9av8xX12aiG_9=rZCM38xrUewDjR-XQ9-0UkB=***@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I have a somewhat similar question. The method Ali mentioned works well
when your ROI is large, but what if your ROI is short? For example the loop
body of a loop that is executed many times.
I believe using m5_dumpreset_stats is not doable in this case for two
reasons: (1) since the loop body is short, the overhead of
m5_dumpreset_stats is not negiligible. m5_dumpreset_stats is also executed
non-speculatively which imposes performance cost. (2) the loop is exectued
many times so it dumps stats every time the loop is executed.
I am interested in finding the execution time of the loop body (and not the
loop boundary checking, etc). So I was wondering if there is such a way to
do fine-grained profling within Gem5?

Thanks,
Amin
Post by Anh Nguyen
Tony,
It traces both kernel and user-space codes. I traced JVM before.
Anh-
Post by Anh Nguyen
I've used an x86_64 host with Ubuntu to build SystemTap modules and run
them on Android ARM, so it's doable. But, I don't think SystemTap is
relevant here if you're trying to do architectural simulation. SystemTap is
a profiling tool that uses kprobes; it doesn't really do userspace
profiling last time I checked.
-Tony
Post by Anh Nguyen
Ahn,
I am not familiar with SystemTap, but I just took a look at its
beginners guide and I believe you cannot use this tool for the kind of
things Shervin would like to do. This is because "The host system must be
the same architecture and running the same distribution of Linux as the
target system in order for the built instrumentation module to work."
My understanding could be wrong, though.
Thanks,
Amin
Post by Anh Nguyen
Systemtap
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20120817/1d721f9c/attachment.html>

------------------------------

_______________________________________________
gem5-users mailing list
gem5-***@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

End of gem5-users Digest, Vol 73, Issue 32
******************************************
Continue reading on narkive:
Loading...