From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751820AbdBINpJ (ORCPT ); Thu, 9 Feb 2017 08:45:09 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:56468 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751635AbdBINpH (ORCPT ); Thu, 9 Feb 2017 08:45:07 -0500 Date: Thu, 9 Feb 2017 14:41:43 +0100 (CET) From: Thomas Gleixner To: Dave Jones cc: Linus Torvalds , Kees Cook , Xing Gao , Jessica Frazelle , John Stultz , "Eric W. Biederman" , Jonathan Corbet , Tejun Heo , Lai Jiangshan , Petr Mladek , Andrew Morton , Oleg Nesterov , Nicolas Iooss , Nicolas Pitre , Richard Cochran , "Paul E. McKenney" , Michal Marek , Josh Poimboeuf , Dmitry Vyukov , Olof Johansson , Shuah Khan , "open list:DOCUMENTATION" , Linux Kernel Mailing List , "kernel-hardening@lists.openwall.com" , Arjan van de Ven Subject: Re: [PATCH v2] time: Remove CONFIG_TIMER_STATS In-Reply-To: <20170208203027.r6v4apovtyi6nuu3@codemonkey.org.uk> Message-ID: References: <20170208192659.GA32582@beast> <20170208203027.r6v4apovtyi6nuu3@codemonkey.org.uk> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 Feb 2017, Dave Jones wrote: > On Wed, Feb 08, 2017 at 11:54:30AM -0800, Linus Torvalds wrote: > > On Wed, Feb 8, 2017 at 11:26 AM, Kees Cook wrote: > > > > > > Given that the tracer can give the same information, this patch entirely > > > removes CONFIG_TIMER_STATS. > > > > > > Suggested-by: Thomas Gleixner > > > Signed-off-by: Kees Cook > > > Acked-by: John Stultz > > > > Looks good to me. Let's wait for the 4.11 merge window though. I'm > > assuming I'll get this through the tip timer tree.. > > >From a quick look at the source, powertop uses this file, and appears to > handle it gracefully if it fails to open, but it will lose functionality > to determine if a timer is deferred. The lookup happens when evaluating a timer_expire_entry tracing event. With current kernels the same information can be retrieved from the timer_start tracing event (flags field). And that's way more sensible than scanning timer_stats because when the trace is evaluated there is no guarantee at all that the timer is still queued and exposed there. That should be trivial to fix in powertop. Thanks, tglx