[gem5-users] Re: Get gem5 output directory from python config

2023-08-23 Thread Caio Vieira via gem5-users

Hi,

It was exactly what I was looking for. Thank you for the quick answer :)

Kind Regards,
Caio Vieira

On 23.08.23 11:38, Giacomo Travaglini wrote:


Hi,

m5.options.outdir is probably what you are looking for.

Kind Regards

Giacomo

*From: *Caio Vieira via gem5-users 
*Date: *Wednesday, 23 August 2023 at 10:24
*To: *The gem5 Users mailing list 
*Cc: *Caio Vieira 
*Subject: *[gem5-users] Get gem5 output directory from python config

Hi,

I would like to know how to get the gem5 output directory (flags
--outdir=DIR, -d=DIR in gem5's binary) from the python config script. If
this feature is not implemented, then it would be nice to make it
available by creating a function in src/gem5/runtime.py and allow the
user to probe this like get_runtime_isa().

Reason: My goal is to create a better communication between host and
guest by using m5's writefile. However, I've noticed that paths given to
writefile starts from gem5's output directory. I know that I can work
around this issue by creating an argument in my python script and give
it the same value I pass to gem5 --outdir.

Cheers,
Caio Vieira
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended 
recipient, please notify the sender immediately and do not disclose 
the contents to any other person, use it for any purpose, or store or 
copy the information in any medium. Thank you. ___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Re: Get gem5 output directory from python config

2023-08-23 Thread Giacomo Travaglini via gem5-users
Hi,

m5.options.outdir is probably what you are looking for.

Kind Regards

Giacomo

From: Caio Vieira via gem5-users 
Date: Wednesday, 23 August 2023 at 10:24
To: The gem5 Users mailing list 
Cc: Caio Vieira 
Subject: [gem5-users] Get gem5 output directory from python config
Hi,

I would like to know how to get the gem5 output directory (flags
--outdir=DIR, -d=DIR in gem5's binary) from the python config script. If
this feature is not implemented, then it would be nice to make it
available by creating a function in src/gem5/runtime.py and allow the
user to probe this like get_runtime_isa().

Reason: My goal is to create a better communication between host and
guest by using m5's writefile. However, I've noticed that paths given to
writefile starts from gem5's output directory. I know that I can work
around this issue by creating an argument in my python script and give
it the same value I pass to gem5 --outdir.

Cheers,
Caio Vieira
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org