Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2102077yba; Fri, 17 May 2019 10:26:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxr7lyroIjsYWBBMAcAc5wLQrS9chmix8BUCDeW8+04FekUwdAYTQ409DFw5IMFJP1pCMyB X-Received: by 2002:aa7:910e:: with SMTP id 14mr32693099pfh.153.1558114014642; Fri, 17 May 2019 10:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558114014; cv=none; d=google.com; s=arc-20160816; b=xncfOX1A6gORuZoXVosnzNP6sC/iG4nTUGOEofWQ0TfQz1Pk2oYHR9CtH9i0gAjkjH CreO60KFT1sObU5BCBRbAY8opr2YEG2l8u5tejUV8Vha7JtKZcjOKtXkotT6ON2Cc95A xdVFxXhnDNsItHHVhc3xeqcJfhyWMnjA3LyGH1CkVjUiNxj2WENQrz2WAYGUyYL8sfGy paQsuJXXF6Nu9TblQF+eYqXmLnT88+FYQLCdDptdfvZ1QLcLpmwcs6Ef1mPQXSnYFJ1c qrn5JXYeTYrPSUCy0itxLxv1yuJ9dw5sTWDbzZLLI5X4Q9wQ2874114WFGrNnbyR63/p y7tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NbjfTetAqL1pRhjTEDGbQ+uNYoNVxKUkaX8lZYlWznw=; b=jVZ15q/7SDPO3INoN8x6kLaaxtGH9aGdfAIyGD1lm5OhoQz58ucAKd4GEcJuji8lbZ /wweG4XzsTzhQf/u0DmMr2OIw23LpgMl6hCau0bRN2ZIAWWE0Vr/oTyMesoSrJUT7VBJ olliY3DL0mcANQlACumnDWC1Chp5mAvjgAcWcwyFJCh1YDlG6iewIiprX4WT8R760pTY xVH0UyinnPfRhDmfhHAMkfQIpgh5aN1f7Op23665Wr0H7Phx+9yYVaUFJYw9eK5pPvT4 9M2dXsWWSy6zkLegra942RDlwlhyVh1xRurQiMaMgRP3pRKKTctqYvmJWfdDgB7Ny3dB 76kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CC5B2Ges; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p127si7196980pgp.217.2019.05.17.10.26.38; Fri, 17 May 2019 10:26:54 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CC5B2Ges; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728174AbfEQRSh (ORCPT + 99 others); Fri, 17 May 2019 13:18:37 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44949 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfEQRSh (ORCPT ); Fri, 17 May 2019 13:18:37 -0400 Received: by mail-lj1-f195.google.com with SMTP id e13so6928550ljl.11 for ; Fri, 17 May 2019 10:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NbjfTetAqL1pRhjTEDGbQ+uNYoNVxKUkaX8lZYlWznw=; b=CC5B2Ges+xvej3Nhb6RmKVrq8K8CcavP5JDncg3r+toYlm0bojmH/OgLQlbeOgMGo8 hBZGtecc9vw84t81r9B7TRr3H88irnUReCcOi4gueT82FV4YcGc/8QmdRgSwnfc05z3e DdvTNyx6eFN7IAYd8hKOvFZiUQI0T/cb1KNMZrA49Z4uw6QTOpa6z+XwnOE2uo+fzdJ8 1oopsf8rW02bpStuMl44QVmuRE3gojJf3zzIj4VtKKIBo8Fv5vT/udNsSiDFgg5mN+xd uU6/HH0bOj1cvjGgt7gO8SblVycAuKggmfZXJ4kk72OEzmHtn4AzQ5PHX2/yZc4NvgLh K5aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NbjfTetAqL1pRhjTEDGbQ+uNYoNVxKUkaX8lZYlWznw=; b=MrzbfzZwhaqQkPDpGlslLkez/SQnQf1TXQnhwlVrVEsXteCo+w9r5FR2qsowno3eZQ 3gySGiP5QE7xMraiFwNwx9aBN46+56xzYI2qRVzZYXTf9appGueG107Z8AnfaNT9GfMm yxiymfUrwmgU/YijAnnrUVBV5nU18V3SmBt85lpht6IhbUR6xfikOOsiHE7HKDNk6JuF vPZntK7A7je0RVuepV7Ew2hUEiaXoD7Lws+KPBVirfTahNDQpMIS8OxW9g5qR4CrF1yj TgzQjvhUHIRTiQhQqevygvclOH1i8rbkbGApujDxyXC1uNHNZWkgsrxAnLi2I3i3KUFI lsNg== X-Gm-Message-State: APjAAAV8bLlZ7cFvOXWkpOKY9joaMu2lkknfCdHm99f0yuGGNAkT3Rld 70loJVXjyVJZcs4nArtLBbbPU13xN/G50tRgh1QXxQ== X-Received: by 2002:a2e:8347:: with SMTP id l7mr7290906ljh.17.1558113515365; Fri, 17 May 2019 10:18:35 -0700 (PDT) MIME-Version: 1.0 References: <57169361f2adf39569e061d3dd1e5588d22c65a3.1556025155.git.vpillai@digitalocean.com> In-Reply-To: <57169361f2adf39569e061d3dd1e5588d22c65a3.1556025155.git.vpillai@digitalocean.com> From: Aubrey Li Date: Sat, 18 May 2019 01:18:24 +0800 Message-ID: Subject: Re: [RFC PATCH v2 17/17] sched: Debug bits... To: Vineeth Remanan Pillai Cc: Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Subhra Mazumdar , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 12:18 AM Vineeth Remanan Pillai wrote: > > From: Peter Zijlstra (Intel) > > Not-Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/sched/core.c | 38 +++++++++++++++++++++++++++++++++++++- > 1 file changed, 37 insertions(+), 1 deletion(-) > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 0e3c51a1b54a..e8e5f26db052 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -106,6 +106,10 @@ static inline bool __prio_less(struct task_struct *a, struct task_struct *b, boo > > int pa = __task_prio(a), pb = __task_prio(b); > > + trace_printk("(%s/%d;%d,%Lu,%Lu) ?< (%s/%d;%d,%Lu,%Lu)\n", > + a->comm, a->pid, pa, a->se.vruntime, a->dl.deadline, > + b->comm, b->pid, pa, b->se.vruntime, b->dl.deadline); > + a minor nitpick diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 3e3162f..68c518c 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -93,7 +93,7 @@ static inline bool __prio_less(struct task_struct *a, struct task_struct *b, u64 trace_printk("(%s/%d;%d,%Lu,%Lu) ?< (%s/%d;%d,%Lu,%Lu)\n", a->comm, a->pid, pa, a->se.vruntime, a->dl.deadline, - b->comm, b->pid, pa, b->se.vruntime, b->dl.deadline); + b->comm, b->pid, pb, b->se.vruntime, b->dl.deadline); if (-pa < -pb) return true;