Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2818374rwl; Mon, 27 Mar 2023 05:52:11 -0700 (PDT) X-Google-Smtp-Source: AKy350Zxm4aL+3FxAUkr/K0gSb2OShQzncKtHGo9/xu7KcYyYcMY3AMZQiZledjqyZS85Uh89qGt X-Received: by 2002:a17:907:161f:b0:932:7f5c:4bb2 with SMTP id hb31-20020a170907161f00b009327f5c4bb2mr14153972ejc.75.1679921531165; Mon, 27 Mar 2023 05:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679921531; cv=none; d=google.com; s=arc-20160816; b=bvNe/GPeGC9S6XVRaohDAc7bBkB2INKOhvwknonAfIZPVmVPJ6DxyC/cZCvBYa8xia 3Wg8LvIquD5QbMln77eJyci3LYtsPVJ55v5z8sO89BjbOc49p3dUH59ZsLmU+B1Amhfj mQe5VJEB7p9GEgQIhnz8zfe7yjGA+PU0BFflDIqNedw6xMyqE33ihche9cVqyDBg5g+t ilDtrt1y2pIYbsM5uvlDek1mTstLRLYKklfKgZ4TYXHPcZDScgucTx8ANLOetjOyo1wk JD1wNMyq81/t3FZg3Oq/W5+TS07+u5hE4fBuvxh2TlWjz/126D81/lxlyfulBDRZeIYn wCfA== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=iwkLY4b4p76UXCTQe7OXiyXDn5gp03Jdta7HbcGMDWc=; b=itza5yxqwomkKzdEUiS5PJOXd/3whEhDJ5KZBc1TqQI7CKkwQaOZZXpeBI1Umtb84v aBEjUIt58gOD2B/W48wWmx0hfhqLmAAdyml2UWAfqyOIWOtAUXL25EL5hJTt5bqCGizm l5OxHuLS641K3c++AsaTp59MXoAFsigO8TjBEakkmdXOBAsWqubgIH2n+vZaQfDCfvjQ +k8mEf0RE+ot9CDsasXaVDafv/C49Mov3AN0Vwb3eirFEqU4EHf0JvcXJaBqFEECIB5d ogaOVcje6d+O75sU4AQ1kzrIGhmPGh3yK8WSPR58HkwS4VDooP1ZDoKiRCQM7pw+Zvs6 QN5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KR2kTn0h; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jj18-20020a170907985200b00930cbf016a0si27512307ejc.967.2023.03.27.05.51.46; Mon, 27 Mar 2023 05:52:11 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KR2kTn0h; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229746AbjC0MiF (ORCPT + 99 others); Mon, 27 Mar 2023 08:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbjC0MiE (ORCPT ); Mon, 27 Mar 2023 08:38:04 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84841E8 for ; Mon, 27 Mar 2023 05:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679920636; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iwkLY4b4p76UXCTQe7OXiyXDn5gp03Jdta7HbcGMDWc=; b=KR2kTn0hqOabj4rsQobxXL5duP+fvpt9ETp9BLhkSZl+xIeqmCfYk1/sw54WJ9to1zaoEJ 4yke4ocoCrc5DJGGwBprvnvDsEg7vxnf8FB+0K3/XthdBbB1wGfS6ZA3ZpUkKi+HhzDoMj MTqy/5kRTwglgLdvX6UZpe1nI4GJ9Kk= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-353-MzcyhqhBP8uNE2c6mfeD2w-1; Mon, 27 Mar 2023 08:37:15 -0400 X-MC-Unique: MzcyhqhBP8uNE2c6mfeD2w-1 Received: by mail-ed1-f72.google.com with SMTP id c1-20020a0564021f8100b004acbe232c03so12249519edc.9 for ; Mon, 27 Mar 2023 05:37:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679920634; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iwkLY4b4p76UXCTQe7OXiyXDn5gp03Jdta7HbcGMDWc=; b=NpYOQ5FDgXIkot4ua2yZcWhbevzGAPpVZ2pDgqv1eQe+YwCpTxlOU4OVrq7MSfvAts o4kfpQosDEkETrnQG4coxPpC2OZIBhx70MhtJ4R4b7iCBga5/Mk1ypP3KvE+VrNfa1wy BbL37iJ+C+2KoRFgmv8JYNfgkVmaTuLXRlG5wi3HZx71Avw7W31bXFx2dvUBOH2uyyyk JOJ4m48URRhQjweb184wpQnvDqj3Ob10YveRyxtP2QO6AET0AadtXd0I7Gbka+U1SuP+ GjUO0Vzd+LbxtUVs07zJH+QSlV+bT5tV/VkHKzAFjCI6IlqC3CfXu2f8sHGps0mm1dyf iwWw== X-Gm-Message-State: AAQBX9egxoijqdBCM1KHi7RRSo45YEfXVMgJLcUsfGOcp/WSXd/dvxg2 frUTLitA3l+U90sWXzNpqIzuA8earjRPXFlWeZTvdkpNEqUGevZj7CHcsBPsVxcRG1XokKM4yoL X7JfGjdcV3/DNXUai/ltOsmiX X-Received: by 2002:a50:fb91:0:b0:502:2148:2980 with SMTP id e17-20020a50fb91000000b0050221482980mr9128501edq.30.1679920634194; Mon, 27 Mar 2023 05:37:14 -0700 (PDT) X-Received: by 2002:a50:fb91:0:b0:502:2148:2980 with SMTP id e17-20020a50fb91000000b0050221482980mr9128486edq.30.1679920633882; Mon, 27 Mar 2023 05:37:13 -0700 (PDT) Received: from [192.168.0.198] (host-87-3-200-174.retail.telecomitalia.it. [87.3.200.174]) by smtp.gmail.com with ESMTPSA id h23-20020a50cdd7000000b004fe924d16cfsm14761513edj.31.2023.03.27.05.37.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Mar 2023 05:37:12 -0700 (PDT) Message-ID: <9a1bb631-587c-9771-99b7-55623c67bb83@redhat.com> Date: Mon, 27 Mar 2023 14:37:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: Enable histograms for events/ftrace/timerlat and osnoise Content-Language: en-US From: Daniel Bristot de Oliveira To: Steven Rostedt Cc: Masami Hiramatsu , Tom Zanussi , LKML References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 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)? am I missing something? > How hard would it be to enable histograms to the ftrace/osnoise and > ftrace/timerlat events? > > This will allow me to reduce the overhead of rtla timerlat and rtla osnoise > tools... > > Thanks in advance, Stephen! > -- Denny