From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756608AbcCUOm7 (ORCPT ); Mon, 21 Mar 2016 10:42:59 -0400 Received: from casper.infradead.org ([85.118.1.10]:56427 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756270AbcCUOm6 (ORCPT ); Mon, 21 Mar 2016 10:42:58 -0400 Date: Mon, 21 Mar 2016 15:42:55 +0100 From: Peter Zijlstra To: Steven Rostedt Cc: LKML , Ingo Molnar , Thomas Gleixner Subject: Re: [PATCH] sched: Add preempt checks in preempt_schedule() code Message-ID: <20160321144255.GX6344@twins.programming.kicks-ass.net> References: <20160318130602.25f6c9cd@gandalf.local.home> <20160321092746.GR6344@twins.programming.kicks-ass.net> <20160321092932.2d1dce5a@gandalf.local.home> <20160321141145.GV6344@twins.programming.kicks-ass.net> <20160321103507.3dd01046@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160321103507.3dd01046@gandalf.local.home> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 21, 2016 at 10:35:07AM -0400, Steven Rostedt wrote: > On Mon, 21 Mar 2016 15:11:45 +0100 > Peter Zijlstra wrote: > > > So the problem with preempt_enable_trace() is that we just called a > > _notrace(), and while I now know these are two different trace thingies, > > I might have forgotten that in a few days. > > > > What about preempt_latency_start() for the disable, and > preempt_latency_stop() for the enable? Make it more like a stop watch? ok that works.