Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3399048ybl; Fri, 20 Dec 2019 08:39:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwQc7ctm4yRJMENR3whOPTWEB9IaHrG5GMdhieo3lPGlUWM8g4/ICu+vZi41JqS8wgYQRwA X-Received: by 2002:a05:6830:1608:: with SMTP id g8mr15133500otr.169.1576859981123; Fri, 20 Dec 2019 08:39:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576859981; cv=none; d=google.com; s=arc-20160816; b=q+3WvYjhexvE+Od6JYIufPFdB2lPFNC0vxuZNxP+ns1SJo4z6edOmoS4dDwZGjDHgT M1okZzqtKjbJACapW84uny2T5clGcjJdHAHQ38yHn23yZlUGZznFLJF/glSFP/WRYp10 ENp3YRTIRBM/dlG//B0AdU+QaaFywVht3sZXJ6UrAPw6kPBoHiVkxtmhhazLPP6GGKjS VNvfk3OkNgT7RpTCvOrxt4wJSia1pHhQBXQiwQH0H0YJIDsUWZOE05H3dcrYlO4DbnSS Smxtz6uf0aw9qb5HnsC8w7Md8uNJXHLunZnWfy4VaF/jQrcWDdrqw8mtWcOvLw1QTbP9 PwKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=kvxa0Xnr9nkcLaOalM1HckZFWjf459g2PFBnyA+1Iv4=; b=EPK7KIOxbOUZqyCLxgZ68a8OsyWrEHr/E6zu4VXMEqAaxOigVc2T9ff8hkXjkvMWBe WISblJDlHfbpZ/vZ98hir2SzYOSWv6VvwcT1KzCalY/cNvFbCkXyEmpC8jYeSv2KxJje t7THTp/XiiDfoiw7frjcCoXgN+nLvX5lJdGbkB78pdbk7zHKMRCn4XMpfdn0rdrHu8UC ZU+pije78JbYyXcAzqutb+3QEjU/ye1NYSmECd1HLcHLJ/YFTeg+ccmYf9s0ujvmL8eR 2rc6VfMiI8LpasVSM1RBTA1l18gXwYwyRBLmjsUm3IRy3r6TgZ/vtXPlXO5EUXID2TyB ik9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Opyl8zrW; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c21si5508451otr.223.2019.12.20.08.39.28; Fri, 20 Dec 2019 08:39:41 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Opyl8zrW; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727394AbfLTQiv (ORCPT + 99 others); Fri, 20 Dec 2019 11:38:51 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39162 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726808AbfLTQiv (ORCPT ); Fri, 20 Dec 2019 11:38:51 -0500 Received: by mail-wm1-f66.google.com with SMTP id 20so9756146wmj.4 for ; Fri, 20 Dec 2019 08:38:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kvxa0Xnr9nkcLaOalM1HckZFWjf459g2PFBnyA+1Iv4=; b=Opyl8zrWxfG0T2eYgPBCYlAFhLgCFaTHdUTXn2LxdfuGNDC2GdzYXG1yF19O38Us6K 1AsYjkhAk42CChTlLYqNfHgAu+vSGaZm0yPEMw66FdJ2Yz0PmpKEAS0U5+gwOogm8goU gPyZz+CLK0axB1A5WOPgA4tUa9IVt+ZxzhvvPKdxDGaiCUUMTl92dldhdPb79bYd+Q2R ZjECpnvcx+cGrskEDW5EZ3HGjA7Do9m7fGzKCc8bL1CUgXZg5I61E14M3pAyNWlObYjj 4GQbyEq8NZBsuetsHAzqEVKR1RS4z8kEJ1rgAeZ+wI4ac6Gy4QXgGGrQ1aooDe55ympf Wn0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kvxa0Xnr9nkcLaOalM1HckZFWjf459g2PFBnyA+1Iv4=; b=LtPwDbhqXg6jbQdr2sRbSuxY+upmalTffKSMf1kz1AmCRSc51Z4qWOxGJVm12PSE5f zzQ+dfDRoDDJKYdZ7yLaUgaoDrPNi1C84U5MYaiFlZO7vloJSG0fjy2/FgXGBsUzP78n hfzYoJuuaPxQdjiTrZ4mrHv5swCp9qNUCszjgB0RTAwS2+Dj2iqXHh5J0eQpQnQLaWpd QJZMeSqEnb816Nsx5xEdXYRzuaUYopaapaghUfDkkBGWKksWkV3zTzBKPyeZWETw30jr NU5OabkxgHY+fwWloBHPzMiovEyTRPTbrjqZHtnJe6nrXZTpmcYqJy+E1gPE7maiE6qE p9qg== X-Gm-Message-State: APjAAAWhu1sTHxfCzR/YKTmSZ9TpG7zz4wKBSghLwkmukGvHZHwSdltp 1yA9vcMQGV39wS4hw+QXiHgg0A== X-Received: by 2002:a1c:740b:: with SMTP id p11mr18453304wmc.78.1576859929814; Fri, 20 Dec 2019 08:38:49 -0800 (PST) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id g23sm10225807wmk.14.2019.12.20.08.38.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Dec 2019 08:38:49 -0800 (PST) From: Georgi Djakov To: linux-pm@vger.kernel.org Cc: bjorn.andersson@linaro.org, evgreen@chromium.org, daidavid1@codeaurora.org, okukatla@codeaurora.org, georgi.djakov@linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH] interconnect: Print the tag in the debugfs summary Date: Fri, 20 Dec 2019 18:38:46 +0200 Message-Id: <20191220163846.6485-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now we can have a tag associated with the path. Add this information to the interconnect_summary file, as the current information in debugfs is incomplete. Signed-off-by: Georgi Djakov --- drivers/interconnect/core.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c index 1867fad56c0f..ae80fbea5d2d 100644 --- a/drivers/interconnect/core.c +++ b/drivers/interconnect/core.c @@ -34,7 +34,7 @@ static void icc_summary_show_one(struct seq_file *s, struct icc_node *n) if (!n) return; - seq_printf(s, "%-30s %12u %12u\n", + seq_printf(s, "%-42s %12u %12u\n", n->name, n->avg_bw, n->peak_bw); } @@ -42,8 +42,8 @@ static int icc_summary_show(struct seq_file *s, void *data) { struct icc_provider *provider; - seq_puts(s, " node avg peak\n"); - seq_puts(s, "--------------------------------------------------------\n"); + seq_puts(s, " node tag avg peak\n"); + seq_puts(s, "--------------------------------------------------------------------\n"); mutex_lock(&icc_lock); @@ -58,8 +58,8 @@ static int icc_summary_show(struct seq_file *s, void *data) if (!r->dev) continue; - seq_printf(s, " %-26s %12u %12u\n", - dev_name(r->dev), r->avg_bw, + seq_printf(s, " %-27s %12u %12u %12u\n", + dev_name(r->dev), r->tag, r->avg_bw, r->peak_bw); } }