From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama50.ecl.ntt.co.jp (tama50.ecl.ntt.co.jp [129.60.39.147]) by dpdk.org (Postfix) with ESMTP id 6F6AF1BD40 for ; Fri, 21 Dec 2018 05:13:00 +0100 (CET) Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id wBL4CwL5004689; Fri, 21 Dec 2018 13:12:58 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 8C5E76385E8; Fri, 21 Dec 2018 13:12:58 +0900 (JST) Received: from localhost.localdomain (lobster.nslab.ecl.ntt.co.jp [129.60.13.95]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 74CFE63851E; Fri, 21 Dec 2018 13:12:58 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp Date: Fri, 21 Dec 2018 13:10:38 +0900 Message-Id: <1545365441-9864-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.7.4 X-TM-AS-MML: disable Subject: [spp] [PATCH 0/3] Add utility functions for debug log X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2018 04:13:01 -0000 From: Yasufumi Ogawa Hi, Dynamic logging of DPDK is useful to configure log level only for required modules. However, it is a little complex to use, for example, for changing log level of type of `user*` simply to RTE_LOG_DEBUG. This update is to add utility functions to change the log level of `user*` in more simple way. If you change the level of RTE_LOGTYPE_USER1 to RTE_LOG_DEBUG, simply call `set_user_log_debug(1)`. You are also able to change to any of log level like as `set_user_log_level(1, RTE_LOG_INFO)`. Default global log level is RTE_LOG_INFO, so you should change global level with `--log-level` option of EAL from command line or call `rte_log_set_global_level()` from inside of your program. Thanks, Yasufumi Yasufumi Ogawa (3): shared: add util functions to set log level primary: change dynamic log level to RTE_LOG_DEBUG spp_nfv: change dynamic log level to RTE_LOG_DEBUG src/nfv/nfv.c | 2 ++ src/primary/main.c | 2 ++ src/shared/common.c | 37 ++++++++++++++++++++++++++++++++++++- src/shared/common.h | 6 ++++++ 4 files changed, 46 insertions(+), 1 deletion(-) -- 2.7.4