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 F197543CE8; Mon, 18 Mar 2024 19:32:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 78EF540289; Mon, 18 Mar 2024 19:32:46 +0100 (CET) Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) by mails.dpdk.org (Postfix) with ESMTP id CD6FA4027F for ; Mon, 18 Mar 2024 19:32:44 +0100 (CET) Received: by mail-oi1-f177.google.com with SMTP id 5614622812f47-3c37d50adecso1848550b6e.0 for ; Mon, 18 Mar 2024 11:32:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1710786764; x=1711391564; 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=LRGc2Kl3maLlbcbPPePQu9HtAxTLVcSleLnfYf3hLHQ=; b=Ntt6TH8iSbp5awvWLjjAUbgj81FxQ40douOFY3W8PsVcHfzmYUGeGAlS9X03SbExpj 5YTVmcBpi5EZI/I6COKt90Zu/49xAswKSICyOpbhvE0iR8jZ/qREXcGxHaL4KPte4vEu 3aKHrIcuer2SZrfQRbQpGiWlwBOHNKCCjIcVQyiLEHlpsjuUlaI3TJ0gRyzUXfdGRSbu Gr3qreOwKSAwcWihqHJ8POlDdvgw2XAJmaSJ35cepakHlGLjHU/jb3DJ1DwleKq2m/P9 GWzzHFnTelAtDgHDdW1yviVkWeOVufylGL58RasfYoL593wL2XSzcIPXZ349yDzuaTqN K6pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710786764; x=1711391564; 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=LRGc2Kl3maLlbcbPPePQu9HtAxTLVcSleLnfYf3hLHQ=; b=AiTiLZFkX4cFTlDEwzUPQEqWeJvKVRyix5CzbujO+/ZdUAi5Shh7k+RiGVilkqLP7S AKkDA6w/sX3zTOKDFdfVfrVQ7woUELezBUW0ceHKqAh9cqtUKq10RMdtejx55uMSTmAf xtSxbIOUUTxjb0YK5IBDbLO00AirSfcywGgKEdDTQJcbjpWuPtfSoKFEmzPHJ9/6Aa7M X2G40aXJQx7qeW8AjTWBAhYm8Te7ydWftoou7ntE3DoSHbEQfynA+uwsspR5QcfXjyxo TqJ7MPR9IJDL/9ypvmDJ1jQ+CXjhG7KCmPKpTaAaFpd5v1Qoe/JNryNaCf/K9sREtBZJ gSmA== X-Gm-Message-State: AOJu0YyN2yCUUNhS0HSFP1tJ16yzhpPh8/3VmvoXXSVruDHPVHspZ25t PMWM5KwfqEXDtzPJZajUpB8yX1TmaDaivqVl7LrOMMyXB0f2TcO9kEuQYlFRZZNsCkaXdWKUqkw B X-Google-Smtp-Source: AGHT+IFAcW34uD97fAJmemmx2JkxdcuZtqB1kdx83k9fdMxmsLrWlMYEsetvL/++OxqkFF+/XjIEfQ== X-Received: by 2002:a05:6358:52cf:b0:17c:d2b:7236 with SMTP id z15-20020a05635852cf00b0017c0d2b7236mr425618rwz.30.1710786763911; Mon, 18 Mar 2024 11:32:43 -0700 (PDT) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id x6-20020aa784c6000000b006e4e93f4f17sm8186593pfn.117.2024.03.18.11.32.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 11:32:43 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v8 0/5] Logging timestamp and related patches Date: Mon, 18 Mar 2024 11:30:01 -0700 Message-ID: <20240318183233.142330-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. 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: allow user to set default log stream before init eal: add option to put timestamp on console output eal: initialize logging before plugins 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