Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1754624ybg; Sat, 19 Oct 2019 01:48:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcyH1m05ObZs2WzZ7vsQe7Ag7OdVFRTuFiaUehcKWf67rPFFGcuXIWZsXDBDoQCzS81z2P X-Received: by 2002:aa7:da4a:: with SMTP id w10mr13796495eds.209.1571474927455; Sat, 19 Oct 2019 01:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571474927; cv=none; d=google.com; s=arc-20160816; b=tQvv0OYT+/Jwo/ApenIWfcCafbwmj9Mb8e4O3x1S1qp21wdWKXadz1KtO3XUovfRy9 1Nq7u+TZrX2uVOdyjCkXPfAWldMVrshWOij7FmVcbBgTnkwR3dyed5nLnPuxZ9OjZx9I 1NrmVZ4q+Ri4O3Uea+wHcsgG6sCLtAyC+u0ilpa74yc7YLWH1j3Npne9uyGp4IqB2Z4t cLApLM9H08okJ0lCpJSFqqgMxHhmSz1DFq9s1uo7wm7jijtfBZUnH47FG7YPtmzdGW33 rGozWl0QwPJ0LXbBTtGJUtMskyFwVyrEK6OPiD7bHFOIHG8Bjy3tA9pR4UsDIumiN7E1 cIrA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=6NgYah9h+CBQ69ivpUbuGhS5qPyXNAr8YqlVraAPP6Q=; b=Ut4EL9UaPpP/WfmT2cm0+57gMEY+OHqniAI6uvSpNhBXdOkn9r0uAIVGG+7IC91K0n e6OC1XgaXwZwAhDiMXS03mRdpG4+p6yrrjRFkuA7sIxYTFEFhI6QSwwQVYHrNnyhnRDo U3zpKMjFvOKnIDHCanWyzSOPKUNZ26A2qPr4zXCndMOSTXQ/uTs28IxYtXk/2sjzvs/A fiFxIDGtcLJYQraQieBPQsgCaXIj6cVncu0u4PYoQYwlO8z25PhjQkDym5fDMJhyQ5+C s/UaJGTXdtztpbJrzpUT2+BG+WNR5hQHdydj0MyT8gDq8YiuPwmvAiZwTn1WemvlVzf9 kA8g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k16si4581571ejc.134.2019.10.19.01.48.24; Sat, 19 Oct 2019 01:48:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409307AbfJRQzy (ORCPT + 99 others); Fri, 18 Oct 2019 12:55:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:48416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405642AbfJRQzx (ORCPT ); Fri, 18 Oct 2019 12:55:53 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 56FE620854; Fri, 18 Oct 2019 16:55:52 +0000 (UTC) Date: Fri, 18 Oct 2019 12:55:50 -0400 From: Steven Rostedt To: Bjorn Andersson Cc: Georgi Djakov , linux-pm@vger.kernel.org, mingo@redhat.com, vincent.guittot@linaro.org, daidavid1@codeaurora.org, okukatla@codeaurora.org, evgreen@chromium.org, mka@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] interconnect: Add basic tracepoints Message-ID: <20191018125550.0ad0eefa@gandalf.local.home> In-Reply-To: <20191018164403.GB1669@tuxbook-pro> References: <20191018140224.15087-1-georgi.djakov@linaro.org> <20191018164403.GB1669@tuxbook-pro> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Oct 2019 09:44:03 -0700 Bjorn Andersson wrote: > > @@ -449,6 +452,9 @@ int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw) > > > > /* aggregate requests for this node */ > > aggregate_requests(node); > > + > > + trace_icc_set_bw(node, dev_name(path->reqs[i].dev), > > + avg_bw, peak_bw); > > When I've been debugging interconnect things I've added a > kstrdup_const() of "name" in of_icc_get() and then included that here. > > I find including the path name quite useful for devices with multiple > paths. > > > } > > > > ret = apply_constraints(path); > > @@ -461,6 +467,9 @@ int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw) > > path->reqs[i].avg_bw = old_avg; > > path->reqs[i].peak_bw = old_peak; > > aggregate_requests(node); > > + > > + trace_icc_set_bw(node, dev_name(path->reqs[i].dev), > > + old_avg, old_peak); > > } > > apply_constraints(path); > > And analog to e.g. the clock traces I would suggest that you trace > device, path and "ret" here. If you are going to switch to device name and path, please just pass in the path to the trace point. Then have the TP_fast_assign() do the rest of the work. Thanks! -- Steve