Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757359AbcC2PQz (ORCPT ); Tue, 29 Mar 2016 11:16:55 -0400 Received: from casper.infradead.org ([85.118.1.10]:51219 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757338AbcC2PQx (ORCPT ); Tue, 29 Mar 2016 11:16:53 -0400 Date: Tue, 29 Mar 2016 17:16:49 +0200 From: Peter Zijlstra To: Daniel Bristot de Oliveira Cc: Steven Rostedt , Ingo Molnar , Thomas Gleixner , Juri Lelli , Arnaldo Carvalho de Melo , LKML , linux-rt-users Subject: Re: [PATCH V2 3/3] sched/deadline: Tracepoints for deadline scheduler Message-ID: <20160329151649.GA12845@twins.programming.kicks-ass.net> References: <14f6caa05f73ceba69eff035ac542cad671552b3.1459182044.git.bristot@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14f6caa05f73ceba69eff035ac542cad671552b3.1459182044.git.bristot@redhat.com> 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 Content-Length: 775 Lines: 22 On Mon, Mar 28, 2016 at 01:50:51PM -0300, Daniel Bristot de Oliveira wrote: > @@ -733,7 +738,9 @@ static void update_curr_dl(struct rq *rq) > > throttle: > if (dl_runtime_exceeded(dl_se) || dl_se->dl_yielded) { > + trace_sched_deadline_yield(&rq->curr->dl); > dl_se->dl_throttled = 1; > + trace_sched_deadline_throttle(dl_se); This is just really very sad. > __dequeue_task_dl(rq, curr, 0); > if (unlikely(dl_se->dl_boosted || !start_dl_timer(curr))) > enqueue_task_dl(rq, curr, ENQUEUE_REPLENISH); > @@ -910,6 +917,7 @@ enqueue_dl_entity(struct sched_dl_entity *dl_se, > static void dequeue_dl_entity(struct sched_dl_entity *dl_se) > { > __dequeue_dl_entity(dl_se); > + trace_sched_deadline_block(dl_se); > } And that's just not going to happen.