From nobody Wed Apr 15 02:40:30 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3E04C04A68 for ; Wed, 27 Jul 2022 14:14:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233300AbiG0OOz (ORCPT ); Wed, 27 Jul 2022 10:14:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232458AbiG0OOx (ORCPT ); Wed, 27 Jul 2022 10:14:53 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E3213CBE5 for ; Wed, 27 Jul 2022 07:14:50 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id h8so24437093wrw.1 for ; Wed, 27 Jul 2022 07:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=HlFl4TB+ozKKXomSw+QhNP8jLuIDommpFYIfVxfLtCc=; b=rUfK2qdgZHqlVpoXX0nP91/R5TMDc8m05GlXIZ8h+UpC6YIYJWJR18mAsjE0pFzdhW J0h+m/HvNlcDWeW2Xeu1hcmxVT2yFGAlR0gaAk8q8FWN2lzsaugcNNKUqTVhpHjofa4u GcOAGYDcZcjciNv38yQ2mUiAAobxQbQUnlOwsciaFq/ysk38Il8TKHLOo93MQ0gTchX8 Rxb0OVDt+5yixxinOqNdDfdLyCDMrsUq0dPHuCFdlwSbqtgolYBff41g+xROdziLLUrO fbbwULZU5Dr8QAAdKZQ6Uaj+PuUyEqc2Di70BCEwF0bh+Hr3+hVqOizB4H661FTy2Br2 BOAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=HlFl4TB+ozKKXomSw+QhNP8jLuIDommpFYIfVxfLtCc=; b=Rkk3pXktRCpPVHMvRUFbLrR5cyc4BLnfUpmfhsoDqQ6Oc/PrqJerRcKwKPJVlohWog FEDgHr6YkecoOnM8ebQthYp+hYiW1yUvU0dtf2iZlbhqrSMY5arrtvHVTFVVkYxfLtQn RwGaIgFDQ/rBuklKrehwhE1N3sQ/9SDEq/PyHP0ogLYKLXqI0EwwUi2FfRL2If7PbDhA HRYfRBzMTVFr1K5+CQ8Hhw9+lOEJ33n4bfXpbanz9jNrFMSWqf6k59M6x88IJVIFd+er e0x2OJT6wr4YpLlEP2NOlsxk4WJFGOooLMwRqetGFo/1S5y68bfrjtCNLqTd5/mdNK9L qmBw== X-Gm-Message-State: AJIora9OnQfKWS0K2zqUuiIJ9UGok9xO9SsqyutIMwzdbyllYjXQAPGa fXHikqC5BDoZbvZCK0ge7n6qqQ== X-Google-Smtp-Source: AGRyM1tmAzBvRGxN5q9WGQAVHCzdtmgiFFKwLKon/HRs50v9bLy+7JJn+oW4qgu8LLZ8X/dDIrmh2A== X-Received: by 2002:adf:d4c2:0:b0:21e:ddf3:8b14 with SMTP id w2-20020adfd4c2000000b0021eddf38b14mr1589672wrk.355.1658931289199; Wed, 27 Jul 2022 07:14:49 -0700 (PDT) Received: from localhost.localdomain (210.145.15.109.rev.sfr.net. [109.15.145.210]) by smtp.googlemail.com with ESMTPSA id o20-20020a05600c339400b0039c54bb28f2sm2489524wmp.36.2022.07.27.07.14.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 07:14:48 -0700 (PDT) From: Amjad Ouled-Ameur To: jan.kiszka@siemens.com Cc: linux-kernel@vger.kernel.org, narmstrong@baylibre.com, kbingham@kernel.org, Amjad Ouled-Ameur Subject: [PATCH 1/3] scripts/gdb: timerlist: use range instead of xrange Date: Wed, 27 Jul 2022 16:14:41 +0200 Message-Id: <20220727141443.133094-2-aouledameur@baylibre.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220727141443.133094-1-aouledameur@baylibre.com> References: <20220727141443.133094-1-aouledameur@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" xrange has been renamed to range in Python 3. Therefore, timerlist currently fails with NameError exception: Python Exception name 'xrange' is not defined. Use range instead of xrange. Signed-off-by: Amjad Ouled-Ameur Tested-by: Florian Fainelli --- scripts/gdb/linux/timerlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gdb/linux/timerlist.py b/scripts/gdb/linux/timerlist.py index 071d0dd5a634..fac951236dc4 100644 --- a/scripts/gdb/linux/timerlist.py +++ b/scripts/gdb/linux/timerlist.py @@ -73,7 +73,7 @@ def print_cpu(hrtimer_bases, cpu, max_clock_bases): ts =3D cpus.per_cpu(tick_sched_ptr, cpu) =20 text =3D "cpu: {}\n".format(cpu) - for i in xrange(max_clock_bases): + for i in range(max_clock_bases): text +=3D " clock {}:\n".format(i) text +=3D print_base(cpu_base['clock_base'][i]) =20 --=20 2.37.1 From nobody Wed Apr 15 02:40:30 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0731C04A68 for ; Wed, 27 Jul 2022 14:15:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233412AbiG0OO7 (ORCPT ); Wed, 27 Jul 2022 10:14:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232805AbiG0OOx (ORCPT ); Wed, 27 Jul 2022 10:14:53 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BABB3D5A1 for ; Wed, 27 Jul 2022 07:14:51 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id l22so2901721wrz.7 for ; Wed, 27 Jul 2022 07:14:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=VvR5xY6dLjk1KtYgBo6Q5I3yBxc3nrSFaDP4RWXJJLM=; b=MMlKL/nId+e/+IYux31/RpJISKDYzVgZCc+XZn7yNFcvcmjXlgfKQs8R/5cB/srq4+ uQnImFmvr0x5OaueZz4B28Z4jmzuz2MNE9rL+X4lbJUY90Wyq8Bs59MPtryNvPrTuto1 VCoFm7wBXlbHOB2PU0tNZdlivixennKv1/pKZZDjZ4OEwvZOv4AEXcPtCRQBFMrL2buP oyJJ97imfOXWv1TEsF9DFXfqf6uAfmfF3zAxx6UGEGQ3QAFocVeh3rcXbn8HLJQJGvJc UGTj2/faPcbLpaGomlrHUofc8oWQup6MWdcCBAKnONwFqMlFVN1qU5Mzom1S229jLWY3 e4UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=VvR5xY6dLjk1KtYgBo6Q5I3yBxc3nrSFaDP4RWXJJLM=; b=bVOXCaBXsgfygUxuWJKS87ROM+QPmMevseLaSGq6HYkT2//j2M7M9/TtCgJxqXAAg6 ZVxSixZ3knInaZA19xAHDhxFtUlOFYukeQm3iNvbZKVMpSIh/cw2XNTyUaUl+8uhKB17 pb8uexG3HxvKCyoJURWzWkgVv30IEtx+jhgl+/gGxHRh8KehUymVOaKEjjPgVwH/b/Og kWBCu74vGGlhqc6Bc8nMRLYx/sqQ2qfOSHGV1+72Zeb6Jf4oZpmnexHVwz0k/K0sBlbc 58IRsL+T6CexufTByDGdx5cW6oLs9VtYUx8yGQqys0gzFSbcV8JKe4e2tw6dUYXgvzp9 tk6A== X-Gm-Message-State: AJIora/DpbeKCJ37iUw2ix9DLKhPFaUVMSDiw5aoA7wKyT9eIDJ/uBaF CY6deLygG7cazHJRZuuikHa4og== X-Google-Smtp-Source: AGRyM1tntpJT9rAfvN/YlaJ6WTslyCUAB6qx2NmoHD2rQ/rEAgbGGcTLXGrurjwY9hKU74J7mCN+Ng== X-Received: by 2002:adf:e0cb:0:b0:21e:9ed9:d862 with SMTP id m11-20020adfe0cb000000b0021e9ed9d862mr6171174wri.518.1658931289817; Wed, 27 Jul 2022 07:14:49 -0700 (PDT) Received: from localhost.localdomain (210.145.15.109.rev.sfr.net. [109.15.145.210]) by smtp.googlemail.com with ESMTPSA id o20-20020a05600c339400b0039c54bb28f2sm2489524wmp.36.2022.07.27.07.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 07:14:49 -0700 (PDT) From: Amjad Ouled-Ameur To: jan.kiszka@siemens.com Cc: linux-kernel@vger.kernel.org, narmstrong@baylibre.com, kbingham@kernel.org, Amjad Ouled-Ameur Subject: [PATCH 2/3] scripts/gdb: timerlist: fix rb_node access Date: Wed, 27 Jul 2022 16:14:42 +0200 Message-Id: <20220727141443.133094-3-aouledameur@baylibre.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220727141443.133094-1-aouledameur@baylibre.com> References: <20220727141443.133094-1-aouledameur@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" "strcut timerqueue_head" no longer has "next" member since v5.4-rc1: commit 511885d7061e ("lib/timerqueue: Rely on rbtree semantics for next timer") Therefore, access "rb_node" through active->rb_root->rb_root->rb_node. Moreoever, remove curr.address.cast() on rb_node as this breaks the code and is not necessary. Signed-off-by: Amjad Ouled-Ameur Tested-by: Florian Fainelli --- scripts/gdb/linux/timerlist.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/gdb/linux/timerlist.py b/scripts/gdb/linux/timerlist.py index fac951236dc4..d16909f8df35 100644 --- a/scripts/gdb/linux/timerlist.py +++ b/scripts/gdb/linux/timerlist.py @@ -43,8 +43,7 @@ def print_timer(rb_node, idx): =20 =20 def print_active_timers(base): - curr =3D base['active']['next']['node'] - curr =3D curr.address.cast(rbtree.rb_node_type.get_type().pointer()) + curr =3D base['active']['rb_root']['rb_root']['rb_node'] idx =3D 0 while curr: yield print_timer(curr, idx) --=20 2.37.1 From nobody Wed Apr 15 02:40:30 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AE56C04A68 for ; Wed, 27 Jul 2022 14:15:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233427AbiG0OPF (ORCPT ); Wed, 27 Jul 2022 10:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232982AbiG0OOx (ORCPT ); Wed, 27 Jul 2022 10:14:53 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19B923ED52 for ; Wed, 27 Jul 2022 07:14:52 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id v13so16673791wru.12 for ; Wed, 27 Jul 2022 07:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=pgiicmFbHSV+cnHrXl1sGqeUiitZ3BsicQPNI51cCmM=; b=YcQ6nagqtnIjc6HP17wf717/xUNa8Xp8WAw8F1L6Czw7NPtkINekRK+7XcOMNxRKWo ob4cCRrfxGt+8EGc9CR9A/7e+YQ2+7jA9sc4sYe1QuZA5qyWk7fzjzAt2YP/m2FNxU4P mu2FYGreZNuicSOk7HQauit1IGFEk5dvQFlopho2X0NOwh6XhKyF6Cmoz8yq/9MnbX7+ ukc4YRhAXh6jbo72lxdN57Wjv5/fcrpf9IXaVCnhOjidkjPwINKwG9o/rS05ZSi6ER9O HvpyoOHwLU/3ZPurk/JQ7TLTwXK3ZTSkS8fGT4+brzDFAbC1/pAOt49aDW36HjmIR3p7 GE4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=pgiicmFbHSV+cnHrXl1sGqeUiitZ3BsicQPNI51cCmM=; b=xI37e9kSgR9MP+87DUTsse4sGBCM5t07opnlJs5mIWvQofYdtuHXhFm199uj1KwUPc KqXfxNxrln875IesCx3Y19Rf85/uJ2r0T1KZFOuV+i81Frti3owyGyAXJm6/8jwZypju 9z8aHE+eki//w8vb9Dnkk6EKJutZU74StV+mT6CevakScmM95ZcVD55cyOyzEwteo78m GUZ+/ATwB73uGwwtKJlIOfKvAfBRf3HQvNBkS133yCCvFLS82IQC//zRgrj6WSoyGmsw tbNDS9FnuzC+Cxx6V8MHzjjJFW0uPYAXnw2hEnlffC20m3FJSpPtIzuuxEBRt+dEkItv U5cQ== X-Gm-Message-State: AJIora/kpTZjUOjBKgGr64GLsWO8I4il0my1j5VvxxP4H+spRLBzaxDa cthuQQc/wlYOjpfPVP1z+CQZRQ== X-Google-Smtp-Source: AGRyM1tTJYxDOoXCV28u1H4DSZIyhb/0aGX6VVOUkzgLCrsmdPKKoQZCEfiC4od2irWvsxe+iVGrWw== X-Received: by 2002:a05:600c:4e44:b0:3a3:279b:30e4 with SMTP id e4-20020a05600c4e4400b003a3279b30e4mr3379879wmq.37.1658931290552; Wed, 27 Jul 2022 07:14:50 -0700 (PDT) Received: from localhost.localdomain (210.145.15.109.rev.sfr.net. [109.15.145.210]) by smtp.googlemail.com with ESMTPSA id o20-20020a05600c339400b0039c54bb28f2sm2489524wmp.36.2022.07.27.07.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 07:14:50 -0700 (PDT) From: Amjad Ouled-Ameur To: jan.kiszka@siemens.com Cc: linux-kernel@vger.kernel.org, narmstrong@baylibre.com, kbingham@kernel.org, Amjad Ouled-Ameur Subject: [PATCH 3/3] scripts/gdb: timerlist: convert int chunks to str Date: Wed, 27 Jul 2022 16:14:43 +0200 Message-Id: <20220727141443.133094-4-aouledameur@baylibre.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220727141443.133094-1-aouledameur@baylibre.com> References: <20220727141443.133094-1-aouledameur@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" join() expects strings but integers are given. Convert chunks list to strings before passing it to join() Signed-off-by: Amjad Ouled-Ameur Tested-by: Florian Fainelli --- scripts/gdb/linux/timerlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gdb/linux/timerlist.py b/scripts/gdb/linux/timerlist.py index d16909f8df35..98bb9a239283 100644 --- a/scripts/gdb/linux/timerlist.py +++ b/scripts/gdb/linux/timerlist.py @@ -172,7 +172,7 @@ def pr_cpumask(mask): if 0 < extra <=3D 4: chunks[0] =3D chunks[0][0] # Cut off the first 0 =20 - return "".join(chunks) + return "".join(str(chunks)) =20 =20 class LxTimerList(gdb.Command): --=20 2.37.1