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 E3A5FA0A02; Wed, 24 Mar 2021 11:32:40 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 654F54067B; Wed, 24 Mar 2021 11:32:40 +0100 (CET) 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 061404014F for ; Wed, 24 Mar 2021 11:32:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616581958; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZtkDEZBi64KhxatugtQ/kD4aTldMpQ4uyguRMceImO4=; b=JkwdMtMcfyDYa3DgKlS+4+SKWHvE7W8ortYdy1qjSTmuXJY1RDBUOVHMCAoQKFt42aUy/4 ZsxC7UNSmxiRGII0JgQ/NJ/UConZxYqncj4uqWpNqXyQ8pDaLa5GkU59aLfKRBKiuVafUs hF9tB/7hILodVCcW4yZ8s3yhcpFb7og= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-320-9IScQNU7OlSU69vbiamYdA-1; Wed, 24 Mar 2021 06:32:35 -0400 X-MC-Unique: 9IScQNU7OlSU69vbiamYdA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7B463180FCA0; Wed, 24 Mar 2021 10:32:34 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.233]) by smtp.corp.redhat.com (Postfix) with ESMTP id EAF3060BE5; Wed, 24 Mar 2021 10:32:32 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: arybchenko@solarflare.com, l.wojciechow@partner.samsung.com Date: Wed, 24 Mar 2021 11:32:10 +0100 Message-Id: <20210324103213.29922-1-david.marchand@redhat.com> In-Reply-To: <20200626114751.22523-1-david.marchand@redhat.com> References: <20200626114751.22523-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH v2 0/3] 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" Here is a little series, following RFC [1]. No change in behavior expected, but reviews welcome ! :-) 1: https://patchwork.dpdk.org/project/dpdk/list/?series=10632 Changes since v1: - some cleanup in patch 1, - some precision in description of patch 2, Changes since RFC: - added unit test, - logged level changes in rte_log_register, - fixed double evaluation of --log-level options, -- David Marchand David Marchand (3): test/log: check levels log: track log level changes eal: fix evaluation of log level option app/test/test_logs.c | 51 ++++++++++- lib/librte_eal/common/eal_common_log.c | 113 +++++++++++++------------ lib/librte_eal/freebsd/eal.c | 4 + lib/librte_eal/linux/eal.c | 4 + lib/librte_eal/windows/eal.c | 4 + 5 files changed, 119 insertions(+), 57 deletions(-) -- 2.23.0