From patchwork Fri Nov 1 13:00:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 11223081 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B91CA139A for ; Fri, 1 Nov 2019 13:00:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 89F6521835 for ; Fri, 1 Nov 2019 13:00:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EC15ozzq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726713AbfKANAf (ORCPT ); Fri, 1 Nov 2019 09:00:35 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40166 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbfKANAf (ORCPT ); Fri, 1 Nov 2019 09:00:35 -0400 Received: by mail-wr1-f68.google.com with SMTP id o28so9578991wro.7 for ; Fri, 01 Nov 2019 06:00:34 -0700 (PDT) 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=JnAtrIp1CQEJrAviLU5bc1LnukML3+XTcip2l+4dcgE=; b=EC15ozzq5r6O7Xmzqx3qzWh0ljIqUYns6h1WdyJ7AKAd20rZqTYo9V9KHWyQiCtzJc 647HxCf7/prcMBcdFlUb80gkD8T5S30CtKLZvt5UJ4OJGH8gNIxehms7v8Fs+Y7IBDIF YtWlCjv71EcQ+rsc5bShlkFA17hS8F5ax7Xv9WftYOAtj1Y7JC64GTo7j+4hyTapTeR2 GLiE/RjbbB+jkC+dEm2veHwxFVO5lieAqz+rHWsx5p61xB2Pf5xq0SGSDK2BZSb7RPRJ YQevWkOvlEwSkJSLoJkq2wkc7gSZiOr6JkUy7L3agZGpFF2ZgMcCD/fj+PlyWwbxm0r0 NliA== 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=JnAtrIp1CQEJrAviLU5bc1LnukML3+XTcip2l+4dcgE=; b=QLqkpGapnBOU6nRzDejEt9hHRfioGpGp/V4Ibk2JJ+4NAAGCna98jGHCjUkDUjjJ4I CkWNNwKhJh3z35fsTIyhM2q+1xn/Xmnde8IIOePdrQyQOI7pbGgwVXWCgJLPg9K3J6JY pc0rEZvTVa2TMf/18skGOlZnfGN1G73o8PR0/HQuptTtQCTwetEl+xgzoATI4N8M7ghZ dg8FkSYRXkn/h+UkX7lp63Nw/KAvBfHbx+LpQNdWYnH7nAN5ua8hs+v0x/mDq12W5ajn jx5THPmSoH4Tz/FTeua6FnCRWQ7IF9ndcgu6EpnZ8ksJ0l1y1UnIsAaL313wOdf9HJSm vzRA== X-Gm-Message-State: APjAAAXzRXrBLgKbj0XJmmn8N+OCkMfeCzWHcUoWSDQxk6fL2ddEeabr FbVUlNK3TmxqElRQ2yp8ywigCQ== X-Google-Smtp-Source: APXvYqwBJap78uhfylY8s1lRyzHMgoLG9vqE82nyBm2uLab+9M9LZMN2Ea5nZ9jbJRyQeJNGuqcRdQ== X-Received: by 2002:adf:db42:: with SMTP id f2mr3231266wrj.287.1572613233401; Fri, 01 Nov 2019 06:00:33 -0700 (PDT) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id x7sm14208476wrg.63.2019.11.01.06.00.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Nov 2019 06:00:32 -0700 (PDT) From: Georgi Djakov To: linux-pm@vger.kernel.org, rostedt@goodmis.org, mingo@redhat.com Cc: bjorn.andersson@linaro.org, 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, Georgi Djakov Subject: [PATCH v2 0/3] interconnect: Add basic tracepoints Date: Fri, 1 Nov 2019 15:00:28 +0200 Message-Id: <20191101130031.27996-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The tracepoints can help with understanding the system behavior of a given interconnect path when the consumer drivers change their bandwidth demands. This might be interesting when we want to monitor the requested interconnect bandwidth for each client driver. The paths may share the same nodes and this will help to understand "who and when is requesting what". All this is useful for subsystem drivers developers and may also provide hints when optimizing the power and performance profile of the system. v2: - Moved dev_name() into TP_fast_assign() to reduce cache footprint. (Steven) - Added path name to traces (Bjorn) - Added trace for path, device and ret. (Bjorn) v1: https://lore.kernel.org/r/20191018140224.15087-1-georgi.djakov@linaro.org Georgi Djakov (3): interconnect: Move internal structs into a separate file interconnect: Add a name to struct icc_path interconnect: Add basic tracepoints MAINTAINERS | 1 + drivers/interconnect/core.c | 53 ++++++++----------- drivers/interconnect/internal.h | 42 +++++++++++++++ include/trace/events/interconnect.h | 81 +++++++++++++++++++++++++++++ 4 files changed, 147 insertions(+), 30 deletions(-) create mode 100644 drivers/interconnect/internal.h create mode 100644 include/trace/events/interconnect.h