Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6078649rwi; Tue, 18 Oct 2022 07:53:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7NGEpAcyOO3E747QeqDB43WnAplcjnlDtTTsH39CY86OrCqub6yylaVjorEPPwb4SsnHYe X-Received: by 2002:a17:907:6e11:b0:78e:3057:f631 with SMTP id sd17-20020a1709076e1100b0078e3057f631mr2732706ejc.333.1666104823434; Tue, 18 Oct 2022 07:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666104823; cv=none; d=google.com; s=arc-20160816; b=uypQSQrFOSu9o3JDnh24B6sH4OwOzsHdyIwUc+mhWz3ffR6ivss8hKlVti7ZqU1nxY brzM+bTmDWpEgvrx9n5B1vNiKKcFhigbqrthH8i6TSgt2o0+9+9qSUyopIm2eumbtDEU BHUE4+NHFpOu3Qv/3tUBfl6XtzlChJH8dK2NZA1g+DZ48ISRmDDUVHZzmcJHs9TOCkxq J2lt/DPq2tfRIkfhlJ0drbXZu+ucQJVAlFvPj8Jkpj/9gdKOWrL78aUUL3B5cDa6vvve ISTa1pB1NCb1u3j0BToiBQ2gxj+BDsV07hVTAO0yozgdJaWRtbueeJtuLn15htDO3RnO F2zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=bX9b6cF1kbycTFnH8F8GN/++z1I46IXuw5GuyAyMjYw=; b=LdvL5lk7VhsrDMcSTcmxm1H0Ti8MD/IOEiqIQQjlNyhZZdGygJeWjOxksVNX1eMp62 QqN3HYmznXQscPmG5tciRkzoicNreMo92dEmgL4w6DmdscCNf5JvlRpBZnNPilb/f7Jh 0UZDwbH+pGNLYZFhwx4yznjximHY7i5G88TGqs/xPUiHsNTZs54H9dPJ3hfBJpJcMP1K QCavFsUv/gHlCaMYSB42OckMDJEkhgMqR3ZzIVPW9JL3zJRYjoWnNjMZS9Sw//tOWbZ6 uelMy2aAkWvORkd4DzNzyjFuVvAm3vCGOM90gTqmJG5BdPlbChFPRYE5t+oD44AUGoIK xFAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js7-20020a17090797c700b00790058488d3si9009615ejc.89.2022.10.18.07.53.16; Tue, 18 Oct 2022 07:53:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231150AbiJROYP convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Oct 2022 10:24:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231297AbiJROYM (ORCPT ); Tue, 18 Oct 2022 10:24:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2BEF1E715; Tue, 18 Oct 2022 07:24:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 693A1B81BE1; Tue, 18 Oct 2022 14:24:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C117C433C1; Tue, 18 Oct 2022 14:24:08 +0000 (UTC) Date: Tue, 18 Oct 2022 10:24:09 -0400 From: Steven Rostedt To: Maxime Ripard Cc: Stephen Boyd , Michael Turquette , Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH 2/2] clk: Add trace events for rate requests Message-ID: <20221018102409.594be3e4@gandalf.local.home> In-Reply-To: <20221018-clk-rate-request-tracing-v1-2-6f3aa0b0b9de@cerno.tech> References: <20221018-clk-rate-request-tracing-v1-0-6f3aa0b0b9de@cerno.tech> <20221018-clk-rate-request-tracing-v1-2-6f3aa0b0b9de@cerno.tech> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Oct 2022 15:56:42 +0200 Maxime Ripard wrote: > It is currently fairly difficult to follow what clk_rate_request are > issued, and how they have been modified once done. > > Indeed, there's multiple paths that can be taken, some functions are > recursive and will just forward the request to its parent, etc. > > Adding a lot of debug prints is just not very convenient, so let's add > trace events for the clock requests, one before they are submitted and > one after they are returned. > > That way we can simply toggle the tracing on without modifying the > kernel code and without affecting performances or the kernel logs too > much. > > Signed-off-by: Maxime Ripard From a tracing point of view: Reviewed-by: Steven Rostedt (Google) -- Steve > --- > drivers/clk/clk.c | 31 +++++++++++++++++++++++++++++++ > include/trace/events/clk.h | 43 +++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 74 insertions(+)