Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4842836rwl; Mon, 3 Apr 2023 10:19:17 -0700 (PDT) X-Google-Smtp-Source: AKy350ZzDoHuJ2zKWKT4utnpJLNP3Wyqveqw6GFPsk5lHzP4tujlJ2wW+SifNUDhmtDAV1GHaYM8 X-Received: by 2002:a05:6a20:841c:b0:d9:2a96:eabf with SMTP id c28-20020a056a20841c00b000d92a96eabfmr19173077pzd.4.1680542357256; Mon, 03 Apr 2023 10:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680542357; cv=none; d=google.com; s=arc-20160816; b=GJfQvEVrOwo4wAZfs0mNZJP6VOtIJg0aLTLB2cxG+WvH4f42bXwubb3TUCzvndf5og 9fuoVIZbJOF9GI+bkZu6Fl96r1eVh++xD06wFxyhoDjp/Mvwj6y36zJ3pGgJXbrwBDsS EM0sLWSbG8JfN3zYKr2Y1D1Ch/ogLDonHGsQy9oSoOZeQf8k3yc5i4/uq8e6B/u4l6mJ 5rtFMjROOu8fMDzk+24AeYjnqz3OPgsgW2tX0pJrws39FplSu8T+vUQzowi104usvRJW jmLRYMHaq65qLeYNbCyKdCPp6DKiSaOtgtJd2FL3lL8eW+/aqa0K0Ut8MzTQ3rZm3Lo+ WG5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=hdRfiIbNYyiVqNznfUpLiPSLYEXZCPRlIKfE1/SCZKQ=; b=k4ZFfYT5BZa8KWsk76f9FBmhNJnxnJ78VboWWs+UFVh6amk87qLHMn20R9HXA82P9L y7JnpXprkb4a8OfSFz0h6dOSQPFI8P/GKGnD8C0+L5q3jwqPWseZR0UwcdQ1W4OId1Cg 9kMuf3vBANLRSGxw7cfVH4MhKguGtQe+FGfnV22CgFQs57JmXdC77mnn3HpsCiHilWH1 UYAnZpNjPm7/A+PgeKkAs4iwpEKxBuYVd8fbC0VG47aHzwWu2bcerAO7t+l/0tJjpYcC OAiVbKRTgEXnYUqJNvqPF84or75Fi5xjuF4H6BxdSEojLr0pk6sLdos5oN3GLb2Dv+LC Flhg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a63e80b000000b0050bf6324acesi8836081pgh.142.2023.04.03.10.19.05; Mon, 03 Apr 2023 10:19:17 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232973AbjDCRCZ (ORCPT + 99 others); Mon, 3 Apr 2023 13:02:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232752AbjDCRCY (ORCPT ); Mon, 3 Apr 2023 13:02:24 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C1E52270E; Mon, 3 Apr 2023 10:02:22 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 05706FEC; Mon, 3 Apr 2023 10:03:07 -0700 (PDT) Received: from [10.57.20.195] (unknown [10.57.20.195]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1165B3F6C4; Mon, 3 Apr 2023 10:02:18 -0700 (PDT) Message-ID: Date: Mon, 3 Apr 2023 18:02:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 3/3] schedutil: trace: Add tracing to capture filter out requests Content-Language: en-US To: Qais Yousef Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, rostedt@goodmis.org, mhiramat@kernel.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, delyank@fb.com, qyousef@google.com References: <20230322151843.14390-1-lukasz.luba@arm.com> <20230322151843.14390-4-lukasz.luba@arm.com> <20230403134646.shc2m57yvvnf2o54@airbuntu> From: Lukasz Luba In-Reply-To: <20230403134646.shc2m57yvvnf2o54@airbuntu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 4/3/23 14:46, Qais Yousef wrote: > On 03/22/23 15:18, Lukasz Luba wrote: >> Some of the frequency update requests coming form the task scheduler >> might be filter out. It can happen when the previous request was served >> not that long ago (in a period smaller than provided by the cpufreq driver >> as minimum for frequency update). In such case, we want to know if some of >> the frequency updates cannot make through. >> Export the new tracepoint as well. That would allow to handle it by a >> toolkit for trace analyzes. > > I think you can use register_kretprobe() for this one. When functions are not > inlined it should be easy to hook into them and you can get the return value of > the function too. Could be possible, but that's a different pattern to what we have in terms of LISa. It's also a bit complicated for downstream folks to understand when I would ask about the trace with a particular name. The integration would be a bit more complicated and our tooling and CI might be impacted but this different design approach. Therefore, I prefer to be aligned with the old-school. > > Check the usage in lib/test_kprobes.c. Creating the event in sched_tp should be > the same way when registering for a tracepoint. They both are essentially the > same. > > Patches to sched_tp module would be welcome ;-) I cannot promise, but I'll try to find some cycles for it :) Cheers, Lukasz > > > Cheers > > -- > Qais Yousef >