Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp434173ybc; Fri, 22 Nov 2019 07:32:02 -0800 (PST) X-Google-Smtp-Source: APXvYqw1SoR0QJX9alko3jm73O7nXpMoC666q2F5dCsOEF1oGw2Xg2luc63JOgvaTMKxlbsVwP2S X-Received: by 2002:aa7:c683:: with SMTP id n3mr1791792edq.243.1574436722170; Fri, 22 Nov 2019 07:32:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574436722; cv=none; d=google.com; s=arc-20160816; b=kjh3upRpXw8MWoIHFxtyP3M3X6nTblBG711eHrv1fo0APqw2sAGzsr/9sjIedaIgmy ju2HSbJoiLpqXvXdByJY3CMuRZK3zjVa31fPVXC4OENXj8gC5YPbSGBvETQPFI+w9BPz 9R0SvCXhg5rAmyj1uK50wAIB2pZrxZF0SvhPWvXk6L2qk+CGQQQFU4B62vMZ61BH5UO1 1XZucCLYm44q3c37iRH6Txp1FJYqbEsSth8NKT3QPpD6b4LzNUFX8tMMyPkAnC9ZPNzj iIuKPdyuwxU5Sjrcf+4y0fo1rA4S5brdjmQbr6Lxvbvidnqja5x668BCurx9A/tljWNT pNEg== 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=rmdyhAKD9wxLmjLuGXo25vm0WPlSEY0LGJa7ZS9BMD+A0rGKKFCR0hOQrha3zoN1bP KwA0KuSgzBqThKKdSEeO0si/iDnBICahZ2JAbrjiz5YT2UdBClwvgNhFjUR8alxBYkj9 3f3Rulxr/q4py9szbIRMkpNj/P2ZsDOqKD4h9SJYmbw7+htMBRN9CvOLhZYJucbNKQss 7lvYMLi/L/OjqwlTnG7XFvopthCDaya6fgWuip6uH7cU59fEj/aqkEGSR0YpljpyLG9t NiQFa7+3813ZsbcsBkXgakN4vwuZWDrTeHfCO5WrpOosofVOp87weFDUsIVSxZXOhdwt Tagg== 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-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 d10si5115683edb.226.2019.11.22.07.31.38; Fri, 22 Nov 2019 07:32:02 -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=UFaFecI+; 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 S1727182AbfKVP1Q (ORCPT + 99 others); Fri, 22 Nov 2019 10:27:16 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42561 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbfKVP1Q (ORCPT ); Fri, 22 Nov 2019 10:27:16 -0500 Received: by mail-wr1-f68.google.com with SMTP id a15so9077145wrf.9 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=fy1vjo9gckOHAZ39jgka3ejl56unMgAk2RWuZlbjB9MIBlRJZHqN8XMGfPLQoORxot fr7ws0NjXvwi/9KliOs+XnVvkWkyEl4Gztyo6Ye8Ym4f4MC0Z0qgq2HSJbenKkAbI+ye Q6ahEWaqiervprUxgOGeBk2+NCwRxmdwlhMDl2uqKvPJVG3JtfZHxr1hP5d9ejOc8ZN4 QhBWCvJyjKkaDyKE5HfBT4TNj2IEDFQxqzTNAXMUyNy6i0NdtQMY7z5l/+S3DsmGXyKx pSzZeLJuk6X1QtVTFnLOFlMEnonqVicB5U9F37uT4wrYAJr6RTtIj3qkuPp68UHrocF8 GueQ== X-Gm-Message-State: APjAAAUW0iz9HQx0gQ7UHDTvpFkRJcGAZIzR2ef5P56SRt1T1imsaDbI 7MuKoIOfPzvp/GiCg6Tug4vETQ== 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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