From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C009FA056A; Wed, 10 Mar 2021 19:32:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A19A522A429; Wed, 10 Mar 2021 19:32:36 +0100 (CET) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id 3996122A3D4 for ; Wed, 10 Mar 2021 19:32:35 +0100 (CET) Received: by mail-pj1-f51.google.com with SMTP id lr1-20020a17090b4b81b02900ea0a3f38c1so461482pjb.0 for ; Wed, 10 Mar 2021 10:32:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NHo34pA4G49Snn71WYVHcMPklsoJqV91qibeC/AY+XE=; b=LPpg+wlQQYVsC49f2gsA0gTjE7Wo7em/5SKVkr4QpTpI52C/4GPTaZuK/EDM1Qytki uhH0cp//AmN5Q/R33i8byn6vaNIBgeLmWcguWOMawGQhGBcKHJxQwqziInHlP5/cfPO9 lSuup64J2289IupmXckJAJ83EP+1nNNNwJu1+QIR1ePK1e8R7T/cNf9q2nwX6s4dPNfS iPyke1iUBtyu6FVGCr1CczSswcFnMvba1LzKTy/H3SVb1bYSD5TAtNVw4U26XguGYMza biERVQfqeoHnRDHLNouIVP8AGVgjeROLuPfx5BlhxoMJr42Hf5bNVrF4pjyRrFEkP7se ujpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NHo34pA4G49Snn71WYVHcMPklsoJqV91qibeC/AY+XE=; b=ql+5elUEiX7FbWwja+75oq5DfaeA6O0KhK4zb2zRPfcOEwkmgGvM1hfuwMLOkCBZup Rr2dlYqpmlCgyFOo7Z2GnZXMNgI1VVj+fbQF9+CIBu8SCT/mf/kl3CEVn2daDeRPSnoI 7ZvedVrvaerX5XVewqZtImM2DxoIOIrI23Kb70ILXQQ0Qvjs8adtbAgAxX35J1PQnfjk 2Rtib5qz0vKBT3+uMQi65NntdwIVV2l3A/zud7tSP+WWSLbnq9QL1KK2bxa30Z5LoegB 9FSrngNmGBddCVayekEY3/3ARbh2l6VvgzS1K/sxA/9kLYDyo/WKaY1mGXkxPOuqagT2 DdWg== X-Gm-Message-State: AOAM531AmqF0CUPO877Q6kHj4x4y2sPTH7fEojWU4Jbz79xVTJCjprDx z4tW9LvtV2jfdvtg/dGwpViC39e73S/y/V6d5a4= X-Google-Smtp-Source: ABdhPJwxN9gOXKwj0kgapK2BFx9fbMdS++ls3ugslqg91rM6I5ncUjxwXG28HKLDhW56RCoWaBGgqXZgJP1YD3Fg724= X-Received: by 2002:a17:90b:305:: with SMTP id ay5mr4863629pjb.74.1615401154323; Wed, 10 Mar 2021 10:32:34 -0800 (PST) MIME-Version: 1.0 References: <20210309122905.46fb344f@hermes.local> <20210310102502.02f5720e@hermes.local> In-Reply-To: <20210310102502.02f5720e@hermes.local> From: Shanmugasundaram M Date: Thu, 11 Mar 2021 00:02:23 +0530 Message-ID: To: Stephen Hemminger Cc: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] Reg DPDK EAL log-level=8 options is not throwing any DEBUG messages in /var/log/messages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" can i use ./sources/dpdk-18.11/drivers/net/vmxnet3/vmxnet3_ethdev.c:1422: rte_log_set_level(vmxnet3_logtype_driver, RTE_LOG_WARNING); after EAL driver routine completes ( pci_common.c, etc) its initialization ? Please let me know where do i need to call rte_log_set_level() in EAL driver init completion function? regards, Shanmugasundaram M On Wed, Mar 10, 2021 at 11:55 PM Stephen Hemminger < stephen@networkplumber.org> wrote: > On Wed, 10 Mar 2021 23:49:17 +0530 > Shanmugasundaram M wrote: > > > THanks Steven for the quick response. I want to enable EAL module > > (complete logging at debug level ) only during bootup of fastpath. Once > > bootup is done, i want to move this module log-level to default/ > original. > > Currently I'm using --log-level='.*',8 along with > > ./sources/fp/common/fp-var.h [ #define FP_LOG_DEFAULT FP_LOG_DEBUG ] > > instead of [ #define FP_LOG_DEFAULT FP_LOG_ERR ]. refer below snip > > > > -#define FP_LOG_DEFAULT FP_LOG_ERR > > +#define FP_LOG_DEFAULT FP_LOG_DEBUG > > The problem is its throwing all the other debug messages like this after > > fastpath started. Any way to disable below message and only log > > bootup of EAL debug messages alone ? > > > > REgards, > > Shanmugasundaram M > > > > > > ebug interface eth3 (port 3) is not operative > > 2021-03-10T18:12:39+00:00 daemon infoblox.localdomain fp-rte[3611]: debug > > packet m=0x36575b600 dropped at fp_process_input():178 > > 2021-03-10T18:12:39+00:00 daemon infoblox.localdomain fp-rte[3611]: info > > fp_ether_input(ifp=eth1 port=1) > > 2021-03-10T18:12:39+00:00 daemon infoblox.localdomain fp-rte[3611]: debug > > ==== mbuf at [0x36866ee80]: 1 segment(s), len=60 port=1 > > 2021-03-10T18:12:39+00:00 daemon infoblox.localdomain fp-rte[3611]: debug > > next=(nil) shared=0 flags=0x0 > > 2021-03-10T18:12:39+00:00 daemon infoblox.localdomain fp-rte[3611]: debug > > ol flags: 0x0 hash: 0x0 > > 2021-03-10T18:12:39+00:00 daemon infoblox.localdomain fp-rte[3611]: debug > > outer offloads: > > 2021-03-10T18:12:39+00:00 daemon infoblox.localdomain fp-rte[3611]: debug > > l2: proto ETH hlen 14 flags > > > > > > > > On Wed, Mar 10, 2021 at 1:59 AM Stephen Hemminger < > > stephen@networkplumber.org> wrote: > > > > > On Wed, 10 Mar 2021 00:30:24 +0530 > > > Shanmugasundaram M wrote: > > > > > > > Dear Team, > > > > > > > > we are using 18.11.1-6WIND DPDK. we are trying to get EAL Debug > messages > > > > and we are not able to see any one from them in /var/log/messages. > Kindly > > > > let me know --log-level=8 is enough or --log-level=*8 is correct OR > > > > --log-level=eal,debug is correct ? > > > > Appreciate your quick response. > > > > > > > > regards, > > > > Shanmugasundaram M > > > > > > DPDK now has log-level on a per-feature level. The old log level was > > > global. > > > The legacy option is what you are using. > > > > > > The document is missing about log-level options. > > > > > > Now log-level takes three forms: > > > --log-level=regex,N > > > --log-level=pattern:N > > > --log-level=N > > > > > > The first takes a regular expressions so for example: > > > -log-level='pmd\..*,8' > > > Would set logging at debug for Poll Mode Drivers. Regex period > > > is match all, not match period. > > > > > > The second form takes a shell style pattern (glob): > > > --log-level='pmd.net.*:debug' > > > Sets debug log level for all Poll Mode Network drivers. > > > All forms take numeric or symbolic names for logging levels in current > > > versions > > > > > > The third form sets the global log level only. > > > > > > The actual logic around what gets logged or not is a union of > > > the global and per-logtype argument. So if global log level is > > > set high (like NOTICE) then no info or debug messages will get printed. > > > > > > In other words, --log-level=8 has no effect both because it only > > > sets the global level (and the default global level already is 8). > > > > > > To turn on all logging. Just do --log-level='.*,8' (or similar) > > > > > > > > > > > > > > > > > If you know what you want, then use a more restrictive log-level to get > just the driver or a particular message type. >