From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by dpdk.org (Postfix) with ESMTP id D405B2C18 for ; Tue, 24 Apr 2018 18:58:13 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id o16so12757908pfk.9 for ; Tue, 24 Apr 2018 09:58:13 -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=QpaT3p8vg4dP//pMJ2+LeEJpZMTEaUNnb0qMx1lYvPI=; b=d3YasoUV/w+wyDbhgqfI5DJfQh8v9gXVaH40iENOnbQjcKiueuUkXq+SPlrXyEZBX5 9iulPYKPjFkaplbvSFiqjohe8Ju8bOWf8bP/rVHS0xsf/0acoyBc2ltz0B9iYMcq/B48 8A5lm7R3JhxTl3Z7Ls21h5Ujmi8FGC1VfVSz15Rpa36UJc5bei4Zx5XZlzT78w9SpbLd kUiQpCrWaepPt1qChhmcmuP+4h4uA8d1mwCcRwKUHDMURG1o62CfZLg6wgG4DKMronrB oO6slg48xhjLtpXvMTd772Xv3lz0firEruTGOUb6FwJ14l/aoEYSL87sYG49khKtwdSx 6bRg== 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=QpaT3p8vg4dP//pMJ2+LeEJpZMTEaUNnb0qMx1lYvPI=; b=jjsZMKv3qOevIOR40Ihu7fCug4bjY27R31dxWTuj8R/pSf997wVbE/yqJsPKxF3YVF HHrkgXBIPP1G69z/yzH6TqJ9P8tXT4TcEjtCD5Ph/uTm3UGez4NgTiG1vl9ecCKX663t 68u+gbjShVl7IGtnpiPkuOin6+qT/TfSWMsJWuAMDHvQGfO0qwLuRbrz2gS5TzGkXhm0 npG7lmYJTbtN9MiZ5n5aKIKKpa5wuIkUv7KyVbNm5WixXqPtjwBMs9G7BkpB3iZuqywj paSXozlaN98Rp3tTf5wR270RPJs2KrGrQFYyQpcH72pk31Gj97rIFyYc/fEh9bhUItgq UaTw== X-Gm-Message-State: ALQs6tDrTvenHsAYMhK6UxHEHXKHO7tDwqYLHU/OeZCaNWeP1azqZfMg yOQgQU5dJCXOEL08/u/02CsDOSeknSg= X-Google-Smtp-Source: AIpwx4+oRbQ1iJAhKSZnWmNDCWJOc1rAC1Z6n8BkTo08cz9jxLccyuxGvwzqz0QYVs7RuiPO5cfydQ== X-Received: by 10.98.178.4 with SMTP id x4mr23770692pfe.21.1524589092037; Tue, 24 Apr 2018 09:58:12 -0700 (PDT) Received: from xeon-e3.lan (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id a28sm19851114pfl.86.2018.04.24.09.58.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 09:58:11 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 24 Apr 2018 09:58:03 -0700 Message-Id: <20180424165808.23292-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.0 Subject: [dpdk-dev] [PATCH v2 0/5] logging 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: Tue, 24 Apr 2018 16:58:14 -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. 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 | 2 +- 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 +++----- 12 files changed, 203 insertions(+), 112 deletions(-) -- 2.17.0