Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4441680pxb; Mon, 21 Feb 2022 21:44:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9j/e1zVAM3Zti1zkYf8lKcylC8/hOWpwqcqlDGc13qwigKZlKxe/+Gcve2NJnGWCrQdfM X-Received: by 2002:a17:90a:6688:b0:1bc:5492:6373 with SMTP id m8-20020a17090a668800b001bc54926373mr2425939pjj.161.1645508659462; Mon, 21 Feb 2022 21:44:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645508659; cv=none; d=google.com; s=arc-20160816; b=WC094PuZXmhL0NGlT9OPNI4DKalkDegVM+P2zwCi81nFhcfkBoIVBV+T7yHqLHb4e2 vA0ihU4cVVKCZQPLDRz3mCvQQYpJPV7TVXJaWBHLr3UyAxeoD7Z03o9tyd9+/VPebD0F NxUmGxnxCBcuctyPwnzS1L2Ab8S71CoZWMkzekqQDW3TVztM5MfSaMv0JnIFdojtWMVc 5caULqSUKDs3SjOhmcGCbcs1grIDW8kuAFLJQ6FHpneenrXvZab2dPWbL1Rpv/CmJc9Q W5ICWgUwye8APYL6J/dA7h80cmG+BGmyHHp3ATd4O/faF3wxqnN9rqUNvo8sennNpwT0 RBNw== 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=lne6CVXKMYMKYfNF4o+bXp0jCgp576a5NYcxTgirLrA=; b=E5WYBuYSaoUjXu0PXsTnTETk2RAt97rJV2YUm+stb5cd6w+kpBkXHpt1RpUZ5TL5rl 22RQqpGWY7gdMOeBdO77CwwpRLeffOgp8cyojTvu8eUrP4WCnbR2jHVXzUud2CgMfdIf SowTNbKjbv6SPfifvBWdoYe2Gb+8taRYGEn2Cc2IqzAu1rhtmAS1OV0bgjWseBPDzVxe +gADUH9xGRJCLwDzhUZolel1t2UL9SAJQcD6BA86Nd37SIcX/hCSFpuJ1y8Br2RUsMTb 5J9qQl0U/4UHoViSAL2YtzJSqnJPH6y3ITnylgr+zYM4PiOphxcV/Y//0vfuv1NGbhHp RJHA== 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 f2si10621963pfj.203.2022.02.21.21.44.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:44:19 -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 8FE18C8FBE; Mon, 21 Feb 2022 21:09:51 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235318AbiBUWRm convert rfc822-to-8bit (ORCPT + 99 others); Mon, 21 Feb 2022 17:17:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbiBUWRj (ORCPT ); Mon, 21 Feb 2022 17:17:39 -0500 Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [207.211.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BD0C922BEE for ; Mon, 21 Feb 2022 14:17:13 -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-375-cZWv-X8dPMKKcsDI4bGfIw-1; Mon, 21 Feb 2022 17:17:09 -0500 X-MC-Unique: cZWv-X8dPMKKcsDI4bGfIw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 561D01091DA1; Mon, 21 Feb 2022 22:17:08 +0000 (UTC) Received: from x1.com (unknown [10.22.16.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id 75C7A5DB96; Mon, 21 Feb 2022 22:17:03 +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 V2 00/11] rtla: Improved tracing support Date: Mon, 21 Feb 2022 23:16:45 +0100 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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. Depends on "rtla: Some RTLA fixes for 5.17": https://lore.kernel.org/lkml/cover.1645206561.git.bristot@kernel.org/ 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 (11): 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 Documentation/tools/rtla/common_options.rst | 19 + .../tools/rtla/common_osnoise_options.rst | 10 + .../tools/rtla/common_timerlat_options.rst | 7 + tools/tracing/rtla/src/osnoise.c | 83 +++++ tools/tracing/rtla/src/osnoise.h | 8 + tools/tracing/rtla/src/osnoise_hist.c | 87 ++++- tools/tracing/rtla/src/osnoise_top.c | 83 ++++- tools/tracing/rtla/src/timerlat_hist.c | 78 ++++- tools/tracing/rtla/src/timerlat_top.c | 73 +++- tools/tracing/rtla/src/trace.c | 326 ++++++++++++++++++ tools/tracing/rtla/src/trace.h | 22 ++ 11 files changed, 782 insertions(+), 14 deletions(-) -- 2.34.1