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 04631A0579; Fri, 9 Apr 2021 14:15:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DFED8140EEC; Fri, 9 Apr 2021 14:15:01 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 687F54014D for ; Fri, 9 Apr 2021 14:15:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617970499; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kkaAT4psTmYN0KGO0dFKREn+2G9T26rINSeRwygdLfQ=; b=d3BgYnlynBg2aPfEEsNk/gHmqhoosyi+aQgCA7deC8k+AN75LTV4njvRgcKrZEaTpA4rUV bsy1dD3vOXk6BokvQzvZT53X6/ZMlIbdX5wad3k1GDrs6BhzKN7UxeVJR6+okeUB6nLefH Mf1mnsBY3kfXxXuvSB4FJTEpHwoMzkU= Received: from mail-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-82-wCUuzeSDOTaIucXg3P8IUw-1; Fri, 09 Apr 2021 08:14:56 -0400 X-MC-Unique: wCUuzeSDOTaIucXg3P8IUw-1 Received: by mail-vk1-f197.google.com with SMTP id o128so1177129vka.11 for ; Fri, 09 Apr 2021 05:14:56 -0700 (PDT) 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=kkaAT4psTmYN0KGO0dFKREn+2G9T26rINSeRwygdLfQ=; b=RJww6qUBr3KPfLUDHddWpphX/lXFm42pSxIfQo8C5J7BoHVrzVQCwpYQgozWSDUi6Z topuvD1p+gqgifDN0QZ84Dh17TyRXDQK0iq9MECJD3gveSEP8z75ArWahz9WoLiNuBRA WOqo1FH7PVpPn43GxsddxhlMrtjPVxRX9nlFzwWEYqPjPR6NKpUy3LUA+f80/7bGaif+ zNUxWoVCi377XzwOD1gigiOiUq1aA95H/Lh6SSyz3mTtq+fLoKKsru618VnV8EAZomfm z4YzPjovKiBd1Iyf+0Vf+hk1tCXZKLhabAhZWM0bCFoTANwsz6gCWCq5eCG/WiB4scru bi3A== X-Gm-Message-State: AOAM532xAqAwugmHWJi4rS5upYlQ2F40ZkHpcdInhKTTthPkL4FEI/+d EMwk7KQTFYoBt02K1nGzHKlxez+NHPGHn1JwL4owguLobTIcsh2QGMm76lbzHE6IeuVf30DxF9D Wa2I2n4NLoIKnf144hMM= X-Received: by 2002:a1f:d283:: with SMTP id j125mr10569483vkg.9.1617970495846; Fri, 09 Apr 2021 05:14:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAiV4MfaZXkL8tlxFXQGYbRZ1Ue5pahMi4viradbFNUnGZfaSSmF3i2VROHO34q6kNMA7WKOWOmfTxezQYuP8= X-Received: by 2002:a1f:d283:: with SMTP id j125mr10569457vkg.9.1617970495632; Fri, 09 Apr 2021 05:14:55 -0700 (PDT) MIME-Version: 1.0 References: <20200626114751.22523-1-david.marchand@redhat.com> <20210409110453.20078-1-david.marchand@redhat.com> <20210409110453.20078-3-david.marchand@redhat.com> <1648905.BUbMVhLv2g@thomas> In-Reply-To: <1648905.BUbMVhLv2g@thomas> From: David Marchand Date: Fri, 9 Apr 2021 14:14:44 +0200 Message-ID: To: Thomas Monjalon Cc: dev , Andrew Rybchenko , Lukasz Wojciechowski , Ilya Maximets Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v3 2/3] log: track log level changes 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" On Fri, Apr 9, 2021 at 1:59 PM Thomas Monjalon wrote: > > 09/04/2021 13:04, David Marchand: > > Add a log message when registering log types and changing log levels. > > > > __rte_log_register previous handled both legacy and dynamic logtypes. > > To simplify the code, __rte_log_register is reworked to only handle > > dynamic logtypes and takes a log level. > > > > Example: > > $ DPDK_TEST=logs_autotest ./build/app/test/dpdk-test --no-huge -m 512 \ > > --log-level=lib.eal:debug > > ... > > RTE>>logs_autotest > > == dynamic log types > > EAL: logtype1 logtype level changed from disabled to info > > EAL: logtype2 logtype level changed from disabled to info > > EAL: logtype1 logtype level changed from info to error > > EAL: logtype3 logtype level changed from error to emerg > > EAL: logtype2 logtype level changed from info to emerg > > EAL: logtype3 logtype level changed from emerg to debug > > EAL: logtype1 logtype level changed from error to debug > > EAL: logtype2 logtype level changed from emerg to debug > > This needs to be updated: logtype -> log I refreshed patch 3 commitlog too. Thanks. -- David Marchand