Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9202876rwr; Thu, 11 May 2023 11:20:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ78CpluZ6h2gd2TMh/rb0mroiMFJEjSGLdjJcalSYo6aMWB0xrLJognBtibTiZ/piH+xYWX X-Received: by 2002:a05:6a20:7283:b0:102:dd98:509b with SMTP id o3-20020a056a20728300b00102dd98509bmr8762327pzk.21.1683829256264; Thu, 11 May 2023 11:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683829256; cv=none; d=google.com; s=arc-20160816; b=on+JuQns5yisD9H0eikfNBLR7fmi/zB5KSEV4bDX7Xe8u+chkbGZ7XNSfOmNjG4LxM IEnanTNJxJAfs7w6l24SAzjUXewddj3i0c2WAMi2nCinE5m67UZtYIGKIvdZnCZaB0fn E2sAOYsfVbo/NFTYkJMnTMtPdaZmcWU9AG74lDaIi/Bk3+ypyUzFUnS4WHFKk461jf6q XDO5QkdNk7n+0GixRoo/cRlSkVgt0NEfmszjkHKD3+uY9yubXbjyYlcLjdIE284GaY2v XZLh1b3rSwzm8L/LBtd8Y7M9UCyvuNxf7nUfx028p051q68Id8I/ATVjlFBnrDgH8E9d tshw== 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=IJTk3P2yXYnZVISz17r3wZ1+ymL1Ph3Ev4JjONryQIk=; b=apS/Xrnto7+XD/uUnZU8+koN68yBT1nYDYOXJJE4QgNlZFLFbRnWEshCwMyLMXq7wO inpdY/ZfLYrBLQH8l7eyxV9oR0pxBNH7woArfe7gsw+tmP42h/Dw20l5cT6KxAN0Fk0D f2s47giQzU+gR5p0oI0cVsoYMGQ3YPD85KerxEmnND1e50xCQlU17rjW5SmaP51eetoK bcx8noPixGM8nkS2KstDt69fomsru1PUGtc8s7jWXstB7Cq8bp9HpeEAB5hqu+ORd3Z/ f4ixwoL+yXg3Bkx81um+zMHMo6jxvinhXa3k3BnuGtK5mrX0KIxbk1yvbsF8nQDg8Ud9 FJvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MoAOtLcf; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t62-20020a638141000000b00518a1800624si7667191pgd.307.2023.05.11.11.20.43; Thu, 11 May 2023 11:20:56 -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=@kernel.org header.s=k20201202 header.b=MoAOtLcf; 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 S238987AbjEKSFS (ORCPT + 99 others); Thu, 11 May 2023 14:05:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238516AbjEKSFO (ORCPT ); Thu, 11 May 2023 14:05:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ED39E1; Thu, 11 May 2023 11:04:40 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 957C2617EA; Thu, 11 May 2023 18:04:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39564C433D2; Thu, 11 May 2023 18:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683828276; bh=d+cecxraTXeWzYMKn5rFdRXZ1LbESCxt6tQQY2hpvhA=; h=From:To:Cc:Subject:Date:From; b=MoAOtLcfuiRZGJRadyzkqYQMdHYLduGkC1IZb3JvAPEvVLI3Jz3xTS4J6bUQiDcGe fcxGkMj9WlU34+0lTyzoc+kEUPorPsJHdPi1uGqrihFb8QdOnzru41uxi7bjHwPp15 1wic1uS1Xj+LHGOHXyzkt6KFEnYDSTD9GfBNuLeIcC9Ie8y8cNhHCGDwlHf+oo1Y+1 GAktMKqaF4RWAdlO44BfqVMC8PlxYbpsUAqTLFTctzvkvO4MXHH9JiH2ndBmfo29EU eIcxdYaYtG2jnn4PPey1ziJvoJDgLJggD2MdneXFIG6yVZ7qUvKSACm4+mw6F09V4F /9U/v+ATK2cRA== From: Daniel Bristot de Oliveira To: linux-trace-devel@vger.kernel.org, Steven Rostedt Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Juri Lelli , William White , Daniel Bristot de Oliveira Subject: [PATCH 0/8] rtla improvements Date: Thu, 11 May 2023 20:04:18 +0200 Message-Id: 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,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org This is a series of improvements for rtla, mainly as a result of our daily usage of the tool debugging problems at red hat. The cgroup support and house keeping options are from our usage of the tool debugging containers. The auto-analysis overhead reduction is needed when we go to large boxes - but it is really hand in practice, as it gives an idea of the problem without having to look at the trace. Finally, running hwnoise 100 % of CPU time might cause some systems to slow down too much. Reduce its utilization to 75% by default to avoid problems for people using it for the first time. Daniel Bristot de Oliveira (8): rtla: Add -C cgroup support rtla: Add --house-keeping option rtla: Change monitored_cpus from char * to cpu_set_t rtla: Automatically move rtla to a house-keeping cpu rtla/timerlat: Give timerlat auto analysis its own instance rtla/timerlat_hist: Add auto-analysis support rtla: Start the tracers after creating all instances rtla/hwnoise: Reduce runtime to 75% Documentation/tools/rtla/common_options.rst | 8 + .../tools/rtla/common_timerlat_aa.rst | 7 - .../tools/rtla/rtla-timerlat-hist.rst | 7 +- .../tools/rtla/rtla-timerlat-top.rst | 7 + tools/tracing/rtla/src/osnoise_hist.c | 90 +++++- tools/tracing/rtla/src/osnoise_top.c | 83 +++++- tools/tracing/rtla/src/timerlat_aa.c | 35 ++- tools/tracing/rtla/src/timerlat_aa.h | 5 +- tools/tracing/rtla/src/timerlat_hist.c | 139 +++++++-- tools/tracing/rtla/src/timerlat_top.c | 127 +++++++-- tools/tracing/rtla/src/utils.c | 266 ++++++++++++++++-- tools/tracing/rtla/src/utils.h | 5 + 12 files changed, 684 insertions(+), 95 deletions(-) -- 2.38.1