Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4674798rwd; Tue, 23 May 2023 10:46:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4et7cGZbHpy25rDip6pOhdnxj6o/FEWhxtw5uHXmXWzpJnk4jG7A9ohsEWxElrDzuno7Pb X-Received: by 2002:a05:6a00:1596:b0:643:980:65b with SMTP id u22-20020a056a00159600b006430980065bmr23818635pfk.2.1684864003445; Tue, 23 May 2023 10:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684864003; cv=none; d=google.com; s=arc-20160816; b=tJo2q6EPgzIbuq6kKYeUh+4lVITO6k67wk87nzJN/vD00FthtDqWYnNhCAPyJghvBA BF55wLx+RHUIPe00UjOJj/XW9KVqoDMgeNEp9t4BlARdmh7hTE0CkVti44vog3+rIa4h iHc5L7ZRu8RJL1AlOTGr3TnpsRDLzj0zeM+1fho8hcXZXdfrZ5SIMQBQLP6qC0uAuX1v tARRymYtK7C/q/cw8uSndps8haQ9lHZB5TK+YnW/eKsEXj9EgcS5fCWYbEb0V6vRDljA 4fUSTKXLeNMxhivQcy6+dqb7Lquy1QvGFkbU0ffKojQREkCT3usOLFJFzS4JvCsbx8pI 3tKw== 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=Exs5v73trnMnpdlIOH/BFPgV5YIWtyIdvbiYvjIJwpw=; b=FscTaP3GWEpezP5DUoewHpiH5LILsUfdNumUHJ+8uorFw/8glGGftKvGOrLW7VOhhM 8cr4VVHAWNeXshGvyQC32N+o7TEDG3kmRx0UpPkQ7PxCN6XtxYmwwSqLiK3C3uXti+PW jfv8kL2cOCdH4t0SEW0WCTo2tdUOZqRGMXwjdxD9AgxOjNP7Z4PYeyjckuaKbXDuriAo IyoxcToAf0crg93R+D/SjsD6Dz/737LIGo36RcfboqpGglazUEZm9cSEZy+vPXC9iI2K HQ9YVUq1gTM0eBio50Hn7AhlGhlnHlKOToNMQhOEUdPgWBrxG7fuX4TIv7k/cgH7CTrS dgPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o7ALmsTx; 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 v8-20020a63b648000000b00534769ac7acsi6697203pgt.879.2023.05.23.10.46.30; Tue, 23 May 2023 10:46:43 -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=o7ALmsTx; 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 S237965AbjEWRon (ORCPT + 99 others); Tue, 23 May 2023 13:44:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237723AbjEWRol (ORCPT ); Tue, 23 May 2023 13:44:41 -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 07BC8C2; Tue, 23 May 2023 10:44: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 7F57463564; Tue, 23 May 2023 17:44:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93CFAC433D2; Tue, 23 May 2023 17:44:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684863878; bh=oWpv0JJ4KVfHOHESY1z8zrd5HeQS1i0jsjMhHlSCsd4=; h=From:To:Cc:Subject:Date:From; b=o7ALmsTxImOubWs8UMvaMoPKWvnaroijVaeu5M/wpU1QfSimwxK3COphovNq6Bh6Z IJmTVyI1Ob96tNwvcM5FWFLmTI9WHST9C0pocBSRPhgC83CxofM2gF3k7KLhAkRM7e gp5vVTkiHV4TgE5u43++uzct4hjPzqFs6zieXZU1qMnL7ddKl/22eMTOn2/8Z9AW7A oaEL0EAudrcdUT06vaLqeIu3palPkZayV8oWIKrDFkLP8lEzIz94H0NnpMcmzpFIQg VufBbc5cAWEPzAImWbCSy7NcTLgHr+3DBUbjZoB9CLRfwMuVvT+ZAHh1G5mb8JG/V9 acdvM8AqYUGGQ== From: Daniel Bristot de Oliveira To: linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org, Steven Rostedt Cc: linux-doc@vger.kernel.org, Juri Lelli , William White , Daniel Bristot de Oliveira , Masami Hiramatsu , Jonathan Corbet Subject: [PATCH V2 0/9] rtla improvements Date: Tue, 23 May 2023 19:44:22 +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. 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. Finally, it adds support for running timerlat user-space threads, and to collect the additional field via rtla timerlat top. Changes from V1: - Add the user-space thread support to rtla timerlat top Link: https://lore.kernel.org/lkml/cover.1683827510.git.bristot@kernel.org/ Daniel Bristot de Oliveira (9): 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% rtla: Add timerlat user-space support for timerlat top 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 | 14 + tools/tracing/rtla/src/osnoise.c | 65 ++++ tools/tracing/rtla/src/osnoise.h | 5 + 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 | 229 +++++++++++-- tools/tracing/rtla/src/timerlat_u.c | 224 ++++++++++++ tools/tracing/rtla/src/timerlat_u.h | 18 + tools/tracing/rtla/src/utils.c | 324 +++++++++++++++++- tools/tracing/rtla/src/utils.h | 7 + 16 files changed, 1162 insertions(+), 98 deletions(-) create mode 100644 tools/tracing/rtla/src/timerlat_u.c create mode 100644 tools/tracing/rtla/src/timerlat_u.h -- 2.38.1