Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp280956pxm; Wed, 2 Mar 2022 15:19:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwa14cp4tLUC9MPUQn5nSET60WIMTUH3lki3X2AuI30PR4dObbTLd4tcU5t5fT5swjJJtos X-Received: by 2002:a05:6a00:140a:b0:4e0:54d5:d01 with SMTP id l10-20020a056a00140a00b004e054d50d01mr35175297pfu.20.1646263153687; Wed, 02 Mar 2022 15:19:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646263153; cv=none; d=google.com; s=arc-20160816; b=kSyrN/C9S7ftbqfrmqmvmXQsuqW0HYYH6Wk8Wa8ks/6ehjwLnzGW9kOhbDsQDBKnJK eJZB1LWos5JtLeylmA5AfHe3yYv5R7OYzJ2JyB7MSHbA9+InF3CiUs33tyOTqMf8S0g1 emjrFzO1RPkAmKTFqdFUS7jxNCLFMyib5YZhoS+ppQVAurgw/bVXkrcyq3Htd44dQiIE uF6WtowgkvUB5KoIbaQ15eJ/RtF7fAdWi8R3/WcCx+tPTGfK+f9gYEY+NqDtPpgxAgTo MyI+FV+2takDFXrQJuz5JCzBD3K94FJ1MA+uQSK+rXKX06Igb4AJLjMi4rS9knOZWUq9 GnYg== 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 :message-id:date:subject:cc:to:from; bh=2XTSX7jf/QuBLthqlv8QDNwwa+bPwCAHH8euXhVkAv0=; b=qtnKA92VuIxALw9XIhCi4uxLmiojeQvqnXOYSaB5yvdGYl06i8KPjSQZOchkIh48Rm fvFm3Hc2La3dsyrO1RLlM8AX+iF63Haw3bw26R6LOwY5b+pCsEqHmwCBbSPn2dI+D0bc 9NR68xwKt/6y+qY+cUU1Lu4kUAcjaVqL159LoyGvvDbmEde8wyL1bIHX2QK7xWL3xY7z w1P98pS1FKf3gQ30EoOgRJWt4zifPmhFTHrpeiXD59G0HSe7mbmnEYIoPEemKLkLCI5a 6G9sG3MPCo0yhNKQgDeDHyU3fPJf3BvtygAk1crvvo4G0EFMV2sdowDmayqUJQjDBOPH dDFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j12-20020a170903024c00b001514c2da722si463235plh.349.2022.03.02.15.19.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:19:13 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0F80213C25F; Wed, 2 Mar 2022 14:55:57 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244727AbiCBTDA convert rfc822-to-8bit (ORCPT + 99 others); Wed, 2 Mar 2022 14:03:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244786AbiCBTC4 (ORCPT ); Wed, 2 Mar 2022 14:02:56 -0500 Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [205.139.111.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A5E1847056 for ; Wed, 2 Mar 2022 11:02:12 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-252-PLIH9pRyO2SBN5CvXSprTQ-1; Wed, 02 Mar 2022 14:02:07 -0500 X-MC-Unique: PLIH9pRyO2SBN5CvXSprTQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A3ED11091DA1; Wed, 2 Mar 2022 19:02:06 +0000 (UTC) Received: from x1.com (unknown [10.22.32.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3144F19C59; Wed, 2 Mar 2022 19:01:43 +0000 (UTC) From: Daniel Bristot de Oliveira To: Steven Rostedt Cc: Daniel Bristot de Oliveira , Jonathan Corbet , Clark Williams , Juri Lelli , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org Subject: [PATCH V3 00/15] rtla: Improved tracing support Date: Wed, 2 Mar 2022 20:01:25 +0100 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=bristot@kernel.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kernel.org Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset=WINDOWS-1252 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 This set introduces some tracing facilities to rtla tools: - Add the possibility to change the tracing_thresh to osnoise, allowing a fine tune of OS noise detection. - Add the auto-tracing feature (-a threshold us), which aims helping the first approach to a problem by setting common tracing features with a single parameter. - Add -e/--event option, allowing osnoise and timerlat to enable additional trace events via (possible multiple) -e sys:event options. - Add the --filter option to filter the previous -e event. - Add the --trigger option to allow the usage of tracing trigger of the previously set -e event. If the trigger is hist: one, rtla automatically saves the hist file associated with the -e event. And some more improvements: - Add --dma-latency option to tune exit from idle latencies - Some minor fixes Changes from V2: - Rebased to for-next - Add --dma-latency - Some more fixes Changes from V1: - Add -e to osnoise/timerlat hist - Add --trigger - Add --filter - Add support to save hist file - Function name refactoring Daniel Bristot de Oliveira (15): rtla/osnoise: Add support to adjust the tracing_thresh rtla/osnoise: Add an option to set the threshold rtla/osnoise: Add the automatic trace option rtla/timerlat: Add the automatic trace option rtla/trace: Add trace events helpers rtla: Add -e/--event support rtla/trace: Add trace event trigger helpers rtla: Add --trigger support rtla/trace: Add trace event filter helpers rtla: Add --filter support rtla/trace: Save event histogram output to a file rtla: Check for trace off also in the trace instance rtla/osnoise: Fix osnoise hist stop tracing message rtla/timerlat: Add --dma-latency option rtla: Tools main loop cleanup Documentation/tools/rtla/common_options.rst | 19 + .../tools/rtla/common_osnoise_options.rst | 10 + .../tools/rtla/common_timerlat_options.rst | 12 + tools/tracing/rtla/src/osnoise.c | 83 +++++ tools/tracing/rtla/src/osnoise.h | 8 + tools/tracing/rtla/src/osnoise_hist.c | 95 ++++- tools/tracing/rtla/src/osnoise_top.c | 91 ++++- tools/tracing/rtla/src/timerlat_hist.c | 108 +++++- tools/tracing/rtla/src/timerlat_top.c | 103 +++++- tools/tracing/rtla/src/trace.c | 345 ++++++++++++++++++ tools/tracing/rtla/src/trace.h | 23 ++ tools/tracing/rtla/src/utils.c | 33 ++ tools/tracing/rtla/src/utils.h | 1 + 13 files changed, 903 insertions(+), 28 deletions(-) -- 2.34.1