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 4087043CEE; Mon, 18 Mar 2024 23:04:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA6804067C; Mon, 18 Mar 2024 23:04:45 +0100 (CET) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mails.dpdk.org (Postfix) with ESMTP id 2A00140299 for ; Mon, 18 Mar 2024 23:04:44 +0100 (CET) Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-5ce07cf1e5dso3344341a12.2 for ; Mon, 18 Mar 2024 15:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1710799483; x=1711404283; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MpXd5vIRqDt83NiJyQpDhafhqUMxQb62K9RlR8PUqmc=; b=sVkiR8fDdBA9OJ1OhEIlhRsfK6cgyRIxet5elIOiPXThZVFOcQTTZb5O3+mMuQpQ1X 9Tn3KqxLpaMWBrz04nP6+Y5ZvdDs67zm5odWmZ6SwSHUW54JqVaBEIlJVDZ3j04dFne2 y/Z1KrCQAoU1rN4jyMNarPZKFTmsi/QgTnHdsCT4WkybUjsiDArdy4mmCrDh7FzgojjB 8ELxdQjGOeDkQdh3StsOrgTddKivGe+tv/HYRoROdThPJo705Nw17fJYSPfawpLRIL9p /EbFYtjsd/3arEPcmX8qGGmaaakT0vKZWVxHAq+wrLdMtqEVHzmI4jshj0UHM+wmEryb mKLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710799483; x=1711404283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MpXd5vIRqDt83NiJyQpDhafhqUMxQb62K9RlR8PUqmc=; b=v8TLAhH7wmMg/Z0Ka4bMJJAl/+qWe4l/oexhAzHE4GwxHPxVyo1suPA58ITV2bx4IJ UUQRhQDBZ68TyzN+9Ps9SjCWA9P2CbMi3KsgMQiY1L4vimp5qGESI7np1ak3Sxl+9qGc BV6kc+HkQLyNWlq7sMdi84LX1yT1VPsSG5RQweXYSrwbig+OOwfq+XB6Ib3w+Kq7jRLg hOG2sG3JiSW3tZmd4GK//5oVE4KAgTlmZ6WrHaQWlmcWTUkahBnOWeBtZVCcn6gcX2BV 5s62rzr0uFljHPNOjrLUdVgN2iWkriW6dIhBEGd6sFWlfLU77OYlVBgi51JBVK37UWYm /oLw== X-Gm-Message-State: AOJu0YxVF2EgFU/51uZA/FAW+CFI0AcXg2OjZWglBJy5ekZhZgfI60Fe 9W/QcNbo2P9EdNAqgn20tgFXFCfVoi5WAz+HesjTTrnXW/aR61jE9+gPp1LzdCXj7HNXXrIqECZ 9 X-Google-Smtp-Source: AGHT+IEBWUUcN1ehLNqI7SvIJiUkD6rLbmgJYDtnko4vjeOs56eHMrOMvHDe8MjBwkdHB8YqvXa22g== X-Received: by 2002:a05:6a20:72a1:b0:1a3:72a8:b319 with SMTP id o33-20020a056a2072a100b001a372a8b319mr43435pzk.20.1710799483135; Mon, 18 Mar 2024 15:04:43 -0700 (PDT) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id y6-20020a637d06000000b005dc88b232a5sm7747140pgc.26.2024.03.18.15.04.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 15:04:42 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v9 0/5] Logging unification and timestamp Date: Mon, 18 Mar 2024 15:02:56 -0700 Message-ID: <20240318220432.7486-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20200814173441.23086-1-stephen@networkplumber.org> References: <20200814173441.23086-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Improvements and unification of logging library (for 24.07 release). This is update to earlier patch set. v9 - reorder patches and fix FreeBSD build v8 - rebase to current code base where logging in in lib/log use stdio for log timestamp initialization changes (setup log earlier) Stephen Hemminger (5): log: unify logging code eal: make eal_log_level_parse common eal: initialize logging before plugins eal: allow user to set default log stream before init eal: add option to put timestamp on console output app/dumpcap/main.c | 3 + app/pdump/main.c | 3 + app/proc-info/main.c | 3 + app/test/test_eal_flags.c | 9 +++ doc/guides/linux_gsg/linux_eal_parameters.rst | 27 --------- doc/guides/prog_guide/log_lib.rst | 28 +++++++++- lib/eal/common/eal_common_options.c | 56 ++++++++++++++++++- lib/eal/common/eal_options.h | 3 + lib/eal/freebsd/eal.c | 50 +++-------------- lib/eal/linux/eal.c | 55 +++--------------- lib/eal/unix/eal_unix_log.c | 0 lib/eal/windows/eal.c | 35 ------------ lib/log/log.c | 6 ++ lib/log/log_freebsd.c | 12 ---- lib/log/log_internal.h | 11 ++++ lib/log/{log_linux.c => log_unix.c} | 36 +++++++++++- lib/log/log_windows.c | 6 ++ lib/log/meson.build | 12 ++-- lib/log/version.map | 2 + 19 files changed, 184 insertions(+), 173 deletions(-) create mode 100644 lib/eal/unix/eal_unix_log.c delete mode 100644 lib/log/log_freebsd.c rename lib/log/{log_linux.c => log_unix.c} (58%) -- 2.43.0