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 E373AA0567; Wed, 10 Mar 2021 00:31:38 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3D0640687; Wed, 10 Mar 2021 00:31:37 +0100 (CET) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id 533944003D for ; Wed, 10 Mar 2021 00:31:35 +0100 (CET) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9FC645C00C3; Tue, 9 Mar 2021 18:31:34 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 09 Mar 2021 18:31:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=dK8T4eHcanb5LmX/O5Co6cB/46 7Fk8jFu7+1WYJx1hU=; b=fucOlC5RCErU0Rr90eeHp/PZXHGtB64D9vMO40+oPX /EEcQkkQnuZiMXmeQolaM0p1hI7+0InRw1ix7n4F8MvjHpWzCrA0SZq7EdWT5bKU qdynwqB+X3rSxqvWsV3y0smsHxp3V9xgdEU3yoUrOS46rOQwcUwSb/+2gVaVsRfl i3oLci8Md/N9tr6HOUMzoX67f+ot85xR7ueOwrtrX0Cl2ezSaUVvj0oM/m72ci9r w3opBd98VM6eETENGrXY8CKPLld1BmT31aetPWJpK2Q9YMO8bM8i070bf9XCz5z+ t7FVqZPpzowrYXZQHBuS+/MF9+KFtY9wt1p5abIZomtQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=dK8T4eHcanb5LmX/O 5Co6cB/467Fk8jFu7+1WYJx1hU=; b=ptxNYs1IZQWgzTEY8Ssa8rs9KJ2cK+DKF rlb45n7s/Vw/iYf/SYsqb2yx3b5PXi7lzkFOoCxvAYJogJC1x0zEjJIUDQHHFj4z u0H3LW8tn6AqjUlysLkduO71Q/8m86gICkVE1u9yf+75AiHmGx5wjo6s1IJHbBCw T6NGp2yR8KoL0B03tyrzz//lkYKlmA14s9qnpln1zVBzjxxOaH2wmR7A+QSzVYuk X4gj6DstFYbHWRLdTi/r3kpV7yMq1FYZtCjoDX529uC1fPD8lUxuU+29OcxirRgO 1GvlsB4roMojHkiMI7J0CEeaWU0kfCfAemtDKxo6cQupJo6t/bQfQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudduiedgudejgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepvdelvdduhedvudduveeuvd evheegudelgeeigfejheduhedttdegudffjeeihffgnecukfhppeejjedrudefgedrvddt fedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id B55EF240057; Tue, 9 Mar 2021 18:31:33 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com Date: Wed, 10 Mar 2021 00:31:04 +0100 Message-Id: <20210309233116.1934666-1-thomas@monjalon.net> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 00/11] improve options help 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" The main intent of this series is to provide a nice help for the --log-level option. More patches are added to improve options help in general. Thomas Monjalon (11): eal: explain argv behaviour during init eal: improve options usage text eal: use macros for help option eal: move private log functions eal: introduce maximum log level macro eal: catch invalid log level number eal: add log level help app: fix exit messages app: hook in EAL usage help app/regex: fix usage text app/testpmd: fix usage text app/pdump/main.c | 2 + app/proc-info/main.c | 2 + app/test-acl/main.c | 2 + app/test-bbdev/main.c | 3 +- app/test-compress-perf/comp_perf_options.h | 2 + .../comp_perf_options_parse.c | 10 +-- app/test-compress-perf/main.c | 3 +- app/test-crypto-perf/cperf_options.h | 2 + app/test-crypto-perf/cperf_options_parsing.c | 10 +-- app/test-crypto-perf/main.c | 3 +- app/test-fib/main.c | 8 +++ app/test-flow-perf/main.c | 63 +++++++++--------- app/test-pmd/parameters.c | 34 ++-------- app/test-pmd/testpmd.c | 2 + app/test-pmd/testpmd.h | 1 + app/test-regex/main.c | 10 +-- app/test-sad/main.c | 7 ++ lib/librte_eal/common/eal_common_log.c | 50 +++++++++----- lib/librte_eal/common/eal_common_options.c | 66 ++++++++++++------- lib/librte_eal/common/eal_log.h | 32 +++++++++ lib/librte_eal/common/eal_private.h | 29 -------- lib/librte_eal/freebsd/eal.c | 10 +-- lib/librte_eal/include/rte_eal.h | 2 + lib/librte_eal/include/rte_log.h | 12 ++++ lib/librte_eal/linux/eal.c | 17 ++--- lib/librte_eal/linux/eal_log.c | 4 +- lib/librte_eal/version.map | 3 + lib/librte_eal/windows/eal.c | 15 ++--- lib/librte_eal/windows/eal_log.c | 6 +- 29 files changed, 237 insertions(+), 173 deletions(-) create mode 100644 lib/librte_eal/common/eal_log.h -- 2.30.1