From patchwork Fri Nov 22 15:27:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 11258083 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 274041871 for ; Fri, 22 Nov 2019 15:27:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 04E9720715 for ; Fri, 22 Nov 2019 15:27:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UFaFecI+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726634AbfKVP1Q (ORCPT ); Fri, 22 Nov 2019 10:27:16 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:47097 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbfKVP1Q (ORCPT ); Fri, 22 Nov 2019 10:27:16 -0500 Received: by mail-wr1-f68.google.com with SMTP id z7so5675019wrl.13 for ; Fri, 22 Nov 2019 07:27:15 -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=cBh+C98xO+z8qsX915RR0pFfiuyA4L1CQVRjFLzavOE=; b=UFaFecI+e6XK8CQPbA6dCzXoCQ06/oN/oWaAhPOH1Qak+kbiErxtomFZ6fj4P7C9Zo 3QX0sFM5e9uFdF9zuGQGx7l7Ps/PDPkMoBDOidrfjGJa/ujBhawqhB4Yu0prfQ3JvhOb XAOvNXeL9hiCSs6xfaStRiOAIRY9IQTi6+059rtxuPoSTk7s1aE2ezXaVtpEuhFptBUx 4ZdgBqeOFwy2jWvsslYWbzd+NaHtOl9YxiljccQE2Z47s7NuAgSSbP36ZOYohtU1VuG2 WNvmOhbrcOeaYo0vyIo2wn7LncEBuk89pu8MQTsxS5Te0dewt6/UbytRueHQ9lD65H4x hGRQ== 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=cBh+C98xO+z8qsX915RR0pFfiuyA4L1CQVRjFLzavOE=; b=pSZrqxJqFmrntyc7EQxXeZQ4ea3QbILz8f//W+7pYJ7suEVitfx7jx3LDo2Hl+5RdB s1BylmoBA6XG9e80ozqmY7u8+8FYs1ycUDrb6POj9dVNai3OwWQU9VTFHdaDy4KN1MiG HDik82Epvu9ZHgFHp8jRP/ss2PLE6JLZNB/4nTJuGbSWxaF8aIohJ7bQ3jCvXZk8uf3a vvJaYBOWmyNlFoVgc3LFajhKKC8lQtOSZ6L/CNjhEoNRB3fLb7jLJo+2cl97zTSLU+SV jfkiSQuobN4VHWYSHVYe2Xtm7lKNvbLYAMcwZwccGpN6GeLRHNGFmTwxj7viIii8UQ1Q 1yXw== X-Gm-Message-State: APjAAAUCyO9Sfhm+FJlsKT34+eqEfOQ43JG4yAM7mkXSRXJ0Q09XhcWd lAVBd7i+naC2wAcQianQ/jON1Q== X-Google-Smtp-Source: APXvYqwi1bJWuQJ2ZyfSz6IK7AWXUIHOuNwTnYpwXJGni0c209ZDVHhlziX/ecY+BW5ZP9RiO7TvDQ== X-Received: by 2002:adf:b193:: with SMTP id q19mr17173456wra.78.1574436434458; Fri, 22 Nov 2019 07:27:14 -0800 (PST) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id a206sm4061081wmf.15.2019.11.22.07.27.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Nov 2019 07:27:13 -0800 (PST) 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@linaro.org Subject: [PATCH v3 0/3] interconnect: Add basic tracepoints Date: Fri, 22 Nov 2019 17:27:09 +0200 Message-Id: <20191122152712.19105-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.24.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. v3: https://lore.kernel.org/r/20191101130031.27996-1-georgi.djakov@linaro.org - In order to avoid #including a file with relative path, move the trace.h header into drivers/interconnect/. (Steven) 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 drivers/interconnect/Makefile | 1 + drivers/interconnect/core.c | 55 +++++++++----------- drivers/interconnect/internal.h | 42 +++++++++++++++ drivers/interconnect/trace.h | 90 +++++++++++++++++++++++++++++++++ 4 files changed, 157 insertions(+), 31 deletions(-) create mode 100644 drivers/interconnect/internal.h create mode 100644 drivers/interconnect/trace.h