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 44F5742D82; Wed, 28 Jun 2023 19:58:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E601406B8; Wed, 28 Jun 2023 19:58:33 +0200 (CEST) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id A493140151 for ; Wed, 28 Jun 2023 19:58:31 +0200 (CEST) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1b7e1875cc1so1882425ad.1 for ; Wed, 28 Jun 2023 10:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1687975110; x=1690567110; 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=OTjuJAoW4IXxVArRBDyemWIURCU1my95YF+cBKFj1qU=; b=4OkjXvgTXc7hDbRRw6I9JhJJK4Yv/53cmOB+mUQUNdFrWiuIyoQQmCo0W60G5wHB9x tuW2GkE0uzca2vy/hXm4jBRuuBybzXbciPExYcMLijQDZs7YfL1QSSPkekK1FQ23ZjDt 2GX9ZMai+/a96+QYPH3HWoYsoKl2gE1TSahv1RhuAL0XnPyXkm6EgpNJkKmaC2hADJwD TPsICCBn7LzZz5r4R+HzPDcqX7EeaC7y1piHXLE/QDdeFziTjyZUaSPxVaAp2aNccNKU /MzDNnbKYCn1khEPOte1aIwKw+3+a6jDhqG5pGA8UqI2MTWaTLiqTSQPsVqUSfb9+Kq2 KZ6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687975110; x=1690567110; 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=OTjuJAoW4IXxVArRBDyemWIURCU1my95YF+cBKFj1qU=; b=CDcvnTBToWs3o9gqxRE1Efca+QL3YeYIaq6LY0U/n+MPSdGcJC/n0csw1yrOKyiaTN p/iqSueQhU4SKIIqJZtV/4n5YVEkXiuZsuyy3mex8pzXlPisOKzoky5D892bxT0HwOld rH71YN4ACjyDQpjqZ5e22xSy7AMWCsePlf0yoBcRk8FqY7+mAMpWzV632dCGt1+a3sO5 5lgSYJycUW/iPiMikHRpPbb83fhej+r4CHhlfdHMAU3byD8DMXR56d+jgGG1chKd469I Ls6l5SanQJvs8wty35lX+9ActRzymsz18FHsMQuotJXyK23Lyq7k9BJOFFsZ73e9ZxBQ xi1w== X-Gm-Message-State: AC+VfDwa5yfrHVk3sp2dVJDA/TvYgjkNXrzI+VGvnjqgQcWhyza3Ugr0 oDwvrxLnODqB7DdTIzDUrSEsa3jv7r2F6yCVfYX1UQ== X-Google-Smtp-Source: ACHHUZ41vyOR3XYKNnNn1XCods+Nt4p3q1PZ+VFq4UBaZp9rENdfeqZvoNRf6eEtDdIk7ZiimKKQgg== X-Received: by 2002:a17:902:cece:b0:1b8:3cef:6543 with SMTP id d14-20020a170902cece00b001b83cef6543mr2211137plg.40.1687975109967; Wed, 28 Jun 2023 10:58:29 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id g11-20020a170902868b00b001b80d399730sm5047875plo.242.2023.06.28.10.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 10:58:29 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v5 0/6] Logging related patches Date: Wed, 28 Jun 2023 10:58:21 -0700 Message-Id: <20230628175827.471909-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 patch set rebases and extends some earlier work on logging. Stephen Hemminger (6): eal: unify logging code for FreeBsd and Linux eal: turn off getopt_long error message during eal_log_level eal: fix handling of syslog facility eal: skip stdio on console logging eal: allow user to set default log stream before init eal: add option to put timestamp on console output v6 - make more of the log arg parsing common - handle --syslog argument better - drop the early logging initialization (need shmem to be setup) - base timestamp on start of primary process (in shmem) .../freebsd_gsg/freebsd_eal_parameters.rst | 32 ++++ doc/guides/linux_gsg/linux_eal_parameters.rst | 5 + lib/eal/common/eal_common_log.c | 6 + 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 | 59 ++----- lib/eal/linux/eal.c | 52 ++---- lib/eal/linux/eal_log.c | 61 ------- lib/eal/linux/meson.build | 1 - lib/eal/unix/eal_log.c | 165 ++++++++++++++++++ lib/eal/unix/meson.build | 1 + lib/eal/windows/eal.c | 3 + 14 files changed, 255 insertions(+), 149 deletions(-) delete mode 100644 lib/eal/linux/eal_log.c create mode 100644 lib/eal/unix/eal_log.c -- 2.39.2