[gem5-users] Re: Adding debug ROI to test application

2022-06-08 Thread Gautam Pathak
Hi,

Thanks for the help! It works great.

Thanks and Regards,
Gautam

From: Hoa Nguyen 
Sent: Wednesday, June 8, 2022 2:51 AM
To: The gem5 Users mailing list 
Subject: [gem5-users] Re: Adding debug ROI to test application

Hi,

I think there are a couple of options.

One way is to do m5_exit() right before the ROI, record the current Tick, and 
rerun with --debug-start set to that number.

Another way is that, in the first run, you can do m5_exit() right before the 
ROI, then take a checkpoint. In the next run, you can enable the debug flags 
(and restore the checkpoint).

Regards,
Hoa Nguyen


On Tue, Jun 7, 2022, 15:53 Gautam Pathak 
mailto:gautam.pat...@uwaterloo.ca>> wrote:
Hi,

Is there any way to only trace certain specific areas of interest in test 
application? I am currently using --debug-start and --debug-end but it is very 
difficult to find the exact time when region of interest is executed. Also, I 
looked at m5_work_begin() and m5_work_end() but that seems to be for a 
different thing altogether.

Thanks and Regards,
Gautam
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to 
gem5-users-le...@gem5.org
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Print my stats

2022-06-08 Thread Georgios-Marios Fragkoulis
Hello,

Does anyone know where I can put my print function in order to print my new 
stats?
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] RISCV FS Read-only file system

2022-06-08 Thread Νικόλαος Ταμπουρατζής

Dear gem5 community,

I have successfully run RISCV FS using the following command:

./build/RISCV/gem5.opt configs/example/gem5_library/riscv-fs.py

However, I cannot write anything inside the simulated image because I  
get "Read-only file system". How can I resolve it?
My benchmark produces a number of files and it cannot write them  
during the simulation.


The terminal output:
 _   _  _ _
| | | |/ ___|__ _ _ __ | |   (_)_ __  _   ___  __
| | | | |   / _` | '_ \| |   | | '_ \| | | \ \/ /
| |_| | |__| (_| | | | | |___| | | | | |_| |>  <
 \___/ \\__,_|_| |_|_|_|_| |_|\__,_/_/\_\
Welcome to RiscV

UCanLinux login: root
Password:
root@UCanLinux:~ # ls
index.html
root@UCanLinux:/ # cd /home
root@UCanLinux:/home # ls
root@UCanLinux:/home # mkdir test
mkdir: can't create directory 'test': Read-only file system



Thank you in advance for any help! :)

Best regards,
Nikos
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] riscv simulation doesnt get completed - syscall read still needs retry

2022-06-08 Thread tomjosekallooran
Hi ,

I am trying to run dhrystone on riscv. The number of Loops/Runs = 10.  Once i 
start the run, it doesnt get completed. No error was thrown either:

./build/RISCV/gem5.opt ./configs/example/se.py -c ./tests/dhrystone_riscv_u74 

gem5 Simulator System.  http://gem5.org

gem5 is copyrighted software; use the --copyright option for details.

gem5 version 21.2.1.0

gem5 compiled Jun  8 2022 04:45:26

gem5 started Jun  8 2022 11:40:40

gem5 executing on eden, pid 496235

command line: ./build/RISCV/gem5.opt ./configs/example/se.py -c 
./tests/dhrystone_riscv_u74

Global frequency set at 1 ticks per second

warn: No dot file generated. Please install pydot to generate the dot file and 
pdf.

build/RISCV/mem/mem_interface.cc:791: warn: DRAM device capacity (8192 Mbytes) 
does not match the address range assigned (512 Mbytes)

0: system.remote_gdb: listening for remote gdb on port 7002

\*\*\*\* REAL SIMULATION \*\*\*\*

build/RISCV/sim/simulate.cc:194: info: Entering event queue @ 0.  Starting 
simulation...

build/RISCV/sim/mem_state.cc:443: info: Increasing stack size by one page.

build/RISCV/sim/syscall_emul.cc:74: warn: ignoring syscall mprotect(...) 

Then i tried running with “Exec” debug trace and the following instructions 
were the last of the executed ones:

`4163000: system.cpu: T0 : 0x2a144 @read+14: c_bnez a5, 32  : 
IntAlu : `

`4164000: system.cpu: T0 : 0x2a146 @read+16: addi a7, zero, 63  : 
IntAlu :  D=0x003f`

**`4165000: system.cpu: T0 : 0x2a14a @read+20: ecall  : 
No_OpClass :`**

So then i tried using “All” debug flag and i got the following:

`13157165000: read.wrapped_function_event: EventFunctionWrapped 263105 
scheduled @ 13157215000`

`13157215000: read.wrapped_function_event: EventFunctionWrapped 263105 executed 
@ 13157215000`

`13157215000: system.cpu.[tid:0]: Reading int reg 10 (10) as 0.`

`13157215000: system.cpu.[tid:0]: Reading int reg 11 (11) as 0x85f30.`

`13157215000: system.cpu.[tid:0]: Reading int reg 12 (12) as 0x2000.`

`13157215000: system.cpu: T0 : syscall Retrying read(0, 548656, 8192)...`

`13157215000: system.cpu.[tid:0]: Reading int reg 10 (10) as 0.`

`13157215000: system.cpu.[tid:0]: Reading int reg 11 (11) as 0x85f30.`

`13157215000: system.cpu.[tid:0]: Reading int reg 12 (12) as 0x2000.`

**`13157215000: system.cpu: T0 : syscall read still needs retry.`**

Any suggestion on how to fix it?

Regards,

Tom
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org