From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796213739; b=ll4/sCvfLsjFZclMmoQ2Ev1M8jWSBgLTDSw48k5wOoZjQV0/dRltH6pjP5444l//s1Sl +vazIPTu/m6s5bhytiB5/MR2Ro3KLYEdti9J1uE+Pu7QSe3sVooVf29jUoEwcKBLDi5FI pFEg7nMrgl+OMadhny14O9scPAfdXGZUnhana5LVrQJb+L9Rd7nxtMJiiVh/l3f6XLMfw ZPEfHX7Wp2f0oapv7jITbLNvMO97pfBfT9rjoJ9aF0qaOb2jR7kvI+YLpo3C0dJqJQFCg ku6auWuFOZRXmxezpPFGTqGLWYKRXVJTW6YDHweZqMvhAaB79x7Opb4DEbJfsCvFphQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796213739; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=/ay5Q5CIulqDkOg5fmjivq5151fPUc7gMMHAGPHOq4A=; b=w67dERXW34yumbryfjttiYxrU+94GvuM4EdyuxGzKdbeFEVt4nikV+Yh0/R+ZNh77gu/ gPSdrrdI/H+bGtyUCKYEEdSe/VA768OBoVeRiUWl0B8MMqLPjHjn5lXd06xhgBxoFSWqu DjfW9jbJk1c62FtXIQBOFzTtDZIInKUAbDZ5uGOLpuI0v1vR5YswibMzLj9ubeLAd32ki SDJmOxgi/ujssUZ1m7qBZtCpGCi13qSwqbmXFOUnz9kZnoTXQRNY/ju086AIvBTz8QScc 8JIuU9xcPpCXRoAhaGYTN4IrWpkAzXph+N4v0FaN2m/y40GYQsV/LULhra1rNn035hg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=W2AvM4mN; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2A3A606A325 for ; Wed, 2 Dec 2026 12:15:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=W2AvM4mN Received: by smtp.kernel.org (Postfix) with ESMTPSA id C27FE1F00896; Wed, 2 Dec 2026 12:15:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796213739; bh=/ay5Q5CIulqDkOg5fmjivq5151fPUc7gMMHAGPHOq4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=W2AvM4mN1Soz9aXyr/R4S/79ZFirCTnfV1+TbQtDfUYa3GIL7ZdHuoUmdn4oueDWq 5PEx4c2V3XO4nUYNQe1vMtvmh4rn+12qrYUL305lay196syP471Zef5d4I3dlR5WIl ojqxWHP/E7bCTsyQ2LcYU03mcLzyVJTLUDuUqz+FprSzpKSrLnisLJVZfJPWImUg6N nT9A6ZWlR3b4O5Szsg+/4IBGjTywfBkHbbMt8qpyZdFxKTnDi117zli3yDoyysniW8 QRIBL/ajM+AXffNoai3XtOLY/xFt/9W/XRnZlGXqhItwhBmLTodv+j3OO2BxkuMDWK yvG+JgBuptZeg== From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ingo Molnar , Thomas Gleixner , James Clark , Jiri Olsa , Ian Rogers , Adrian Hunter , Clark Williams , linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo , Athira Rajeev Subject: [PATCH v3 13/18] perf tests timechart: Exercise the report options Date: Wed, 2 Dec 2026 09:14:29 -0300 Message-ID: <20261202121434.2224-14-acme@kernel.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261202121434.2224-1-acme@kernel.org> References: <20261202121434.2224-1-acme@kernel.org> X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnaldo Carvalho de Melo Run the report with width, process count, topology, highlight, process, power and tasks only, io and force options. Reviewed-by: Athira Rajeev Tested-by: Athira Rajeev Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/shell/timechart.sh | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/tools/perf/tests/shell/timechart.sh b/tools/perf/tests/shell/timechart.sh index 40072b32171a9a1c..c55ddc5f923b2bcc 100755 --- a/tools/perf/tests/shell/timechart.sh +++ b/tools/perf/tests/shell/timechart.sh @@ -59,6 +59,33 @@ test_timechart() { echo "perf timechart ${NAME} test [Success]" } +test_timechart_report_option() { + NAME=$1 + + shift 1 + echo "perf timechart report ${NAME} test" + + if ! perf timechart -i "${perfdata}" -o "${output}" "$@" > /dev/null 2>&1; then + echo "perf timechart report ${NAME} test [Failed: perf timechart command failed]" + err=1 + return + fi + + if [ ! -s "${output}" ]; then + echo "perf timechart report ${NAME} test [Failed: output file is empty or missing]" + err=1 + return + fi + + if ! grep -q "svg" "${output}"; then + echo "perf timechart report ${NAME} test [Failed: output doesn't look like SVG]" + err=1 + return + fi + + echo "perf timechart report ${NAME} test [Success]" +} + if ! perf check feature -q libtraceevent ; then echo "perf timechart is not supported. Skip." cleanup @@ -69,5 +96,24 @@ test_timechart "Basic" "" test_timechart "IO-only" "-I" test_timechart "Backtrace" "-g" +if [ ! -s "${perfdata}" ]; then + echo "perf timechart report options [Skipped: no recorded data]" + cleanup + exit 2 +fi + +# Reuse the data recorded by the last test to exercise the report options. +test_timechart_report_option "width" -w 1024 +test_timechart_report_option "proc-num" -n 4 +test_timechart_report_option "topology" -t +test_timechart_report_option "highlight time" --highlight 1 +test_timechart_report_option "highlight name" --highlight true +test_timechart_report_option "process" -p true +test_timechart_report_option "power-only" -P +test_timechart_report_option "tasks-only" -T +test_timechart_report_option "io options" --io-min-time 1us \ + --io-merge-dist 1us --io-skip-eagain +test_timechart_report_option "force" -f + cleanup exit $err -- 2.56.0