From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by dpdk.org (Postfix) with ESMTP id 064BF2B86 for ; Wed, 25 Apr 2018 05:17:53 +0200 (CEST) Received: by mail-pf0-f193.google.com with SMTP id v63so4389668pfk.8 for ; Tue, 24 Apr 2018 20:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=4oaVTUXfb4DgObLV3Fx9rH8fkcX+8UiSY2BnXLfThMo=; b=gsPjXHL462QyGRICVyCBOkxZ8h8290TBRGBii63HITmjiJi150gdSSneryncNU3FBn 1uRPt28HRB2tR26/6iMZOFW6e1iFBHXQTY9XKhZraFAuzQNssXfpo23pFnXwEiYDOLzE 36Q7uInBjxwJp1fwMbmdGE72oW3PfQqhharQbXeWpfPUgJcQ+qCBy0ojcLih9oNBPW7N pvOzOmAuBsOsfDjKJKLw1rgu75GD/YydydqdsWJxj8nUiukowNu8s7chgtuRz6wBV0uY MddpLjgzaGGu/n8ESX96voGhGwEJ5uehz2pBwXOnvf50QrtdunVJpFf0zZq4TeXRD0f/ 4hlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4oaVTUXfb4DgObLV3Fx9rH8fkcX+8UiSY2BnXLfThMo=; b=hWK1enPLq+Ys3WNzuY2NOYnKT224r2CIiqKYMzwr3Tvnw4+Nik95WYEaAM72EEIQGW O6YIs/pIxDSCkzoAUylq7VNWMzxAUKm1JfKTFmBeh7j0eLoM5MIc7U14PGTU3HToMXGx +NkIvW14NI4K2eMHTGyiQgOV3fnHWAXD/TxVtpXoL6EUAR1c1rjDCMa6metfwsD+6MgM vkGfU1eVEWmJ8NB8AHbeP4SHcQX2CiZ+iLusWfKlAbMwyKBvc0WZJtyGwDs1/BaOiCQP pIbtAwR2Z6AwJXFJw3f9o6dGJ8ZuYWA2ZK4BYQW/EJXVtnlv/94x+nAZwta1ap4wAFLU c4sg== X-Gm-Message-State: ALQs6tBRUlruy/RL9ebmNS5TlPQxeAJC1AZyczD+MSha1z5Yitx2mZ28 hUF1xnAIktK0YCF5ccHrNb93f4mzcOU= X-Google-Smtp-Source: AIpwx4/ot0bGDl3BO2BFID6xy5IFMfr/LwEeX8WGZbva5j2L5WdWTy/7V3wKVTU1OGuBIlYWJ2esAQ== X-Received: by 2002:a17:902:bcc8:: with SMTP id o8-v6mr26831841pls.84.1524626272700; Tue, 24 Apr 2018 20:17:52 -0700 (PDT) Received: from xeon-e3.lan (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id x5sm20137303pfh.115.2018.04.24.20.17.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 20:17:51 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 24 Apr 2018 20:17:45 -0700 Message-Id: <20180425031750.30973-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.0 Subject: [dpdk-dev] [PATCH v3 0/5] log level control enhancements X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2018 03:17:54 -0000 This patch set improves the log-level option in EAL. It adds symbolic names for log levels (error, info, debug, etc) and shell style matching of log levels. --log-level='pmd.ixgbe.*:debug' The original syntax (which is maintained for compatibility) used numeric values, comma as separator and regular expression to match log level. It was often documented as: --log-level='pmd.ixgbe.*,8' ... but this only worked by accident. The period was really a regular expression match any character (not match a period); and the asterisk in regular expression is match repeated value. v3 - rename internal function rte_eal_log_save_XXX to rte_log_save_XXX - fixup typos in coding style doc v2 - make facility table constant - rebase to include support for dynamic log late binding - add patch to make saving log level a private API - update driver docs Stephen Hemminger (5): eal: make syslog facility table const eal: allow symbolic log levels eal: make eal_log_level save private log: add ability to match dynamic log based on shell pattern doc: update guides for current preferrred log level syntax doc/guides/contributing/coding_style.rst | 4 +- doc/guides/cryptodevs/dpaa2_sec.rst | 2 +- doc/guides/cryptodevs/dpaa_sec.rst | 2 +- doc/guides/faq/faq.rst | 23 ++--- doc/guides/nics/dpaa2.rst | 4 +- doc/guides/nics/qede.rst | 2 +- doc/guides/nics/sfc_efx.rst | 12 +-- doc/guides/nics/tap.rst | 2 +- lib/librte_eal/common/eal_common_log.c | 103 ++++++++++++++++--- lib/librte_eal/common/eal_common_options.c | 113 +++++++++++++-------- lib/librte_eal/common/eal_private.h | 6 ++ lib/librte_eal/common/include/rte_log.h | 44 +++----- lib/librte_eal/rte_eal_version.map | 7 ++ 13 files changed, 211 insertions(+), 113 deletions(-) -- 2.17.0