Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3512558img; Mon, 25 Mar 2019 11:48:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKMJ+hsyKO94P6EEoIQJL+Vht+TqvDPI+u/IJk+5Ny5AwZ/OTHfrP+3H6vHi82TE1o66cY X-Received: by 2002:a63:2f44:: with SMTP id v65mr24517422pgv.141.1553539699899; Mon, 25 Mar 2019 11:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553539699; cv=none; d=google.com; s=arc-20160816; b=y8HSugXI6t5J2mvO3y+NM7fZ3UEBQzcwvl2HzX2WqIREvJcqeTd2cfJ37V3Te1b0a5 VFgTqSVWmw7ex+lbIIJLiaCtInyGEde0+042kXfsL9ukFdj8t9A2qt/nB7NOsVLtTKfM ZfobDmcfIB9BYGW0+WCcfqN97zMp3gR21l6ENYO3qYaZOkIGEa2x851BE2HH8MOGYjYV SBKR5VFbugnhYfqNzjZd6+07XkDRPpCb6AFsmQVL0Mz/avAFfFJnUXQk6ZzwCTSJ+l1r 76TwX0+ak8gEcO1vybN2J6svelw0INzg1OEr2ANxIUsjt3zAOec2+Yvnbge00XQnFsrz 3SAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GEjHZZyN9UV8cr9/1AsfCdSj4T5lyWTft2bZ9OIolto=; b=D2ENKbafHiEblFCB0R43O0QojJ0EapDBejJgI9MCo0jrXBigIV0uP7U3vGrmdpCgC1 phTiR+CJoJ8sCy5d/2pZCCRkT7h1YZKI8xdPy4Om9fvH8VfGSXVVJGf6+LUTWGWebst6 pBSitI9jyMnZahNgGgXiIso83QhYtiTpv8HFttmumpV0rco0XlOQ7yJ2AqiY57gmJhSl H4xlBjMYtnW4VOt9dpbYnhVyRIk9xI/OFVF+jcfup9rknDaD3B77+pcioVYJ4k96OVy7 1vedJVDyv77J4q/xGvMWmQJTGe6BFaRdHPJxExJmySen+iRGwup5qtfHmryPTDPIs3YR EbUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YilAR6sN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15si3375297pgq.235.2019.03.25.11.48.04; Mon, 25 Mar 2019 11:48:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YilAR6sN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730240AbfCYSpZ (ORCPT + 99 others); Mon, 25 Mar 2019 14:45:25 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40913 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730209AbfCYSpY (ORCPT ); Mon, 25 Mar 2019 14:45:24 -0400 Received: by mail-pl1-f193.google.com with SMTP id b11so364226plr.7 for ; Mon, 25 Mar 2019 11:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GEjHZZyN9UV8cr9/1AsfCdSj4T5lyWTft2bZ9OIolto=; b=YilAR6sNYUraBChWS+HN63XE1mB10GN3H7whUIsKw2aMrn/CGfOiVY3T6gv1jP+8R8 VTag/hQ647QeIUba3yo8/VbXC0fCB8ZVAgPk3WdQ/+6v2IqeeP20P4O3xjpICCjtNxe1 +/47dHcLPpEeDA6IjMRbouCqbF1au10TOxxyY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GEjHZZyN9UV8cr9/1AsfCdSj4T5lyWTft2bZ9OIolto=; b=QMunM2HMN1LNvDx8N1tlr9C0OrscYNuumpQwLGfYJb6Pqm0jTRtbI1gCjrbCOc2FCB JSZhkTJ2NS8tfljlfC1sSIt3wIiUSbncaOug5b5GFnYYnevS4ExO+X0U8FJUQM5TkPhb 737QgBeoDgbSgGB+BegCeFAYeBLJaajHZVWizZk9t+/QuLFHb+/S816uHkLpvIsvYLve L+sh1jrjbvRd1UGxGghHJEktGxuulY2AROQgjgPLaaCEV2V2CriAczsZN7b+ckpBi9Wq zdlF5e3AskrE5h/O9rmhzvyWHis5kgcT8N1V6NOfmAVW/AbKzleK4xbKTxSIf5GlB6qL c8Hw== X-Gm-Message-State: APjAAAVzZu+Gux1ABhQC4So/ToWCVt7NWPdpVup2OgOpXBcsYE8Y6Pt+ 56wXZS8WD+z76O9OIEt4qImjgw== X-Received: by 2002:a17:902:70cc:: with SMTP id l12mr8312236plt.10.1553539524256; Mon, 25 Mar 2019 11:45:24 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id h3sm27505108pfb.31.2019.03.25.11.45.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 11:45:23 -0700 (PDT) From: Stephen Boyd To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Douglas Anderson , Nikolay Borisov , Kieran Bingham , Jan Kiszka , Jackie Liu Subject: [PATCH 0/4] gdb script for kconfig and timer list Date: Mon, 25 Mar 2019 11:45:18 -0700 Message-Id: <20190325184522.260535-1-swboyd@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a handful of changes to the kernel's gdb scripts to do some more debugging with kgdb. The first patch allows the vmlinux to be reloaded from where it was specified on the command line so that this set of scripts can be used from anywhere. The second patch adds a script to dump the config.gz to a file on the host debugging machine. The third patch adds some rb tree utilities and the last patch uses those rb tree walking utilities to dump out the contents of /proc/timer_list from a system under debug. I'm guessing that Andrew will pick these patches up. I don't know who maintains these gdb scripts but it looks like Andrew has been doing the lifting recently. Cc: Douglas Anderson Cc: Nikolay Borisov Cc: Kieran Bingham Cc: Jan Kiszka Cc: Jackie Liu Stephen Boyd (4): scripts/gdb: Find vmlinux where it was before scripts/gdb: Add kernel config dumping command scripts/gdb: Add rb tree iterating utilities scripts/gdb: Add a timer list command scripts/gdb/linux/config.py | 48 ++++++++ scripts/gdb/linux/constants.py.in | 8 ++ scripts/gdb/linux/rbtree.py | 169 ++++++++++++++++++++++++++ scripts/gdb/linux/symbols.py | 6 +- scripts/gdb/linux/timerlist.py | 194 ++++++++++++++++++++++++++++++ scripts/gdb/vmlinux-gdb.py | 3 + 6 files changed, 427 insertions(+), 1 deletion(-) create mode 100644 scripts/gdb/linux/config.py create mode 100644 scripts/gdb/linux/rbtree.py create mode 100644 scripts/gdb/linux/timerlist.py base-commit: 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b -- Sent by a computer through tubes