mtcp-stack / mtcp

mTCP: A Highly Scalable User-level TCP Stack for Multicore Systems
Other
1.98k stars 436 forks source link

Macro TRACE_DBG not work #194

Closed wtao0221 closed 6 years ago

wtao0221 commented 6 years ago

Hi,

I have uncomment DBG_OPT in mtcp/src/Makefile and recompile mTCP and example app.

But, there is still no debug-related output in log_* file.

wtao0221 commented 6 years ago

BTW, there are logs related to EPOLL, STATE and STREAM.

ajamshed commented 6 years ago

@wtao0221:

Please make sure that the line GCC_OPT += $(DBG_OPT) is also included in the Makefile. I just tried uncommenting lines 27-30 of the Makefile and then I recompiled mTCP src and example apps. I could see debug statements being printed in the log_* files.

wtao0221 commented 6 years ago

Hi, @ajamshed

Thanks for your reply.

I have checked Makefile and there are some output in the log_* files.

For example, I use TRACE_DBG("Hello") in the program. But, there are no Hello being printed in the log files.

wtao0221 commented 6 years ago

I know what's going wrong, thank you.