Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3042160rwl; Mon, 27 Mar 2023 08:29:54 -0700 (PDT) X-Google-Smtp-Source: AKy350a1U6AmMPiTtrQs5rWfnV4Eg3FaqKDHVGqz5QghUz+q3J1JXKuRdZR6ffvVQC6W/fBWOrZ8 X-Received: by 2002:a17:907:9728:b0:93e:5baa:d443 with SMTP id jg40-20020a170907972800b0093e5baad443mr15371718ejc.63.1679930993858; Mon, 27 Mar 2023 08:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679930993; cv=none; d=google.com; s=arc-20160816; b=apiWMRpvRazDrT0SmspABIJbN3Loj6G7iRZZzG5QGSvYIWXdZpeIgDLSfJGipYaymb wCZHTVOlXBFgarmSR2vDpuM2X3HpBFxT3iUOBOXPkMpUJKybd+kt4PyDg0y9sdL47ZsX 8NPsaWfP+xSdqKpaPrC9xwQYUY/n7DvW9wQTttKXWI7qqvaP6Dp/zp+JI4uQgaHXKawX 9obsPJyLAfTAQ/4uX0D0HKvkd3+0TRe9OFwrUGx4aS2SJTBQDdm21ki2gb4H8AXsKoAY EPaJ63+b6nSZppm8FAo/18IUTGv8/RXTGIZeb45tZrfwSGl8yWLfKa1jujnJfrF1Vnxd oAVg== 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=MmVgZjdNjKboa1qc5cabLPZy1Sj5EEPgy8EN9PLCgRM=; b=chuoSVsBDmVFymGyung5fPpO2oChfmKFRcWtilSacL+tlqbjPnQ0cA4ctHXv74zmgH NgjDu9/yevI1cgySxdqh3J7p9Nei3HBHe+xOVyVpK8XuAgIgoSQmtPuif48JJ2Ko1bIj fckt/fH7o1rQyZAVHHH5kuJoefnj3ndv5xa6cGDgpus+kQ+PVlkWCQeJ/nOeVd+onB27 gi2y6yOl33h/ZgNMauXXe9jNOFQYiYbEe7o27eYK8jXZ++HnVgcfTEjgwy3pt/15B3SU eM+PqwvfHPYo/QNSkkL0ubrU5Nw0ybreVL4v6GJuclGcYfrudVBB9AGzyWVeGfn5xwPm xZXA== 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 nc19-20020a1709071c1300b009333c443737si27707520ejc.105.2023.03.27.08.29.27; Mon, 27 Mar 2023 08:29:53 -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 S230386AbjC0P13 (ORCPT + 99 others); Mon, 27 Mar 2023 11:27:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230187AbjC0P1Z (ORCPT ); Mon, 27 Mar 2023 11:27:25 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E279230C0 for ; Mon, 27 Mar 2023 08:27:23 -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 sin.source.kernel.org (Postfix) with ESMTPS id 0D4E8CE17B9 for ; Mon, 27 Mar 2023 15:27:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A656EC433D2; Mon, 27 Mar 2023 15:27:19 +0000 (UTC) Date: Mon, 27 Mar 2023 11:27:15 -0400 From: Steven Rostedt To: Daniel Bristot de Oliveira Cc: Masami Hiramatsu , Tom Zanussi , LKML Subject: Re: Enable histograms for events/ftrace/timerlat and osnoise Message-ID: <20230327112715.023a94fd@gandalf.local.home> In-Reply-To: <9a1bb631-587c-9771-99b7-55623c67bb83@redhat.com> References: <9a1bb631-587c-9771-99b7-55623c67bb83@redhat.com> 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: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 Mon, 27 Mar 2023 14:37:11 +0200 Daniel Bristot de Oliveira wrote: > On 3/24/23 17:13, Daniel Bristot de Oliveira wrote: > > Hi Steven > > > > I would like to collect histograms from timerlat and osnoise tracers event, > > but I cannot collect them because they are not tracepoints but... tracer > > events. So... > > > > # ls /sys/kernel/tracing/events/ftrace/timerlat/ > > format hist > > > > no hist, filter, trigger files... > > Ooop, the hist file exists, what is missing is the trigger file, which is > used to enable the histogram... > > it seems that the "limitation" is around TRACE_EVENT_FL_IGNORE_ENABLE flag, and > the fact that ftrace events cannot be enabled/disabled... > > but wait, as the hist file exist, is there any other way to enable > the histogram? (or should we disable hist files for !TRACE_EVENT_FL_IGNORE_ENABLE)? No, I think we just missed not creating the "hist" file, which should not actually exist. > > am I missing something? > > > How hard would it be to enable histograms to the ftrace/osnoise and > > ftrace/timerlat events? I'll try to get some time to look at this. No guarantees :-p -- Steve > > > > This will allow me to reduce the overhead of rtla timerlat and rtla osnoise > > tools... > > > > Thanks in advance, Stephen! > > -- Denny