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: 180068 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp378685ilf; Fri, 22 Nov 2019 07:27:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwKPk0dyR94E1xmXRBOcYnLE/26QxHliRpWYfE//XzSHN9drmMNWO1BsnmGA/3D2xpcPPeZ X-Received: by 2002:a17:906:9148:: with SMTP id y8mr8312831ejw.57.1574436437916; Fri, 22 Nov 2019 07:27:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574436437; cv=none; d=google.com; s=arc-20160816; b=ACQ9tuQTQVXYP8O8xALkFGH6nVJCp9qaCO5Ph0ilZPIDudQB+aZX9sf6dbzTQgNtA0 SSwK3lu2kliPZ1XSgAVvYJ0z4hIxBhq2in502ZY6lefQgaGcB4o93PPC1WC3XmZZ1yJK o1RQxITFCg3pYxxI2PabkAPNkurOZWYWX7l/41zomI33v4exw3C1yoq2+oirVxqm9Q1G 5bJjxfyiUdZhj9goR14Yd/gQgXWpQ4c4NI3QOcRnjWMgm27vltZV77thjhjbUCy5UbnT 6A+j6j+PBRnJS4iU9pdIVVi5179QNPei3uQb33Afn7cqf37qX5GAjBhPvGmfLRdBEDD7 pnsg== 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=cBh+C98xO+z8qsX915RR0pFfiuyA4L1CQVRjFLzavOE=; b=jq6pW05DvsdXIU9xlo7WpP37s5BwcP2rk4MPq5biBeYyBfV0aNKrZHerEw/hcRauKX Ft+FhLclFx1ViC+qpyZPlwKlaNtV0o8EN2NVviz4kJwNGJu4i93beTTQYycnJ0qhA/DN vGMa/xV7RVk63oIPLhlVtqQgVjJe/YRqM6J2O3OtKfXIQaSIwomCL2iX1Rj0LiGKYlcc ysweiuDRSbxAXq21juCkiVWD5e3sRjH7LCJametidnpbf93brWJ6Zy62ZY8VT5ZS3EyU wyxjAAjNUUOI9rqlNG55Dp+xNPNgricKjj0W5XPoJ2WofyrsC7Efw5BNUJD8i5XDygH4 Gnuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UFaFecI+; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 c10si5178494eda.284.2019.11.22.07.27.17; Fri, 22 Nov 2019 07:27:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=UFaFecI+; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726634AbfKVP1Q (ORCPT + 15 others); 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-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 Reviewed-by: Steven Rostedt (VMware)