From: Ferruh Yigit <ferruh.yigit@intel.com>
To: SAKTHIVEL ANAND S <anand.sa88@gmail.com>, users@dpdk.org
Subject: Re: [dpdk-users] DPDK logs enable
Date: Tue, 10 May 2016 15:46:13 +0100 [thread overview]
Message-ID: <5731F435.8090707@intel.com> (raw)
In-Reply-To: <CAOP5GAykODeeEK8m+hf5skdMpwijq4bfLuxHk5jj=sRVgo7-rg@mail.gmail.com>
On 5/10/2016 3:10 PM, SAKTHIVEL ANAND S wrote:
> Hi
>
> Any idea, how to enable debug logs for DPDK applications.i have added these
> lines one by one in the main file.
> 1. #define DEBUG
> 2.rte_set_log_level(DEBUG)
> 3.rte_set_log_type(PMOD,1)
>
> also while run the APP, i have added " --log-type 8 ", but i didnt get
> expected logs. Can some one point me, what did i missed. or how can enable
> DEBUG LOGS.
>
There is a build time configuration option, CONFIG_RTE_LOG_LEVEL, it
became default to RTE_LOG_INFO recently, please update it to
RTE_LOG_DEBUG to get debug messages.
With optimization enabled, CONFIG_RTE_LOG_LEVEL causes log code lower
than defined value optimized out, so setting runtime log level lower
than CONFIG_RTE_LOG_LEVEL doesn't work.
Regards,
ferruh
prev parent reply other threads:[~2016-05-10 14:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-10 14:10 SAKTHIVEL ANAND S
2016-05-10 14:46 ` Ferruh Yigit [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5731F435.8090707@intel.com \
--to=ferruh.yigit@intel.com \
--cc=anand.sa88@gmail.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).