Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2624708rwb; Fri, 11 Nov 2022 12:07:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf7dQmxW7U17ozGNnzh6HhOGQMGhYKVht+ACyCz/mBSHFTpvxB1Ekh1RtOU9wwBYgySeOCaX X-Received: by 2002:a63:3f44:0:b0:45f:978c:5fb with SMTP id m65-20020a633f44000000b0045f978c05fbmr3054815pga.210.1668197223543; Fri, 11 Nov 2022 12:07:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668197223; cv=none; d=google.com; s=arc-20160816; b=m4W26dRNAWQNiV64nkN6RCoUvff23bHo5nAEXZANwSmliYJwBamFlv4LmfNSPEwZ25 7ci0g3HX6hb8WeYUjP8uGAIcQVc6K7Ta8BqTgIjDY6W9Gx2OLeQm0nOgOQq7FPuxKtF6 d2+J1Hhg2cveJyjbMHhTHm62gJ0o1HwWwp/Gyy4Ar3r8iMwYZnWc6x9niAtzWqLXLFqV oCuEPSMrOJbhdeSDgbTd/t2nrit/ZDUhQYmftezJ6CTZdpgpnu5sdrOV9Wq2xjQj12YF 6iHxzG6dCCQVdjHFJEhdi6fRjm3A8xZNLGH9IpP8N1uTG3Q7R3E1zs2MXw90XcqjbI7b tCIQ== 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=ElnrwqNrmEmGxc+Sty+CfPe+tKKOnn1Ink+Om4QXeRY=; b=bR3qoWfgi3wpTha5050KQqQ3OmOMTejnYoX72Oj3Ixn7qZOM/FPyLZRS5LUn+i75OK /PtmABWetZLJeG5pkQqTlAIK1B4G7QHKx4OMoXCDLLt/hhHwpRoNUjtX9HAKOMeJyjSH y5qNxHfhQPYKTxVb1ukkX392PPSyu0Booa9i/GMpVPzuKibxAiiYuu99qz++IFZU53PK 14FkQ7Yv2XvF9MzI50Edg/SgnfI8WXAHs68W0NLF1Up6wE+X08c7dszVG6zu7dlUFpIz L9VW/C75iypET6UvjUDah+M05Qv1iShxxYJkoIq2lMf8oh+2/VqTrhygBZf1JhrmnizV m0lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=k98VqU8g; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 36-20020a631464000000b0046af0960898si3277266pgu.625.2022.11.11.12.06.49; Fri, 11 Nov 2022 12:07:03 -0800 (PST) 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=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=k98VqU8g; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233739AbiKKT7t (ORCPT + 90 others); Fri, 11 Nov 2022 14:59:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbiKKT7s (ORCPT ); Fri, 11 Nov 2022 14:59:48 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF55D2A247 for ; Fri, 11 Nov 2022 11:59:46 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id e129so5164099pgc.9 for ; Fri, 11 Nov 2022 11:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ElnrwqNrmEmGxc+Sty+CfPe+tKKOnn1Ink+Om4QXeRY=; b=k98VqU8gxjfX1untl/8fhYQhAKmTuEGg7oHaMmIXlGUpl0Slq4slRoQOu+7jRiCZUW e2erGpm8620B/GtlcWJNr1RjDflo2fmcx/8ACJAVE5PbOE6BQkj7XWCSDNgi2wPTYAUY QZ+zOlEqPkI8A9OOLu83sdLnuSbnDeI0oa2NEtVk3Bn+DEt0tZZjNLV+WxmafTpTr7Rc 8/eYesey0jPFrOa70E0oWUSHzeM3QyermomBftmuNZyYD7nWY7gLiPHW97cVe915qDXW enX8ZxQ+yd+KeiqRnbEXRmkF1KGtsGs8Ex+iiN3vqSuUPACdHZpX8lQuxi0utlDVANX6 UFeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ElnrwqNrmEmGxc+Sty+CfPe+tKKOnn1Ink+Om4QXeRY=; b=ZYojBWh7IObNC5a3y7vWwNKWojx5JNedCG3dcCQ4kVKOFgbJ2af0MwHxo8sZ6KOkAr 4veTNLRyA3J2nmOegZ6h6PzV+SJ9HOnJ2TPVrMXZfaW54UMv7hXyIcIXtmFsxvbTDvuY 5NPCv3c5lGiP6ldNiDHL+qp+oyZBrjxjEDupqa67vpdGpNcAdUoopi7h6J61Dtx4GT9T qErkJ8limDmrFc4xkAD9XanPnUi2ka7nB+CYf5qxcAI/Egi9FVsN82ihtzeidSiEfVKN 7izsu0khaFDD79+1ePBEBmcCyNaqXCbySoAHTlG4w5oNYky+OGf6l3YFnd4OtIuep1p+ DhcQ== X-Gm-Message-State: ANoB5pnbvGWSH9vobPbSWtJzpiyePrnS5Z7G1Rd1VROa0KBgE3eYxRB6 YVSZrLfMX3aJMhZ6fzpKnUpHvw== X-Received: by 2002:a63:3109:0:b0:470:90f1:6219 with SMTP id x9-20020a633109000000b0047090f16219mr3046035pgx.256.1668196786409; Fri, 11 Nov 2022 11:59:46 -0800 (PST) Received: from debug.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id z1-20020aa79901000000b005360da6b26bsm1954866pff.159.2022.11.11.11.59.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 11:59:45 -0800 (PST) From: debug@rivosinc.com To: palmer@dabbelt.com Cc: jan.kiszka@siemens.com, kbingham@kernel.org, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, debug@rivosinc.com, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux@rivosinc.com Subject: Updating python gdb command lx_current for riscv Date: Fri, 11 Nov 2022 11:59:37 -0800 Message-Id: <20221111195938.1499148-1-debug@rivosinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 scripts/gdb has a good deal of useful commands to locate critical kernel data structures from gdb. lx_current misses support for locating current task on this cpu. This patch fixes that. It's a small patch. Please merge.