From: Thomas Monjalon <thomas@monjalon.net>
To: Elza Mathew <elza.mathew@intel.com>
Cc: dev@dpdk.org, wenzhuo.lu@intel.com, jingjing.wu@intel.com
Subject: Re: [dpdk-dev] [PATCH] app/testpmd: change log level at run time
Date: Sat, 20 Jan 2018 15:29:53 +0100 [thread overview]
Message-ID: <6232706.WoQsgU34jB@xps> (raw)
In-Reply-To: <1516400350-96747-1-git-send-email-elza.mathew@intel.com>
19/01/2018 23:19, Elza Mathew:
> @@ -16026,6 +16078,7 @@ struct cmd_cmdfile_result {
> (cmdline_parse_inst_t *)&cmd_set_link_down,
> (cmdline_parse_inst_t *)&cmd_reset,
> (cmdline_parse_inst_t *)&cmd_set_numbers,
> + (cmdline_parse_inst_t *)&cmd_set_log,
> (cmdline_parse_inst_t *)&cmd_set_txpkts,
> (cmdline_parse_inst_t *)&cmd_set_txsplit,
> (cmdline_parse_inst_t *)&cmd_set_fwd_list,
> diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
> index d8c9ef0..3c55eb6 100644
> --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst
> +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
> @@ -505,6 +505,25 @@ When retry is enabled, the transmit delay time and number of retries can also be
>
> testpmd> set burst tx delay (microseconds) retry (num)
>
> +set log
> +~~~~~~~
> +
> +Set the log level for a log type::
> +
> + testpmd> set log global|(type) (level)
> +
> +Where:
> +
> +* ``type`` is the log name.
> +
> +* ``level`` is the log level.
> +
> +For example, to change the global log level::
> + testpmd> set log global (level)
> +
> +Regexes can also be used for type. To change log level of user1, user2 and user3::
> + testpmd> set log user[1-3] (level)
> +
> set txpkts
> ~~~~~~~~~~
I know that testpmd code and doc are a bit messy,
but maybe we can find a better place for this command
in the doc and in the code.
As it is very generic, I think it should be one of the first commands.
next prev parent reply other threads:[~2018-01-20 14:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-19 22:19 Elza Mathew
2018-01-20 1:23 ` Ferruh Yigit
2018-01-20 14:29 ` Thomas Monjalon [this message]
2018-01-22 22:09 ` [dpdk-dev] [PATCH v2] " Elza Mathew
2018-01-31 22:15 ` Thomas Monjalon
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=6232706.WoQsgU34jB@xps \
--to=thomas@monjalon.net \
--cc=dev@dpdk.org \
--cc=elza.mathew@intel.com \
--cc=jingjing.wu@intel.com \
--cc=wenzhuo.lu@intel.com \
/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).