Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3024799ybc; Thu, 14 Nov 2019 02:51:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwDg81UFdYmIbyvVwO0dROsNdeopxD5TqKBK7CS9xRem1mExwBPnPoYYmNzzU5HrORq0Ppr X-Received: by 2002:a50:e68c:: with SMTP id z12mr415259edm.53.1573728682875; Thu, 14 Nov 2019 02:51:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573728682; cv=none; d=google.com; s=arc-20160816; b=GR2filhGicVEAog1Tm3MMNzfOdkmRR/4hmcPvdlzjyVtQDvLwoL+ajua11X7Jv7Rz3 sMyyVVJ7VXEzFfxl+Kgzr5A56Qrm+H/kkQtujxkjNW7q2FEuKUNh1VJddDBXQVW5SCgd 3eXgGj4/7wmr92O6+mfl5W2Aulo0Ag9i44dA87VDvyr6IdOmiUMtnCNiTZ26joFn1xDZ BfIiWPgSVbDMWXMedHVE9ewM+XcowwQHdVXZGxnGOmzbl0M+RVKLI19XYwt3Lf+ouaEI 6PHBmIX1b2T8Lm2w2C3aqxaWcav1shRPZ1bt2cguvIQKXA7KSRa8jFCgEsImfbQQxftx s4nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=b/fDeeQoqXiAEazmH01o14wcLF+mBNVQysSsPxhdcRg=; b=Wm+qR7B8BRKlvhcuMAgOPBdgKx6JG4Bv5Cc1/CoHUz1tuxW58RTsmB/I1iBsVSLCnv AYpoDZ322r/pkg0UPtDSEob1mU6kYS743fFDMNw9nUN6n3Zqp/lmlL0yS9ZFohA4WSUj Ask2wbXtdm9mnGmuf+XBXHBpIZHeLtbwmxKUbKYrv7u9iewr6kZ6H6gV5mMdG0t7LtkO H1YVyVPeFPHfwBPqpcJaa1T4aGvjcezyTaDWrlX4RuRVu0bKw2IgF1p4e9mkzCPsBSGj fjHvyroGXOsujhPHazV9Y2cGbvvksfVyun8TAkJ0LY9L5yypFTE61UsPaDMXw59IdQOn ZJsw== ARC-Authentication-Results: i=1; mx.google.com; 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 v11si3787157edl.371.2019.11.14.02.50.58; Thu, 14 Nov 2019 02:51:22 -0800 (PST) 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; 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 S1726482AbfKNKsS (ORCPT + 99 others); Thu, 14 Nov 2019 05:48:18 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:40235 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbfKNKsR (ORCPT ); Thu, 14 Nov 2019 05:48:17 -0500 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iVCfZ-00087p-3k; Thu, 14 Nov 2019 11:48:09 +0100 Date: Thu, 14 Nov 2019 11:48:08 +0100 (CET) From: Thomas Gleixner To: Steven Rostedt cc: Arnd Bergmann , y2038@lists.linaro.org, Ingo Molnar , linux-kernel@vger.kernel.org, Anna-Maria Gleixner , Frederic Weisbecker , "Peter Zijlstra (Intel)" , Kees Cook Subject: Re: [PATCH 21/23] y2038: itimer: change implementation to timespec64 In-Reply-To: <20191113210611.515868a4@oasis.local.home> Message-ID: References: <20191108210236.1296047-1-arnd@arndb.de> <20191108211323.1806194-12-arnd@arndb.de> <20191113210611.515868a4@oasis.local.home> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Nov 2019, Steven Rostedt wrote: > On Wed, 13 Nov 2019 23:28:47 +0100 (CET) > Thomas Gleixner wrote: > > > On Fri, 8 Nov 2019, Arnd Bergmann wrote: > > > TRACE_EVENT(itimer_state, > > > > > > - TP_PROTO(int which, const struct itimerval *const value, > > > + TP_PROTO(int which, const struct itimerspec64 *const value, > > > unsigned long long expires), > > > > > > TP_ARGS(which, value, expires), > > > @@ -321,12 +321,12 @@ TRACE_EVENT(itimer_state, > > > __entry->which = which; > > > __entry->expires = expires; > > > __entry->value_sec = value->it_value.tv_sec; > > > - __entry->value_usec = value->it_value.tv_usec; > > > + __entry->value_usec = value->it_value.tv_nsec / NSEC_PER_USEC; > > > __entry->interval_sec = value->it_interval.tv_sec; > > > - __entry->interval_usec = value->it_interval.tv_usec; > > > + __entry->interval_usec = value->it_interval.tv_nsec / NSEC_PER_USEC; > > > > Hmm, having a division in a tracepoint is clearly suboptimal. > > Right, we should move the division into the TP_printk() > > __entry->interval_nsec = alue->it_interval.tv_nsec; > > > > > > ), > > > > > > - TP_printk("which=%d expires=%llu it_value=%ld.%ld it_interval=%ld.%ld", > > > + TP_printk("which=%d expires=%llu it_value=%ld.%06ld it_interval=%ld.%06ld", > > > > We print only 6 digits after the . so that would be even correct w/o a > > division. But it probably does not matter much. > > Well, we still need the division in the printk, otherwise it will print > more than 6. That's just the minimum and it will print the full number. That's fine. The print is not really timing critical, the tracepoint very much so. Thanks, tglx