From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f201.google.com (mail-dy1-f201.google.com [74.125.82.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BC383A7599 for ; Thu, 23 Apr 2026 16:10:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776960659; cv=none; b=gwjlo+/cVQI//NKzay/DfqNfuFdJ/E9OjeBgW3ppQjFqfnxPkCR8lGhJ6SJyL47fDQuTawEgBQOnzejdbuEHclxFOsVnEUgpCFZktLgcG6ZrUt/jvHCkb0WKO8fMwiaJDYIHcxHQAFSSmHB191HoRVmiEw5yU9bwSDA0hyvzOj4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776960659; c=relaxed/simple; bh=9WQTtZJ6BOs2jlbQ/thEMBdqWJFDW7uWagIcEBbxnk8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Vp9TyymeqyMTOzi/ajs5Y84d7+QiZYfQGN29hixBHKgm9544JAJwD5aP9RNBqPs3SaJP38Ptrnk6kseQ81ubPSrNDmbYuiqJjLnt49KGc+YWl4vPQ3g439wh8kkyodPGxE/s4kIX4Z1qFBifsAulUghNnk7zRDXpHHSjplbQ5I8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=uS2fjBck; arc=none smtp.client-ip=74.125.82.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="uS2fjBck" Received: by mail-dy1-f201.google.com with SMTP id 5a478bee46e88-2ba8013a9e3so7364234eec.0 for ; Thu, 23 Apr 2026 09:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1776960657; x=1777565457; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=X5V+95Q5Ie0huXAoonJqgxmxTdwrZQqVv/lbi4uyNBU=; b=uS2fjBckNMJwIK/LXmdNqddvi+1Hpd82u73LewVIJwxbGBLLmTj25S24/darGRHCsJ OoqIgBjmijPty8vtPCIVuYBdIIXP2OjDeDeyhFUKsFDH2/hQNSFqurV+0NQY3ziQWNEI iMGUTBBEbasMNXo5wgJ2dZdoMwz1WRaLZTZOwevpMygfbaaPoH+s4R2Ee7U+TMo+sqTy iX2czYyKptXXRVo86ZLVBOdBV68gPs9KmXbaImdKnbTDS1bwA8ikDLtu6kedWOukFAH6 HiP1ljg5EWwVixvIEXSo+2t435Eq+ZCKxjlEp/6gUEphT9FnXTltN8srve1fj/4E1nvI hIXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776960657; x=1777565457; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X5V+95Q5Ie0huXAoonJqgxmxTdwrZQqVv/lbi4uyNBU=; b=kgcb8szvoeIc/3A915zNyDP7Dtngz9g7VYcLgW/EJsHXrDbTSUXuW0kRUpqC8qJ1E4 ugc6LK0kajg6SQyBby5/5NIeTUiYpuz4BDVBFZgWk93VbUaeV5M0vU/haAIT6stD3Pmw NdETmbuKMyIrhJgLrsnskaCKiNSTBSsbuB4hQtgo3NIOqlGLeV/S4WMoUabXsAmhs2nv CPTCYshMlkoiDIfPhpYRIRQqLedVxIi8On3cNweNeFy+akwVwHnfw5xXcRDr1xHLmjjL NDz5C8GEjylGtTSsNLQ1NZUN4xAe12Ke9apBzZenODBgEXANLYDZKENhPSkzvKwKTU3z zZyw== X-Forwarded-Encrypted: i=1; AFNElJ+j7J1xNlfSxAzfRlE258cMJvPLVkPy92MKLAEg1j4VlCRTIjnghZGIvaywzixLn9kwyWzDoxMiVWjurUc=@vger.kernel.org X-Gm-Message-State: AOJu0Yweu8qxfk7fUYOCwuvoW35pe+k4Shd60JJ94Hc0vWvW/mI1tI+9 3FjGuJzAIZFi3WmgHu76DKlq41HYhJq4okuri0mTPAo3+LoUaNittw4eB/haB4Uxx2/ZnQ2/UeK uwOH/cM9h2A== X-Received: from dycal20.prod.google.com ([2002:a05:7301:1c94:b0:2d7:ab9e:d123]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7300:4311:b0:2e2:185b:87d9 with SMTP id 5a478bee46e88-2e478a31a3dmr16339418eec.20.1776960656862; Thu, 23 Apr 2026 09:10:56 -0700 (PDT) Date: Thu, 23 Apr 2026 09:09:30 -0700 In-Reply-To: <20260423161006.1762700-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260423035526.1537178-1-irogers@google.com> <20260423161006.1762700-1-irogers@google.com> X-Mailer: git-send-email 2.54.0.rc2.533.g4f5dca5207-goog Message-ID: <20260423161006.1762700-24-irogers@google.com> Subject: [PATCH v3 23/58] perf python: Move exported-sql-viewer.py and parallel-perf.py to tools/perf/python/ From: Ian Rogers To: irogers@google.com, acme@kernel.org, adrian.hunter@intel.com, james.clark@linaro.org, leo.yan@linux.dev, namhyung@kernel.org, tmricht@linux.ibm.com Cc: 9erthalion6@gmail.com, adityab1@linux.ibm.com, alexandre.chartre@oracle.com, alice.mei.rogers@gmail.com, ankur.a.arora@oracle.com, ashelat@redhat.com, atrajeev@linux.ibm.com, blakejones@google.com, changbin.du@huawei.com, chuck.lever@oracle.com, collin.funk1@gmail.com, coresight@lists.linaro.org, ctshao@google.com, dapeng1.mi@linux.intel.com, derek.foreman@collabora.com, dsterba@suse.com, gautam@linux.ibm.com, howardchu95@gmail.com, john.g.garry@oracle.com, jolsa@kernel.org, jonathan.cameron@huawei.com, justinstitt@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, mike.leach@arm.com, mingo@redhat.com, morbo@google.com, nathan@kernel.org, nichen@iscas.ac.cn, nick.desaulniers+lkml@gmail.com, pan.deng@intel.com, peterz@infradead.org, ravi.bangoria@amd.com, ricky.ringler@proton.me, stephen.s.brennan@oracle.com, sun.jian.kdev@gmail.com, suzuki.poulose@arm.com, swapnil.sapkal@amd.com, tanze@kylinos.cn, terrelln@fb.com, thomas.falcon@intel.com, tianyou.li@intel.com, tycho@kernel.org, wangyang.guo@intel.com, xiaqinxin@huawei.com, yang.lee@linux.alibaba.com, yuzhuo@google.com, zhiguo.zhou@intel.com, zli94@ncsu.edu Content-Type: text/plain; charset="UTF-8" These scripts are standalone and not using the `perf script` libpython support. Move to tools/perf/python in an effort to deprecate the tools/perf/scripts/python support. Signed-off-by: Ian Rogers --- v2: 1. Updated exported-sql-viewer.py : I updated the comments at the top of the script to use the new path tools/perf/python/exported-sql-viewer.py in the usage examples. 2. Fixed Test Path in script.sh : I updated the path in tools/perf/tests/shell/script.sh to point to the new location of parallel-perf.py at ../../python/parallel-perf.py . --- tools/perf/{scripts => }/python/exported-sql-viewer.py | 4 ++-- tools/perf/{scripts => }/python/parallel-perf.py | 0 tools/perf/tests/shell/script.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename tools/perf/{scripts => }/python/exported-sql-viewer.py (99%) rename tools/perf/{scripts => }/python/parallel-perf.py (100%) diff --git a/tools/perf/scripts/python/exported-sql-viewer.py b/tools/perf/python/exported-sql-viewer.py similarity index 99% rename from tools/perf/scripts/python/exported-sql-viewer.py rename to tools/perf/python/exported-sql-viewer.py index e0b2e7268ef6..f3ac96ada1f5 100755 --- a/tools/perf/scripts/python/exported-sql-viewer.py +++ b/tools/perf/python/exported-sql-viewer.py @@ -10,12 +10,12 @@ # Following on from the example in the export scripts, a # call-graph can be displayed for the pt_example database like this: # -# python tools/perf/scripts/python/exported-sql-viewer.py pt_example +# python tools/perf/python/exported-sql-viewer.py pt_example # # Note that for PostgreSQL, this script supports connecting to remote databases # by setting hostname, port, username, password, and dbname e.g. # -# python tools/perf/scripts/python/exported-sql-viewer.py "hostname=myhost username=myuser password=mypassword dbname=pt_example" +# python tools/perf/python/exported-sql-viewer.py "hostname=myhost username=myuser password=mypassword dbname=pt_example" # # The result is a GUI window with a tree representing a context-sensitive # call-graph. Expanding a couple of levels of the tree and adjusting column diff --git a/tools/perf/scripts/python/parallel-perf.py b/tools/perf/python/parallel-perf.py similarity index 100% rename from tools/perf/scripts/python/parallel-perf.py rename to tools/perf/python/parallel-perf.py diff --git a/tools/perf/tests/shell/script.sh b/tools/perf/tests/shell/script.sh index 7007f1cdf761..2051c6e05569 100755 --- a/tools/perf/tests/shell/script.sh +++ b/tools/perf/tests/shell/script.sh @@ -76,7 +76,7 @@ test_parallel_perf() err=2 return fi - pp=$(dirname "$0")/../../scripts/python/parallel-perf.py + pp=$(dirname "$0")/../../python/parallel-perf.py if [ ! -f "${pp}" ] ; then echo "SKIP: parallel-perf.py script not found " err=2 -- 2.54.0.rc2.533.g4f5dca5207-goog