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 4BA7A44144; Tue, 4 Jun 2024 04:33:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34AD443377; Tue, 4 Jun 2024 04:33:06 +0200 (CEST) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id 5F802402D2 for ; Tue, 4 Jun 2024 04:33:04 +0200 (CEST) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-7025ca8bebcso1926368b3a.3 for ; Mon, 03 Jun 2024 19:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1717468383; x=1718073183; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Gf4CFiYAp5zzKmGa2BN+1OQ21Kmi3HqmQMisYz0fL6s=; b=MX0HuLxTdcqMrKZEvZ8NT2+HVNFZu+twhBOXCQA01X70hUE6fGEemOn9wKMLF7RyY3 smbx1Zr0yT7rMR3KQpu8FthRUtKbeqvfFo+FeQtqQFK6r9gZXJtaiVdPaZhlDGzQTIyt 1+/0f9ydz26GMzPme8lNBiMGyVpt3dunPFSeZXg8nFfYvYoxdvwE3qiSTvcnuIo3ZBD4 9/FDQpYxHsZ5vpdXbdED3IFI3C5Y6RceLDyLIx+Q8H1aKrS6bHtxcO3IktfKTi/X1UUU L40iGEjL0WF0u0GK70PFgkl2Txxjc1ZD0YRGNHRGwhAEc6EaCt96NlgFifOxWNSH2nom 3Ayg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717468383; x=1718073183; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gf4CFiYAp5zzKmGa2BN+1OQ21Kmi3HqmQMisYz0fL6s=; b=VuMJ0x/dMXMooPpjwEKvLjXyubHtV5TOtnqwNPScG5zIEeYJ1Ew20Cc6NGSL6jq0Le QfAmPG/ymYYW/utsqGtvBloDA4/2kbFfZi5QZVnG5VaRTOX3B15v6ZKsgbCDRQj7I9Fd ucPy7gI/WuCh+AbpXkrPNQ008dScOfyMzc4DNCePenGgs+NBK+JdQXe4dOsMbcNQhwa4 qHIPq/b9tpceMlsj4W2fyV/WH+eS1pr4Dskm1bt18Pjrv21uiS0HW8fwSlnnmgkw0QmO GicZfpr5wpIYefHQNxcVZALigKeHNXmS2U7Xxi7J5ylHvPvoeiocdh5LjXSJBhadAlqL NmqA== X-Gm-Message-State: AOJu0YykVtbits3LlkozKU5UOlJDWg8K+cj1mgwTrxCetURi2aDScrDh fFAqA6vaQSEDG+NQSjihvA3DPSWRfMJK2QdWECJre8i9rBWlh1PFd4knvxCixjiv+rNewt1Oq5t iqqGsZw== X-Google-Smtp-Source: AGHT+IF6A+b3UyHLtxtMrQkpEKmuKv5jRVz5sC1AacopKHxrjeH6hrI8FhDL6E7fH3G+XwS1meXF2A== X-Received: by 2002:a05:6a20:7286:b0:1af:9ec6:afbd with SMTP id adf61e73a8af0-1b26f17c8f2mr11842971637.11.1717468383480; Mon, 03 Jun 2024 19:33:03 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6323e181csm71751405ad.178.2024.06.03.19.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 19:33:03 -0700 (PDT) Date: Mon, 3 Jun 2024 19:33:01 -0700 From: Stephen Hemminger To: dev@dpdk.org Cc: Tyler Retzlaff , Bruce Richardson , Dmitry Kozlyuk , Pallavi Kadam Subject: Re: [PATCH v21 11/14] log: add timestamp option Message-ID: <20240603193301.56c639e4@hermes.local> In-Reply-To: <20240604004731.6654-12-stephen@networkplumber.org> References: <20200814173441.23086-1-stephen@networkplumber.org> <20240604004731.6654-1-stephen@networkplumber.org> <20240604004731.6654-12-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Mon, 3 Jun 2024 17:44:59 -0700 Stephen Hemminger wrote: > When debugging driver or startup issues, it is useful to have > a timestamp on each message printed. The messages in syslog > already have a timestamp, but often syslog is not available > during testing. > > There are multiple timestamp formats similar to Linux dmesg. > The default is time relative since startup (when first > step of logging initialization is done by constructor). > Other alternative formats are delta, ctime, reltime and iso formats. > > Example: > $ dpdk-testpmd --log-timestamp -- -i > [ 0.008610] EAL: Detected CPU lcores: 8 > [ 0.008634] EAL: Detected NUMA nodes: 1 > [ 0.008792] EAL: Detected static linkage of DPDK > [ 0.010620] EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > [ 0.012618] EAL: Selected IOVA mode 'VA' > [ 0.016675] testpmd: No probed ethernet devices > Interactive-mode selected > > Signed-off-by: Stephen Hemminger Ignore bogus checkpatch warning from this patch. Checkpatch thinks that #include is a spelling error!