Hi, Francisco Carlos,

Thanks. This is exactly the piece of code I want look into. Thank you so much.

Best regards.

Yuan

Sent from Mail for Windows 10

From: Francisco Carlos
Sent: Monday, September 2, 2019 10:54 AM
To: gem5 users mailing list
Subject: Re: [gem5-users] how to define combined debug flags.

Hi, Yuan

You can see the compund flags definition in the SConscript files.

Here follows an example how you can define your own compound flags

CompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
    'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
    'ExecResult', 'ExecSymbol', 'ExecThread',
    'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
    'ExecAsid', 'ExecFlags' ])

This example was taken from src/cpu/SConscript 

In this example, the compound flag ExecAll is composed by ExecEnable, ExecCPSeq 
and so on.



----------------------------------------------------------------------------------------------------------------------------------------------
Francisco Carlos Silva Junior 
Doutorando em Ciência da Computação na Universidade de Brasília
WhatsApp : (61) 99572-7481
Skype: juninho.u...@hotmail.com


De: gem5-users <gem5-users-boun...@gem5.org> em nome de yuan <syu...@ncsu.edu>
Enviado: segunda-feira, 2 de setembro de 2019 11:49
Para: gem5 users mailing list <gem5-users@gem5.org>
Assunto: Re: [gem5-users] how to define combined debug flags. 
 
Hi, Francisco,
 
Yes, this is exactly what I want to do. Thank you so much. But I noticed that 
with --debug-help, there is some compound flags in the simulator, and I tried 
to use grep command to find where they were implemented but find nothing. So I 
am wondering how can we define a compound flags like this by ourselves.
 
Best regards.
 
Yuan
 
Sent from Mail for Windows 10
 
From: Francisco Carlos
Sent: Monday, September 2, 2019 10:44 AM
To: gem5 users mailing list
Subject: Re: [gem5-users] how to define combined debug flags.
 
Hi Yuan,
 
You can use, for example: ./build/x86/gem5.opt --debug-flag=Fetch,Decode 
--debug-file=debug.out. This command will show prints from both flags. So you 
just change Fetch and Decode flag to your debugs flags.
 
I don't know if i understand your question.  
 
----------------------------------------------------------------------------------------------------------------------------------------------
Francisco Carlos Silva Junior
Ph.D Student at University of Brasilia
 

De: gem5-users <gem5-users-boun...@gem5.org> em nome de yuan <syu...@ncsu.edu>
Enviado: segunda-feira, 2 de setembro de 2019 11:35
Para: gem5-users@gem5.org <gem5-users@gem5.org>
Assunto: [gem5-users] how to define combined debug flags. 
 
Hi, all,
 
I am trying to combined different user-defined debug flags in my modeling. We 
know that in learning-gem5 book by Dr.Jason Lowe-Power,  there is tutorial tell 
us how to add single debugs flags by ourselves, but how can we define a 
combined debugs flags. I mean, I have several debugs flags defined by myself in 
different files and I want to dump them out in simulation, how can I do it? Can 
anyone give some hints? Thanks so much.
 
Best regards.
 
Yuan
 
Sent from Mail for Windows 10
 
 

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

Reply via email to