From patchwork Tue Jan 21 05:33:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 23424 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C0FB12107B for ; Tue, 21 Jan 2014 05:35:45 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id x13sf31577181ief.6 for ; Mon, 20 Jan 2014 21:35:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=kV1ciEDuSnhcvY1hhl3zxxxlv/wt6/4jreCAXlMA7Kg=; b=ZFXItfMS1gdekArkbYXz5enRMvS/CYYDymAL+UgCHOK8cvXlmA8qqRTq+8K2vWl7Er DD9Fw7E66NG5JTnlmv6bAHOm9v7m6aZupvLbYk/OOg8iWCXvLSd/19MszKt5s/LJCXZu vrghTp25N2OoQ83zQPCMZSj9MGp0BUOrYncslEIQP8H+HwBOAIUhJHAbJg1rJQe5TrKr rygNF6SFWYOvHPXJbrER1J7KCZIdyssc0nBvegd9f+qEVmZ43SrX+NtgejJgeAxPtTWr njTYUTNs3OQMt1TPHRPrwq5laA8mxGC3gI8V4kGeDxAf2UKCxyy/Ps/ZhkOHufKyLnLx IGwg== X-Gm-Message-State: ALoCoQl4N7CDGG2mBYR+GWvl7kvMHdfiBI6xUIXzr43QqiNW1RkmQnFtHc0RVurhJdR0llgWavDt X-Received: by 10.182.204.105 with SMTP id kx9mr8399487obc.34.1390282545042; Mon, 20 Jan 2014 21:35:45 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.73 with SMTP id i67ls1131643qgd.97.gmail; Mon, 20 Jan 2014 21:35:44 -0800 (PST) X-Received: by 10.220.174.200 with SMTP id u8mr13043251vcz.6.1390282544927; Mon, 20 Jan 2014 21:35:44 -0800 (PST) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id dj3si1314843vcb.44.2014.01.20.21.35.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Jan 2014 21:35:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id lf12so3273519vcb.17 for ; Mon, 20 Jan 2014 21:35:44 -0800 (PST) X-Received: by 10.58.75.6 with SMTP id y6mr1030470vev.23.1390282544851; Mon, 20 Jan 2014 21:35:44 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp95439vcz; Mon, 20 Jan 2014 21:35:44 -0800 (PST) X-Received: by 10.68.133.6 with SMTP id oy6mr7144772pbb.153.1390282543995; Mon, 20 Jan 2014 21:35:43 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si3742575pbe.349.2014.01.20.21.35.43; Mon, 20 Jan 2014 21:35:43 -0800 (PST) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753529AbaAUFfh (ORCPT + 27 others); Tue, 21 Jan 2014 00:35:37 -0500 Received: from mail-pd0-f169.google.com ([209.85.192.169]:48819 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753038AbaAUFf3 (ORCPT ); Tue, 21 Jan 2014 00:35:29 -0500 Received: by mail-pd0-f169.google.com with SMTP id v10so7720183pde.14 for ; Mon, 20 Jan 2014 21:35:29 -0800 (PST) X-Received: by 10.66.232.40 with SMTP id tl8mr7381057pac.137.1390282528963; Mon, 20 Jan 2014 21:35:28 -0800 (PST) Received: from alex-shi.Home ([162.243.130.63]) by mx.google.com with ESMTPSA id yd4sm8545366pbc.13.2014.01.20.21.35.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Jan 2014 21:35:28 -0800 (PST) From: Alex Shi To: mingo@redhat.com, peterz@infradead.org, morten.rasmussen@arm.com, vincent.guittot@linaro.org, daniel.lezcano@linaro.org, efault@gmx.de Cc: wangyun@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, Alex Shi Subject: [PATCH 2/2] sched: add statistic for rq->max_idle_balance_cost Date: Tue, 21 Jan 2014 13:33:19 +0800 Message-Id: <1390282399-17091-2-git-send-email-alex.shi@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1390282399-17091-1-git-send-email-alex.shi@linaro.org> References: <1390282399-17091-1-git-send-email-alex.shi@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alex.shi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , It's useful to track this value in debug mode. Signed-off-by: Alex Shi --- kernel/sched/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 1e43e70..f5c529a 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -315,6 +315,7 @@ do { \ P(sched_goidle); #ifdef CONFIG_SMP P64(avg_idle); + p64(max_idle_balance_cost); #endif P(ttwu_count);