Message ID | cover.1675181734.git.bristot@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1648wrn; Tue, 31 Jan 2023 08:31:50 -0800 (PST) X-Google-Smtp-Source: AK7set95LXSrXDq9iwaF5minr19WbU0P+bZL6+PyR6pssDuO9EAFhYEa33uZUPyHjCo7OtKplK24 X-Received: by 2002:a17:90b:33ce:b0:22b:ec81:c36c with SMTP id lk14-20020a17090b33ce00b0022bec81c36cmr29858987pjb.45.1675182710649; Tue, 31 Jan 2023 08:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675182710; cv=none; d=google.com; s=arc-20160816; b=UjC1GGXQbrAx3qGAr0yiycrVl74UnlczxeFVEYcq8s4t8ooqmCsbF+iPAuV/C9/PNt p6zDtEJRV3UGn35gFsHuuejMNyuodZKphG6uYfJeFB5TV+hnfTKeZTazLfx6u5KMWWKd iYJMQZLwOCEH/wKbQTXAZUAgxPNYPsEIgcHpnOyNK13iDKn6gGNuapcaF5fMhsO4bUBW orNbWpjclIGbo47jHSXY8mgzDVL+e/XPLkDIgJRPxvhJsTrgYrZGB73Bs+IWToqJMoPD vjoJ4xIUAm24RamzLMf/3bDmNt+bpVs1hI9LcljoaxdnuscmVHKHTZ1ajlQxNJtYxPKX xBrA== 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:dkim-signature; bh=eqFjGSYPwlgQYb5X/pdIJKu6z8MbML8TBsV9tENIfWs=; b=UOEuKi7oZ5qGqJHcToYLGjYldOkkh0CJ9H7RZMbLyGzfSxjMhj5YtOzoOtCY7pRlIy /Gsm5RW62Jc2mrbpg74ZprzHikRfl2mr1ustFyqlpFEQeyBwrdNHiYWsqA3bvTWC51as I9i6ZyJgYOiN6p9MwA+LwuZbHLTKnOBD97+X5ae1vTlHwJ32axmneLjvLmd57qnKYwR/ swIL0KG5GaLjQf+2NT9mcxC0IT/hg2Rq/YMcSzHHmUFVAmNWh0pmXe1zJYNSI2bsjblu 8AhYGb976QogCI5latSL3cHlkbpGdpfUjNpUkL/WCyxuVpb/htO+9Ie4y8Ynf6/0zWeb LNmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gTwSpmdR; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ha3-20020a17090af3c300b0022bb71938casi19472700pjb.50.2023.01.31.08.31.36; Tue, 31 Jan 2023 08:31:50 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=gTwSpmdR; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231750AbjAaQbE (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Tue, 31 Jan 2023 11:31:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbjAaQan (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 31 Jan 2023 11:30:43 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DAAD58673; Tue, 31 Jan 2023 08:30:16 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 206ABB81D12; Tue, 31 Jan 2023 16:30:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C83BFC433D2; Tue, 31 Jan 2023 16:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675182613; bh=ThZBrAUV3an4YVAjVpxztvzY3NwtSkoPSNZhD30MYDA=; h=From:To:Cc:Subject:Date:From; b=gTwSpmdRsEkx7sMRMhAfoepkIlnVbxHABQGOp7X548IUkXlJOQvu5Y/CYjSbtj5Sj e8uulV3TlZkGbJKRGdZPCWLS9+TRpKB1Hnx8zjsgBQCcXHunp9N0N6Zv/kWok9GJoZ CuHRzRVmVIawB5RIYz8EKzZEq+PZ0kg5GybxgT6eXiOgAhh3ewO+fuBqlLfhrxBh8B t4yTPIW/ih7OY1g/73yLKKAX+6Jngv/v7IVSyyELTxYlEfzzTco0k//+NNGRMzGjPF Pd8CMqDAusK24fft3yTxn6KM+lP4hxno/qH1xwWNhxBs+AsRio0DRAmqHwbzP5yYzE duEUsxUB+FZNg== From: Daniel Bristot de Oliveira <bristot@kernel.org> To: Daniel Bristot de Oliveira <bristot@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Jonathan Corbet <corbet@lwn.net> Cc: Juri Lelli <juri.lelli@redhat.com>, Clark Williams <williams@redhat.com>, Bagas Sanjaya <bagasdotme@gmail.com>, linux-trace-devel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 0/6] rtla: Add hwnoise tool Date: Tue, 31 Jan 2023 17:30:01 +0100 Message-Id: <cover.1675181734.git.bristot@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756556385623029475?= X-GMAIL-MSGID: =?utf-8?q?1756556385623029475?= |
Series |
rtla: Add hwnoise tool
|
|
Message
Daniel Bristot de Oliveira
Jan. 31, 2023, 4:30 p.m. UTC
This series present a new tool inside rtla. It is named hwnoise. hwnoise dispatches the osnoise tracer and displays a summary of the noise. The difference is that it runs the tracer with the OSNOISE_IRQ_DISABLE option set, thus only allowing only hardware-related noise, resulting in a simplified output. hwnoise has the same features of osnoise. An example of the tool's output: # rtla hwnoise -c 1-5 -T 1 -d 10m -q Hardware-related Noise duration: 0 00:10:00 | time is in us CPU Period Runtime Noise % CPU Aval Max Noise Max Single HW NMI 1 #599 599000000 138 99.99997 3 3 4 74 2 #599 599000000 85 99.99998 3 3 4 75 3 #599 599000000 86 99.99998 4 3 6 75 4 #599 599000000 81 99.99998 4 4 2 75 5 #599 599000000 85 99.99998 2 2 2 75 Changes from v1: Add rtla-hwnoise to the rtla documentation index (kernel test robot/Bagas Sanjaya) Daniel Bristot de Oliveira (6): rtla/osnoise: Add helper functions to manipulate osnoise/options rtla/osnoise: Add OSNOISE_IRQ_DISABLE option rtla/osnoise: Add the mode abstraction rtla/osnoise_top: Pass the params to the usage function rtla: Add hwnoise tool Documentation/rtla: Add hwnoise man page Documentation/tools/rtla/index.rst | 1 + Documentation/tools/rtla/rtla-hwnoise.rst | 107 +++++++++++++++++++ tools/tracing/rtla/Makefile | 2 + tools/tracing/rtla/src/osnoise.c | 120 ++++++++++++++++++++++ tools/tracing/rtla/src/osnoise.h | 7 ++ tools/tracing/rtla/src/osnoise_top.c | 84 ++++++++++++--- tools/tracing/rtla/src/rtla.c | 4 + 7 files changed, 309 insertions(+), 16 deletions(-) create mode 100644 Documentation/tools/rtla/rtla-hwnoise.rst