Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp790033ybc; Fri, 22 Nov 2019 13:12:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwcjPwhig3sSf0430+BCGjcL7f4X9KBoAV4x1VympYo4VjnkhPqRrTuX4+PblsLLwornVZ4 X-Received: by 2002:a17:906:7cb:: with SMTP id m11mr1285774ejc.76.1574457168690; Fri, 22 Nov 2019 13:12:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574457168; cv=none; d=google.com; s=arc-20160816; b=r7ozBljh6olcPAeA3DvoUbbgucucu24728ApusQZsp1521XYNghfYWDWkfE5NNNMds Hlg2VeN/0uGcIJtnULFVUiA1XkMMi+r//uzRXM7nDfyd1hu6Oool0OLw5lF5ZOD+leMA N3EN4lm/oP9zjIKz1N7RE5saBlCYsLLpPE34Qa6Nejgj+SXPTMn0WSPehOp+ZyRbZ2F8 +0F7CX8bz2bXqU3iebAHXBivZXohJWJijdtxU+G6NVME0nLm2Wt0c28IaLO2i/S6J6Oi BZrtL/iADShZ+S3hX+C31D7yKy09ZdOwfUpR09i0K+TUVzq7giaZey2RwkXmapOvXKwQ MXyg== 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 :content-language:in-reply-to:mime-version:date:message-id:from :references:cc:to:subject:dkim-signature; bh=pPhsnSH3nxPXeIqxL+4HqjbYwWteqaf0lm5i420fGio=; b=G//j0x/D7BCVmS3bei2Hc31Rx6vmuWS9+UzCpSNFNSkufXsD998sndZ+xFwUp6mPjS I2llnzOyBtNllurdwKvQk1gYgWYyn82ij2rCAlhpXQt6lrviipfWbeFSy1Pw46fp1kzU GXSygD4y0vmKLkiUuVN3zONZaMMfPae9UgcSHblELVXCHtywYybQrfhzvABO16tcBmhp BByU7y5ugW17KGw7H/jI/2Xc8JWJ3nA/IuT7zwXRHxSg0ZosoRIZ1K5l5JSFAqLCCD6c N0nBq7W+Nv1mrW1WCFW5Ax0ETc0ljG1+26NR+zIo3uTxz6+6d6nMcEfFNMy8UehM0uVb ou8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dxIbQ0FD; 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 q2si4954298eju.229.2019.11.22.13.12.23; Fri, 22 Nov 2019 13:12:48 -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=dxIbQ0FD; 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 S1726721AbfKVVKq (ORCPT + 99 others); Fri, 22 Nov 2019 16:10:46 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38861 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726568AbfKVVKq (ORCPT ); Fri, 22 Nov 2019 16:10:46 -0500 Received: by mail-wm1-f67.google.com with SMTP id z19so9204617wmk.3 for ; Fri, 22 Nov 2019 13:10:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=pPhsnSH3nxPXeIqxL+4HqjbYwWteqaf0lm5i420fGio=; b=dxIbQ0FDD6MvsKJDshOkIFWxi5Uo2rZG2gF6wayWi+Wn25wurIoOleWQgpG14zJxxU o58qa2GHq7h/TjYyEdnovONa6Z8KC98Yta02QPYelHis/bFwfCbzpN5tTkGEL3pPjKed d3yDTFSr9bE8qPDnSqyHhvA0o9ygYxYZi3FMcxqLCSd3Hufc6cFqjJBcYwMx73FzeUH/ 8ee5yz6aqSM+wSuLHvEo96o1oM0Zs5/YnMzdQLlMYAOkECwAj7GoT3TAVik7maxOYHu8 AvRoO74JLBSzDfmyy8RW2lWnUVOhdKIzUg4jyOuulke/Lo9ftnAYMui3thyYzkC78Cpx siMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=pPhsnSH3nxPXeIqxL+4HqjbYwWteqaf0lm5i420fGio=; b=hrV8fmPK+WIF2nEUkvM0uPcVgR++oXs8rbKLpwGHbqrsiZk/g6Flw1vb1m1NaeAAdN X76bUnyLQ744VNUmWs6lpkn3QjfbuwzjsCTQX2+rZZa0F9lyLeGIoN0IRRPLj+bBfb4m Ms8L10Rz8dHYwzmULSUkGbWrWKQ0b+bXkbeAHvMTD9fDlMeyQ8yk3MyhMIoMCxLgUIsl au5czxQaPrQVakS3kYyLULcgKXLS2Wc5xRpeQj9FFB7ypDKPQr9PvvdG0mOpFZUZMTWm XNlhAQhO8EUJ1mlRtkuhxOW9JYTCtGCQI2zqACRS8IO4Pi2RPW/cY4ktty75rhjOZRd5 QxeQ== X-Gm-Message-State: APjAAAWuobi/abuKOApkUQxO7SDytM68To8R8s7/7P8IXlbU0vcsnv/g D0DrDgqYI3yzZSlV57lpvXhlbJWefpQ= X-Received: by 2002:a7b:c7d6:: with SMTP id z22mr7185736wmk.136.1574457043123; Fri, 22 Nov 2019 13:10:43 -0800 (PST) Received: from macbook.djakov.com ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id 72sm9188182wrl.73.2019.11.22.13.10.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Nov 2019 13:10:42 -0800 (PST) Subject: Re: [PATCH v3 3/3] interconnect: Add basic tracepoints To: Steven Rostedt Cc: linux-pm@vger.kernel.org, mingo@redhat.com, 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 References: <20191122152712.19105-1-georgi.djakov@linaro.org> <20191122152712.19105-4-georgi.djakov@linaro.org> <20191122120746.62027203@oasis.local.home> From: Georgi Djakov Message-ID: Date: Fri, 22 Nov 2019 23:10:39 +0200 MIME-Version: 1.0 In-Reply-To: <20191122120746.62027203@oasis.local.home> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steven, On 22.11.19 19:07, Steven Rostedt wrote: > On Fri, 22 Nov 2019 17:27:12 +0200 > Georgi Djakov wrote: >> index 28f2ab0824d5..725029ae7a2c 100644 >> --- a/drivers/interconnect/Makefile >> +++ b/drivers/interconnect/Makefile >> @@ -1,5 +1,6 @@ >> # SPDX-License-Identifier: GPL-2.0 >> >> +CFLAGS_core.o := -I$(src) >> icc-core-objs := core.o >> >> obj-$(CONFIG_INTERCONNECT) += icc-core.o >> diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c >> index 1ddad8ef3cf0..b218a2609f6b 100644 >> --- a/drivers/interconnect/core.c >> +++ b/drivers/interconnect/core.c >> @@ -19,6 +19,9 @@ >> #include >> #include >> >> +#define CREATE_TRACE_POINTS >> +#include "trace.h" >> + > > You may want to move this below the include of internal.h, as you don't > want CREATE_TRACE_POINTS defined when including any other header, or it > can cause issues if that header has some tracepoint header inside it. > > It may not be the case now, but could cause for headaches in the > future, if other headers get included in internal.h. > >> #include "internal.h" >> >> static DEFINE_IDR(icc_idr); >> @@ -435,6 +438,8 @@ 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(path, node, i, avg_bw, peak_bw); >> } >> >> ret = apply_constraints(path); >> @@ -453,6 +458,8 @@ int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw) >> >> mutex_unlock(&icc_lock); >> >> + trace_icc_set_bw_end(path, ret); >> + >> return ret; >> } >> EXPORT_SYMBOL_GPL(icc_set_bw); >> diff --git a/drivers/interconnect/trace.h b/drivers/interconnect/trace.h >> new file mode 100644 >> index 000000000000..d2421bf7b389 >> --- /dev/null >> +++ b/drivers/interconnect/trace.h >> @@ -0,0 +1,90 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ >> +/* >> + * Interconnect framework tracepoints >> + * Copyright (c) 2019, Linaro Ltd. >> + * Author: Georgi Djakov >> + */ >> + >> +#undef TRACE_SYSTEM >> +#define TRACE_SYSTEM interconnect >> + >> +#if !defined(_TRACE_INTERCONNECT_H) || defined(TRACE_HEADER_MULTI_READ) >> +#define _TRACE_INTERCONNECT_H >> + >> +#include >> +#include >> + >> +#include "internal.h" > > And you include it here too, perhaps it is best not to have it here, > and then just have it before trace.h is called? Sure! Thanks a lot for reviewing! BR, Georgi > > The rest looks good. Besides the comments above: > > Reviewed-by: Steven Rostedt (VMware) > > -- Steve