1/1

|
Error with mem profile tool
by vrpatil on Feb 14, 2010 |
vrpatil
Posts: 10 Joined: Jun 24, 2009 Last seen: Dec 24, 2011 |
||
|
hello,
I am facing some strange error with memory profile tool. I have simulator memory profile file logged, when I tried to reconvert the file to readable form using or32-elf-mprofile, it works well for detailed mode. But fails for other mode of operation. Below is the command I issued, and error I received.
or32-elf-mprofile -m=a --filename=sim.mprofile 0 4194304 > sim.m.log
mprofile: illegal value -m|--mode==a
Usage: or32-elf-mprofile [-v|--version] [-h|--help] [-m|--mode=] [-g|--group=] [-f|--filename=]
Can anyone help me in this regard. It seems from documentation and going through code also the option "-m=a" is correct. Is there anything else I am missing.
|
|||
|
RE: Error with mem profile tool
by jeremybennett on Feb 15, 2010 |
jeremybennett
Posts: 689 Joined: May 29, 2008 Last seen: Feb 9, 2012 |
||
|
Hi Vinay When I released Or1ksim 0.3.0, I separated out the profiling code as commands. It looked old, and seemed like it needed a lot more work. It seems like you've found an area where more work is required. Your best hope is to look at the source code and see if you can figure out how to fix it. If you do work it out, post the solution here, so it can be incorporated. HTH Jeremy
-- |
|||
|
RE: Error with mem profile tool
by vrpatil on Feb 19, 2010 |
vrpatil
Posts: 10 Joined: Jun 24, 2009 Last seen: Dec 24, 2011 |
||
|
hi Jeremy,
I figured out the error, the regexec should be run in extended mode(REG_EXTENDED) for mode argument parsing. I made small patch of file mprofiler.c, which is attached with post. I am trying to log global variables access using simulator. Do you have any idea how to implement that. I know ELF file has symbol table, trying to figure out how to link those symbols to memory locations they are loaded in simulator. Thanks.
mprofile.patch (2 kb)
|
|||
|
RE: Error with mem profile tool
by jeremybennett on Feb 24, 2010 |
jeremybennett
Posts: 689 Joined: May 29, 2008 Last seen: Feb 9, 2012 |
||
|
Hi Vinay, Thanks for the patch. I've posted it in the bugtracker, so it doesn't get missed on the next release. I'm not an expert on ELF. Your best bet is to download GNU binutils and read some of the internal documentation. HTH Jeremy
-- |
|||
1/1

