Hi Carlos Silva Junior: Thanks for your reply. By program specific traces/messages what I mean is, let's say I have a simple binary for "hello", is there a way I can get messages/traces that are accounted for executing this "hello" binary.
The communication monitor captures any packets passed through the interface; I only need those packets that are produced for executing the "hello" binary. Your response is greatly appreciated. Thank you, Rubel Ahmed ________________________________ From: Francisco Carlos via gem5-users <[email protected]> Sent: Monday, September 7, 2020 5:46 PM To: gem5 users mailing list <[email protected]> Cc: Francisco Carlos <[email protected]> Subject: [gem5-users] Re: How to get program specific traces only? Hi Ahmed, I don't know what you mean by program specific traces. To get customized output from a debug-flag, I would suggest you create your own debug-flag and printing the information that you want. (http://learning.gem5.org/book/part2/debugging.html#:~:text=gem5%20provides%20support%20for%20printf,enable%20from%20the%20command%20line.<https://nam04.safelinks.protection.outlook.com/?url=http:%2F%2Flearning.gem5.org%2Fbook%2Fpart2%2Fdebugging.html%23:~:text%3Dgem5%2520provides%2520support%2520for%2520printf%2Cenable%2520from%2520the%2520command%2520line.&data=02%7C01%7Cmdrubelahmed%40usf.edu%7C1e037e2d25974fdd952808d853887f51%7C741bf7dee2e546df8d6782607df9deaa%7C0%7C0%7C637351193005301340&sdata=Twu044YPSjreaMoa5gQsFOnSMZZUd7ni4vBsfl0CvDQ%3D&reserved=0>) Debugging gem5 — gem5 Tutorial 0.1 documentation<https://nam04.safelinks.protection.outlook.com/?url=http:%2F%2Flearning.gem5.org%2Fbook%2Fpart2%2Fdebugging.html%23:~:text%3Dgem5%2520provides%2520support%2520for%2520printf%2Cenable%2520from%2520the%2520command%2520line.&data=02%7C01%7Cmdrubelahmed%40usf.edu%7C1e037e2d25974fdd952808d853887f51%7C741bf7dee2e546df8d6782607df9deaa%7C0%7C0%7C637351193005311333&sdata=ZcS4ycVAVTzVcYUCaEF35T2rF%2BeCODQfugRgzHfe6SM%3D&reserved=0> Debugging gem5¶. In the previous chapters we covered how to create a very simple SimObject. In this chapter, we will replace the simple print to stdout with gem5’s debugging support.. gem5 provides support for printf-style tracing/debugging of your code via debug flags.These flags allow every component to have many debug-print statements, without all of them enabled at the same time. learning.gem5.org I hope this helps. Best regards. ---------------------------------------------------------------------------------------------------------------------------------------------- Francisco Carlos Silva Junior Ph.D student at University of Brasilia ________________________________ De: Ahmed, Md Rubel via gem5-users <[email protected]> Enviado: segunda-feira, 7 de setembro de 2020 20:30 Para: gem5 users mailing list <[email protected]> Cc: Ahmed, Md Rubel <[email protected]> Assunto: [gem5-users] How to get program specific traces only? Hi all, I am using a communication monitor(CommMonitor) to observe packets exchanged at a master and slave interface using the following command: build/X86/gem5.opt --debug-flags=CommMonitor --debug-file=sum_cpu.txt.gz configs/example/se_edit.py -c tests/test-progs/hello/bin/x86/linux/main -n 1 --caches --l2cache --mem-type=DDR3_1600_8x8 --mem-size=2048MB --cpu-type=TimingSimpleCPU In the debug file I see a whole bunch of messages, where I expect the program execution messages should be smaller than what I am getting. Is there a way I can identify which of the DPRINTF messages are related to the program execution? I only need messages that are produced by the program execution. Any help is highly appreciated. Thank you, Rubel Ahmed [EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe.
_______________________________________________ gem5-users mailing list -- [email protected] To unsubscribe send an email to [email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
