From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752450AbdC0QL5 (ORCPT ); Mon, 27 Mar 2017 12:11:57 -0400 Received: from mail.kernel.org ([198.145.29.136]:52850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124AbdC0QLu (ORCPT ); Mon, 27 Mar 2017 12:11:50 -0400 Date: Mon, 27 Mar 2017 12:11:11 -0400 From: Steven Rostedt To: Arnd Bergmann Cc: Paul Menzel , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List , "the arch/x86 maintainers" , Borislav Petkov , "Rafael J. Wysocki" Subject: Re: [PATCH] trace: Make trace_hwlat timestamp y2038 safe Message-ID: <20170327121111.242bc7b4@gandalf.local.home> In-Reply-To: References: <6559f36c6c6cdc2552b0bccf31de967367aa790d.1489672478.git.jpoimboe@redhat.com> <20170324181254.gouyrbmppukrrbb6@treble> <20170324144114.16a37d47@gandalf.local.home> <5766300.HtmE7iLEgV@aspire.rjw.lan> <20170327140843.fx5y32rnc3mqiyke@treble> <20170327113028.7f74c9b8@gandalf.local.home> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Mar 2017 17:35:13 +0200 Arnd Bergmann wrote: > On Mon, Mar 27, 2017 at 5:30 PM, Steven Rostedt wrote: > > On Mon, 27 Mar 2017 16:53:09 +0200 > >> We could probably introduce a %pts format string for timespec64 > >> and have that pretty-printed. > > > > Hmm, probably don't want a %p as that suggests its a pointer, which it > > should not be. Unless we pass in the address of the number. > > The special format strings that the kernel defines all start with %p and > require passing by reference so we don't get a warning from gcc. We can't > just make up new format strings otherwise, but we can create new meaning > for special pointers as we do for struct resource and others. > That's fine, but we need to be careful when it comes to tracing. Passing in the address of a structure in the ring buffer may be fine, but we need to make sure that an address pointing to something other than the ring buffer is forbidden. I'll need to update libtraceevent to handle such cases too. -- Steve