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 D579E42607 for ; Thu, 21 Sep 2023 17:32:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 99907402B9; Thu, 21 Sep 2023 17:32:03 +0200 (CEST) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id 26BD2402B3 for ; Thu, 21 Sep 2023 17:32:02 +0200 (CEST) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1c4194f769fso8650815ad.3 for ; Thu, 21 Sep 2023 08:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1695310321; x=1695915121; 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=Y62Nmk9Ign1i7mWtodPd4xkRlAe2mFT9DkmABP34PEI=; b=Zi9OSPHA48ORWHYIDiohkmJmTCXODeJSILDWnuAHDuAn5zP4UUI44Rrc8w5srfl0vL LvGLhPZlGivcvgdq8K1IUK3puEHVeAMhmxxIDBpuelCLt94uAG8aQ6fN75IwrLNeaAdF yi2xZFgD7KRSnQNHl4qsaXO0MKFN/8C6IbphqE5+dFNeV6Uu1740uZoyGrGOUebSIqiq 7kN8Uv6mYALExh6QeWzWjMGVV5JgO+HJH+KZdNutH3SHRaEH/Fa9bbYrfuNoSUT/b+x8 Ho8tUIIvt5nBBVP6dSWP+fUkOtQ6cepxNoK8ctJAk31wHy6DKRxUbtkZMJjW1QmXh9OF b5kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695310321; x=1695915121; 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=Y62Nmk9Ign1i7mWtodPd4xkRlAe2mFT9DkmABP34PEI=; b=Hb3W8O6r/VCkG/NBCOj+3ij4EvVXHrA/AaUfLIPfTFFgEjnaPGghz3Wa8LVzTmB0Gh AGoqGlGTfBlVuIsvTLjuPUvrTAxmF80QN7PxS4obBLHiDpGza4Jwtq0IVAxFMsIJsv6a ZXVO7EzaQIlCd+BySkqR8HGTX4rOw0GOFpBEACCQrvDmbg3CvHOpTB9vVmKRdSPyTOQ3 RKMy1qYrLAgIB6GYKIzKzu1H4N0jxv7Jmro4FI5DgKE0Lm4JVy3XVhtNNN4E9lb9rZDI VIg157A/qqtlO75px0yOYXN9vNx33akj9g+pRqW2PHiQpjAUcMA8bH+83ExtVuuYhQ15 fXAQ== X-Gm-Message-State: AOJu0YyyRU3vL7H/87Tvw0W6L9TmKZ2xaxQvd0WJTZxum2MvNRCfKF7A UywonBfS7A6hJmjPE7OuvHCZcA== X-Google-Smtp-Source: AGHT+IG0Yrvl04trDteNokfoVkB05gDF9tL0epwUzGtb0rUI0Hhf3d/wJ0sbdjpfhdvwtd+G8k5U4A== X-Received: by 2002:a17:902:9343:b0:1c3:f4fa:b1a2 with SMTP id g3-20020a170902934300b001c3f4fab1a2mr5749276plp.8.1695310320745; Thu, 21 Sep 2023 08:32:00 -0700 (PDT) Received: from hermes.local (204-195-112-131.wavecable.com. [204.195.112.131]) by smtp.gmail.com with ESMTPSA id u11-20020a17090282cb00b001c5900c9e8fsm1636277plz.81.2023.09.21.08.31.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 08:31:59 -0700 (PDT) Date: Thu, 21 Sep 2023 08:31:57 -0700 From: Stephen Hemminger To: Isaac Boukris Cc: users@dpdk.org Subject: Re: dumpcap: timestamp is years ahead when in pcapng format Message-ID: <20230921083157.718a6ee0@hermes.local> In-Reply-To: References: <20230919110009.29e90615@hermes.local> <20230920190950.5acdae45@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Thu, 21 Sep 2023 08:14:12 +0300 Isaac Boukris wrote: > > This is less accurate. The TSC (CPU clock frequency) is not necessarily > > an even multiple of nanoseconds. > > > > If you want to send patches please follow the contributing guidelines > > and run checkpatch on them. > > Yeah, I realized that and tried to improve on it by dividing by less > at init and multiplying by less at run time. However I noticed another > problem with my patches, that there is a time gap that keeps growing > for some reason, and I can't figure out what's wrong. I'll try some > more and will gladly test anything proposed. All this should be fixed in this patch series. https://patchwork.dpdk.org/project/dpdk/list/?series=29581