Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp219640ybl; Thu, 22 Aug 2019 23:15:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwY9wtZ8xyCkaipj/Vn0URlRDOWlC0HbOnzzeHLaulP7ZfGso0D8fQl0q/a9rAUpLRxb+2D X-Received: by 2002:a17:902:a6:: with SMTP id a35mr2991518pla.130.1566540928093; Thu, 22 Aug 2019 23:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566540928; cv=none; d=google.com; s=arc-20160816; b=KUZOfyik6RdDkA6pPhmRCZi7OURFxvHvSLS4DXc57P84+7Cp3FdH/y8eElz0a6Bozt oIizMZUrPQcTr9TVAPef+EmOs56BDj0u7b2NqlmIHbBc4p999UPN89kncC6TXPWawrlW zX9atLjCFOT618Ys4ICsuqs/l0WpSHrKUh0LDHw7RIsgs1Xnzi36F4PDwevsCsEYdXIP BZmD9RFDCK8vZ8zOjjhYDUESMglowwjcSzO2O/kbzV+EB1Fkd3sMSLbs8XaiFgh/+YOv pk4/S6u6s5ZUdcn+KatX7sDp1PxXrzyouINc3I6L7y9v1K1ZT+v+7/Xr7tAPLcKVkM02 CiFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8pZAXtRMx+VEVnKNoMyIg9vofEv03RCUzdqHEbFK3i0=; b=nB1VENLkunvhf1/DBg5nJ3/q8WKnbrveuN0DkHN2ac1I3vp9ojOs0VS1teswlCWF2Q O/KVW6rC5vxHQivZFtbkiuoK3gNFmgkYe75I6pABpBmErTLrzQoKZwrsZdUuhSdU1q1e Wx4rbqBf03zGdOFZvhmlrkJneZ2vaszyYNdVi81U9OjmtBXyxFk7/lG0CqHxKVl94BhQ i9Jy+GeoZ99Gro6AFtS4Lf9Ql0K5kXLUK2sbs4qy+8+zO8xhU+D4B2rblKEcTUz7SQHn L4nn+AYtSfsBGmF8NtxZem4dMoNLHxVIP+xnKr9E97KagQ8Hdy2/VqlS2UPdfjO7HdOc jARA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=L+91U0S2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r33si1546360pjb.42.2019.08.22.23.15.12; Thu, 22 Aug 2019 23:15:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=L+91U0S2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405083AbfHVRkr (ORCPT + 99 others); Thu, 22 Aug 2019 13:40:47 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48297 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732134AbfHVRkp (ORCPT ); Thu, 22 Aug 2019 13:40:45 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 41EAF2203C; Thu, 22 Aug 2019 13:40:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 22 Aug 2019 13:40:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=8pZAXt RMx+VEVnKNoMyIg9vofEv03RCUzdqHEbFK3i0=; b=L+91U0S2PhF9g2vi4rzc2P PBexqJj7AJXB1KXWWokVHUTqufsRT2AD0HhEgN9iW2SrGLe5Lj01pIJKzvvuB/Gk xQIn3uW5Yh4OcK6qWlUrxP7I/7iz9xRL6WPpDrFeD5XB9pIE8I0LQ4N74zULhe1P Zg2p5y66v9p2c/NzyIYmfcOxylhdbQbyRjkXUmPe3aeVC42zN1Nvb/h/HE2kQuvH /gmLNfW60k9Q78aEGUItMPezmyTC6CIVLJr0Cdu5K7b+xkFenGsehH4ZMS45z+xy Fm6IhwHhkPXt2oG7SU2P2HDwZiqrrJCOCZu2sRdhUiqpvx2n+n+kjhx3Vg1a5BEQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudegiedgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomhepkfguohcu ufgthhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecukfhppedule efrdegjedrudeihedrvdehudenucfrrghrrghmpehmrghilhhfrhhomhepihguohhstghh sehiughoshgthhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id B76EA80059; Thu, 22 Aug 2019 13:40:39 -0400 (EDT) Date: Thu, 22 Aug 2019 20:40:37 +0300 From: Ido Schimmel To: Andrew Lunn , arnd@arndb.de Cc: Aya Levin , "David S. Miller" , Jiri Pirko , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net] devlink: Add method for time-stamp on reporter's dump Message-ID: <20190822174037.GA18030@splinter> References: <1566461871-21992-1-git-send-email-ayal@mellanox.com> <20190822140635.GH13020@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190822140635.GH13020@lunn.ch> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 22, 2019 at 04:06:35PM +0200, Andrew Lunn wrote: > On Thu, Aug 22, 2019 at 11:17:51AM +0300, Aya Levin wrote: > > When setting the dump's time-stamp, use ktime_get_real in addition to > > jiffies. This simplifies the user space implementation and bypasses > > some inconsistent behavior with translating jiffies to current time. > > Hi Aya > > Is this year 2038 safe? I don't know enough about this to answer the > question myself. Hi Andrew, Good point. 'struct timespec' is not considered year 2038 safe and unfortunately I recently made the mistake of using it to communicate timestamps to user space over netlink. :/ The code is still in net-next, so I will fix it while I can. Arnd, would it be acceptable to use 'struct __kernel_timespec' instead? Thanks