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 DFFF341DD9; Mon, 6 Mar 2023 19:18:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4F5840EDB; Mon, 6 Mar 2023 19:18:22 +0100 (CET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 02C4540A8A for ; Mon, 6 Mar 2023 19:18:20 +0100 (CET) Received: by mail-pl1-f172.google.com with SMTP id p20so11342711plw.13 for ; Mon, 06 Mar 2023 10:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1678126699; 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=Jnl8HDXri/dULyptxjxl1WBbkWjksmuhErOiwHIAaYw=; b=xMInK+fD/opr1WDiPtkEjHpGGesNJIFZd3gP/zIGEpdKPJLl6nu4sh6jQ0xdWIPa8P Wso1zCqfxaD+nzQvN5aWwpNVCy/1BdIMUgLbmMfWxle5Vgzt7tIWeLp/vTOfWrKXmaTS wsr2adrywahkUoqU+1x5O7CMm1V2aKVJdvdVO/ndi2Oz51YJlZ3PkSM/PZzJbEv5t8+k 9svlrwi0JDjLSZk1M4SJqlxVDgoqzGKaujCyuzdc/5f4OethyHLc9bo6E2rkKNLKMWQJ NY2ONA60qt2qERxPXqF0fs4CRbATQlc4RjWqxLpjWyg1SLFQdG8l2Tawo3fHD5Rq4QD+ VdWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678126699; 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=Jnl8HDXri/dULyptxjxl1WBbkWjksmuhErOiwHIAaYw=; b=NYfhceUHOO2Mo7pZ0LLvpAFf5pWTpzoxXIQIkmkqeosaqmudHO5OJH28GTaElyayRW fZ2XrnJchROHaLH9lGgUmJXVcr3y5shLezV8Y63UIyEcRDtiGoxWhDk/f8geAyKNpw0X imotbETh7CALs/x86+t7ksQyA2W2VFHVOqTuRioOkvUiTWierCYWU09/DNbz/owi1grh IsTlJ8PzfSySI6ckvCy4n1z1s7HyxuVgiuWP2MSxvCDpgrmHNOOoyzyoVT+lZz0Q5Dn5 wa2VKwjc1ar3Vkar+W2JhH3qWGbWzKPd3oANZIPS9y8+/ZQDelBkcwQhAIwDpPM9wj3w x3jQ== X-Gm-Message-State: AO0yUKUPhAcoQMmEr1vPNjC6n8wU7BZFOXVm6vNRD2ajV0mDK5Lxa+rN 3Je1hhj2mHurjkFINGZR1vAd5PvAbnqTKiD2nov1MA== X-Google-Smtp-Source: AK7set95ITtW1utoaNsa7Pt7gyUZFtP4gi7uK0TILn/45dliXcDdAkHhCXHgSCqhAzMhxrWhQQe2Cg== X-Received: by 2002:a17:903:441:b0:19d:2542:96b7 with SMTP id iw1-20020a170903044100b0019d254296b7mr10909635plb.39.1678126699536; Mon, 06 Mar 2023 10:18:19 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id e7-20020a170902cf4700b0019adfb96084sm7039155plg.36.2023.03.06.10.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 10:18:19 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 0/2] Add option to timestamp console log Date: Mon, 6 Mar 2023 10:18:14 -0800 Message-Id: <20230306181816.97243-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 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 This is a reprise of earlier patch to add timestamp to console messages. Example: # dpdk-testpmd -l 1-4 -n 4 --vdev net_null0 --log-timestamp -- -i EAL: Detected CPU lcores: 16 EAL: Detected NUMA nodes: 1 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' Interactive-mode selected [ 0.191407] testpmd: create a new mbuf pool : n=171456, size=2176, socket=0 [ 0.191510] testpmd: preferred mempool ops selected: ring_mp_mc v2 - rebase to current DPDK - make linux log code common to freebsd Stephen Hemminger (2): eal: unify logging code for FreeBsd and Linux eal: add option to put timestamp on console output .../freebsd_gsg/freebsd_eal_parameters.rst | 32 ++++++ doc/guides/linux_gsg/linux_eal_parameters.rst | 5 + lib/eal/common/eal_common_options.c | 5 + lib/eal/common/eal_internal_cfg.h | 1 + lib/eal/common/eal_options.h | 2 + lib/eal/freebsd/eal.c | 6 ++ lib/eal/linux/eal_log.c | 61 ------------ lib/eal/linux/meson.build | 1 - lib/eal/unix/eal_log.c | 97 +++++++++++++++++++ lib/eal/unix/meson.build | 1 + 10 files changed, 149 insertions(+), 62 deletions(-) delete mode 100644 lib/eal/linux/eal_log.c create mode 100644 lib/eal/unix/eal_log.c -- 2.39.2