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 7D66741DF6; Mon, 6 Mar 2023 20:28:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C86940EDB; Mon, 6 Mar 2023 20:28:15 +0100 (CET) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 9E1EC40A8A for ; Mon, 6 Mar 2023 20:28:13 +0100 (CET) Received: by mail-pj1-f41.google.com with SMTP id l1so10876965pjt.2 for ; Mon, 06 Mar 2023 11:28:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1678130892; 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=mkZRjI56lXSYCP8XhIfcLg1tLVP8lmivDZUZATk4PMs=; b=moMW3JAFWypwdBAKoaAyHwN4q+sXoTRHcGOHn16FmYDqeG4CAx/thcjxHM5+e80jfP XK4LPz0M/4NuOen0J5LL/AGhO5U32cYNURutB+M5aECu+fPql+ZKrxnxKNqp9ErR48WR Y/gFGjLyYPXi5H1ge0Nf6G96JGNAutI8M7EgPMDZLpD2K7H9l+se8T6dEp7vbtk/BMfe hQoVTlI4sZsQjgY3uDiMXSycBBnhiL/pnFd+L9XHivyJ+QVE4UvR0W1a6DfCo7vgD2ZM y6LJisaSN6ZqHIPnyp3YQdXjVzcbERLjZHnwFbr9Bwd7ijEh5MOHrsWhWtjrIuwTQmWl FlbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678130892; 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=mkZRjI56lXSYCP8XhIfcLg1tLVP8lmivDZUZATk4PMs=; b=3dnSq8TCBYZxH9pvu8DvhSI8n48TFZRdIclc9p1LBDT45Pm7gZYokXcfoo6Ia59abI EHd2pbDbyRJngWJ55iNAqtGvZ0T5w8OWEyE8quI7yOBY4+2jWLKuBdT6QZa20Gxd1FdX +lhxlXENaNFGEuHUdCmcFu4F3XvVUgH/SvTf2XKr5Cq7Ci+Li/UexsYXOmtkTrw8E5uN vDb+ed+YrJ9jHtlib0SWIy8Fv7d/vyA3/nlBjqJcJOIarMtiEMa0fcfOl9mhdW/P1iwU 68yMt9ODmNCGROxfgrgqHvFRXB8WDp0eJbW0pliZZaIm6bsEPmCvt/aL7eED0MJxazCa 3JPQ== X-Gm-Message-State: AO0yUKUD/muhWWGJSRkHkGjk7DyPut1Bo4sgDgm3dLDuRE7vlWUWJMv4 oLYV++GsThq/uo7nsfzljKE6hLClu0LDA8RpDfxdYg== X-Google-Smtp-Source: AK7set8c7yTu2BdlqdubB9ZjnJ8f6EVraGcdo2AyOwzzFySeZv6mAB0bbPgyB2QiYO5D4dsYNTIHuA== X-Received: by 2002:a17:902:c40a:b0:19e:21d0:5b97 with SMTP id k10-20020a170902c40a00b0019e21d05b97mr16051325plk.50.1678130892235; Mon, 06 Mar 2023 11:28:12 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id g22-20020a1709029f9600b001991d6c6c64sm5653476plq.185.2023.03.06.11.28.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 11:28:11 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v3 0/2] Add option to timestamp console log Date: Mon, 6 Mar 2023 11:28:08 -0800 Message-Id: <20230306192810.106154-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 v3 - fix log init on FreeBSD 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 | 7 ++ 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, 150 insertions(+), 62 deletions(-) delete mode 100644 lib/eal/linux/eal_log.c create mode 100644 lib/eal/unix/eal_log.c -- 2.39.2