Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp462990lqd; Wed, 24 Apr 2024 07:37:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFJNFnpxTZpZzE2/cwC3UA78CRX6c1CwmQKs26DMZ31B4adjYP6ARk5rAYMoG8lb+5R1tIlLiDIq9nz8KEYlN7Ti4c3mu7HDPhjpwq5A== X-Google-Smtp-Source: AGHT+IE0BZRsZAHMbYc8S+YKe+gcpPVh/miPsVWetuRu7QHRgOFO12EE3m6ucpNrxY/cGxVmwRuT X-Received: by 2002:a17:906:489b:b0:a52:3583:b9d0 with SMTP id v27-20020a170906489b00b00a523583b9d0mr1686979ejq.3.1713969458320; Wed, 24 Apr 2024 07:37:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713969458; cv=pass; d=google.com; s=arc-20160816; b=yaBpx2GMJOqp1S3UYIbsPp+yrtCcoQASgIuxFZgQsb5FUEmihHFj+0+OjBMhGEnB42 pZQ5f898chhT9JYvb4wk3raZRXK/Vq2jt5l2pdycOvQlXBvTTLQMM9i6hpOIDYMAIAJ5 b3R2LyBQ5p148Ei5Fffyhd1wITLZYdS54v/qVocXHFmj4Z+NLhBIY1mdiMtVodPpzcAc 22HV0Ty9g3wmcxIIdigVCJeQvN9Aqaz14jkk51xcNNLVPt8lPwmw4nBkrUHqNJy3S3G7 8aaXLHNTovTqhDedooeVhDIj6KJKzlHy7+bpZ3kgguhRly49vErNlQ37vUKD6Y8hyvS3 t5rA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=4MkpNN6v0SGBNpBJWfQiogSLZl2GcWl7bRPp3D2ya2Q=; fh=dAFyoeb4mNleYvVLT04jG4V2YmdJAMhIAA3/3tuFxCc=; b=nns/3ZbqSX2qF4HmNPiRjis478FxqiFKKkqS6gM0I5ReiZitJJfhOWYx+STQ6J2gZT FOkTrasVEZUW2fa52Y7AdJjCg+aemHmo21fGz7hrLqsSveHidUMeLDSHXlL6APY9gB4w pNfCfVxe7Lsh8Gu+8Yq763SEBdwJWVDb0eXfud54i0HfhUGRVdlitgGKo+cSMGlr9rXe XcyQSUCtaM8elxrmBw7sU44HnTtRX8vd9gYANTD/3iHdX+u1jm16+fYPiVdZUPMghPJD au6MWt/Lwf9ejF2h5WZnwToKb9GgGjduzYJ0ny+n/W0BN2pOB2J4o4TxVAOHxdSVvR9Y Ls8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mwWXgIMp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157086-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157086-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f6-20020a170906560600b00a51df3e9f97si8501035ejq.183.2024.04.24.07.37.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 07:37:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157086-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mwWXgIMp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157086-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157086-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D4C221F25DBB for ; Wed, 24 Apr 2024 14:37:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EECC615E81E; Wed, 24 Apr 2024 14:37:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mwWXgIMp" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1575015E5D2; Wed, 24 Apr 2024 14:37:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713969425; cv=none; b=BdkD0Ki4Sy/7+1DY4Jcus6GMl9c+soIqcITg82zdL8HREA6WquC3Jzx+3q3yu8zeHgVzgBEQeGduqAKzcMbZNzcrks5I9BUF4+KPPMFEq2/asrRBrGhigbUCrdqLkp6JsDiXp5T0iqN7aXPloovqkuxjjGv8T+9Ti5ENGkLSaps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713969425; c=relaxed/simple; bh=h3kni25RcZfL1isJbSQY1P90CKhCozvYjFrPz4S27pc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u73O51AXd81HphhfftGrnFziBZamF4rXoG0kk6TuhJh2pUR3qBuY20yW47kvEfiqAUK4qAea8Z57CKsxWoNfMx1RqbUBrOrsSjUiKijJAsuAeljUo7QWMS/o3bzHqtQpulq5KbPAYFYY4Gednz05SAswD95jFo3rsyZSxkRE5QQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mwWXgIMp; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30779C113CD; Wed, 24 Apr 2024 14:37:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713969424; bh=h3kni25RcZfL1isJbSQY1P90CKhCozvYjFrPz4S27pc=; h=From:To:Cc:Subject:Date:From; b=mwWXgIMp7onRxIzQMA/o2hJjg+kLerJWdGA8NmXQBkjR3qi2vj/bQcmimTz0maYi8 z5gMU5Octleth+6gAmoNuyUcD87z8qUeRbudH/zLFzlrnFWKT+4Zn4V3QxR5YagCAU sQn/rwmF/242nsRJulm6n+rabudxSrtlEkpv+p0INusFS5xIwV5YVCxTxZluFWwR8h QFdRxUeHDOWyNPlVW+G1pTmms/xmdJBZxRtx4CxNXCe1PPRomABni77Hm7BByEKEBK hJnZ/FSW076buS4A+GTcc+mjOgB15eg6FUJDRPr0pkANky9aTF5MAkauz8FCAAuMVh 57tz6HVsJ0Bqg== From: Daniel Bristot de Oliveira To: Daniel Bristot de Oliveira , Steven Rostedt , linux-trace-kernel@vger.kernel.org Cc: Jonathan Corbet , Juri Lelli , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/8] rtla usage improvements Date: Wed, 24 Apr 2024 16:36:49 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi These are some changes I have accumulated in the last weeks. Mostly improving the tool's user experience. - On timerlat top, remove an extra \n that was breaking the output. - Replace \t with ' ' on the auto analysis, fixing some copy & paste. - On timerlat top, do not print TTY formatting characters when the output is not sent to a terminal, because they break the output. - on timerlat top and hist, add a summary with the overall results. For instance, the minimum value for all CPUs, the overall average and the maximum value from all CPUs. - Add a --warm-up option, allowing the workload to run for before starting to collect results. - Add a --trace-buffer-size option, allowing the user to set the tracing buffer size. This is mainly useful for reducing the trace file. - Make the user-space threads the default choice, also adding the a -k option, allowing the user to switch to kerne-threads. Daniel Bristot de Oliveira (8): rtla/timerlat: Simplify "no value" printing on top rtla/auto-analysis: Replace \t with spaces rtla/timerlat: Use pretty formatting only on interactive tty rtla/timerlat: Add a summary for top mode rtla/timerlat: Add a summary for hist mode rtla: Add the --warm-up option rtla/timerlat: Make user-space threads the default rtla: Add --trace-buffer-size option Documentation/tools/rtla/common_options.rst | 7 + .../tools/rtla/common_timerlat_options.rst | 6 +- tools/tracing/rtla/src/osnoise_hist.c | 41 ++- tools/tracing/rtla/src/osnoise_top.c | 41 ++- tools/tracing/rtla/src/timerlat_aa.c | 109 ++++---- tools/tracing/rtla/src/timerlat_hist.c | 220 ++++++++++++++-- tools/tracing/rtla/src/timerlat_top.c | 236 +++++++++++++++--- tools/tracing/rtla/src/trace.c | 15 ++ tools/tracing/rtla/src/trace.h | 1 + 9 files changed, 566 insertions(+), 110 deletions(-) -- 2.44.0