From patchwork Fri Dec 20 16:38:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 182310 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp3843366och; Fri, 20 Dec 2019 08:38:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwNr3QhkbMiZJ9VjU2md6B92S/4CJxQyCKdSHW/w3Dn39LuWypZXtXzmmsm87I1I8Xay8KY X-Received: by 2002:aca:120e:: with SMTP id 14mr3904414ois.135.1576859933664; Fri, 20 Dec 2019 08:38:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576859933; cv=none; d=google.com; s=arc-20160816; b=kN4hl64xh8z84SkJzxOA/V2T02dkCQQF7mzuDzZYy+V3u181yyIJDzmTEYh7xXqjRp SjBKK3ifTIqU8kuKo1A0kAjl6/hWbH7QH+TCGwZMxpZv1O0RGmh+O75xnvxz5oCs2v14 CbZZjF/OYfqnPkioWnyatp3ns3dyRducGiDFWgxocvbsprGK7fvgtp3WrY703KONEZcQ RtdkGCDSTWx9LXsm2yN7Y0X2bRfgEB+jn4mZmZEC3X38KdiDCFwoNpGfT07ukXT+7nHb OETBzCzvJw2mmuF4zaJRA8qrwn3wKFIQKpoqj3x+EbPQzTwn2JJGCccXRgA9Ufp7I9rJ T0zw== 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 s128si5027876oig.204.2019.12.20.08.38.52; Fri, 20 Dec 2019 08:38:53 -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 S1727403AbfLTQiw (ORCPT + 27 others); Fri, 20 Dec 2019 11:38:52 -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 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(-) Reviewed-by: Bjorn Andersson 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); } }