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 3A94942DDE; Thu, 6 Jul 2023 00:48:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12E1C40144; Thu, 6 Jul 2023 00:48:10 +0200 (CEST) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id 784AD400D5 for ; Thu, 6 Jul 2023 00:48:09 +0200 (CEST) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-262e5e71978so33739a91.1 for ; Wed, 05 Jul 2023 15:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688597288; x=1691189288; 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=Bio1PeK8w2CgdTkkLB9gQTnn0jTBZovHRZpWinADm3Q=; b=2pVQ12+ZmxKoRevXPuW5MX5jX30A90ZjPj9RaQcfe+WeCzd9kuEQO60l/uSbkNhOjU XrBbdyPnXlpo5jTF0ESW2yLDHOXZJP0V9LvG6XcKvQv3NhUtqNHIPNk+nK6znYxexZak 33WLc23+TEmsyO4w2p2iOwXBPzHDydqaZ6bkv4vzaD88kUjlyCODpfwdrrAola835e7j /D/x9Cwp2VdrLnRc7OROd3jJuZresZ5hZiUTzb8ZTXCk3InlgWNOaSJJtZpHDQbYdiaf j4U7o5GU/3omAz2+4TB2ecKJ5x0qMa7maofvQacSyOUVq4isjHnjLlwLgn/tGxfLFBvy 4ASA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688597288; x=1691189288; 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=Bio1PeK8w2CgdTkkLB9gQTnn0jTBZovHRZpWinADm3Q=; b=Z5wYX1x8Nz7Ywvrm018FgV5th0owBKEqI5kpa4DL243eZ81+p9pC5xJKj3kVI8DPwH DmH7HnnFP9mjtiwmo0JAIxXH0d9swlPUvDI5e/HpzL6oqq7m73+JxzbfgCH/vmf/3ieC 0qiHhnSEddOaHyvgsZEEOkomwAS3u8db8gkUb7k7Dh3E0OKGKMe4zO3uVhrk0Cu2AF6e tZ+riNijX5SQGDKpsYnJTUbhgP5vqcBR/MmfUvgSAAyv7zF6pd9xQsr6+tLw7x1ngfgP hwnRaOqLCJLukVb7Zc6e1oFGpFbq9Uh8Ul9OKaWnU6vOFt6dsfc/drRlzhJOPACFo3t1 6F3g== X-Gm-Message-State: ABy/qLYnDYHKybfFHNjIx4xRjsp+FepSTY+WAPNjBDUJZuwKuDc9URKU ZxShf3DQ56uvU56g5lQcMxcK8WT8d4nGKLcgZlk= X-Google-Smtp-Source: APBJJlHD4XV/a1KlZSCmhRNCxHChuOyAOp+gVg54qd7pSm1hxBJ+J1KGacVpQW/nWUhVakxc13UF+A== X-Received: by 2002:a17:90a:d80d:b0:263:161c:9e9c with SMTP id a13-20020a17090ad80d00b00263161c9e9cmr5130388pjv.12.1688597288249; Wed, 05 Jul 2023 15:48:08 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id bb16-20020a17090b009000b002630bfd35b0sm1906044pjb.7.2023.07.05.15.48.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 15:48:07 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v7 0/5] Logging timetamp and related patches Date: Wed, 5 Jul 2023 15:48:00 -0700 Message-Id: <20230705224805.286156-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 Patchset that includes: - unified code for more of log argument handling - fix for duplicate option errors - timestamp option for logging v7 - consolidate patches - fix windows to have same getopt args as Linux and FreeBSD Stephen Hemminger (5): windows: make getopt functions have const properties eal: fix help message for syslog option eal: unify logging code 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 ++ .../freebsd_gsg/freebsd_eal_parameters.rst | 32 +++++ doc/guides/linux_gsg/linux_eal_parameters.rst | 5 + lib/eal/common/eal_common_log.c | 55 +++++++++ lib/eal/common/eal_common_options.c | 8 +- lib/eal/common/eal_internal_cfg.h | 3 + lib/eal/common/eal_log.h | 6 + lib/eal/common/eal_options.h | 2 + lib/eal/freebsd/eal.c | 55 ++------- lib/eal/linux/eal.c | 46 +------- lib/eal/linux/eal_log.c | 61 ---------- lib/eal/linux/meson.build | 1 - lib/eal/unix/eal_log.c | 111 ++++++++++++++++++ lib/eal/unix/meson.build | 1 + lib/eal/windows/eal.c | 36 +----- lib/eal/windows/getopt.c | 23 ++-- lib/eal/windows/include/getopt.h | 8 +- 20 files changed, 275 insertions(+), 196 deletions(-) delete mode 100644 lib/eal/linux/eal_log.c create mode 100644 lib/eal/unix/eal_log.c -- 2.39.2