Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp892201iog; Mon, 13 Jun 2022 15:31:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyV0Hougl8QLdwo5hBp016NPNn4jc7x64vmsxP4F99bVS8W0fUC548Jvjcnd6Dn2faEiwMx X-Received: by 2002:a17:907:3f92:b0:706:db40:a0ef with SMTP id hr18-20020a1709073f9200b00706db40a0efmr1674122ejc.524.1655159499632; Mon, 13 Jun 2022 15:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655159499; cv=none; d=google.com; s=arc-20160816; b=nslJXyxETfkUZN3/mllLoRXJaXOYaYRT9cJCHzO5WWU3/t2vEJUCPcfQ02wF+x4heR V0XZP72Y7DoYqLvL9G0LFEjECNORZDXq+8Uh3czUCpa8p/FUy9gF1t/LCwrc7FNQdp5O FzEv8QDlopDoc7pzOecvBuqCrODJMjxbzK3vFOFeXe4bIIxD/OdKlFzURwQNzbLGJ5ZG jVP0spIzFp/J7OpHF6gNPgDtClMVPOUGSwNZgo7/0VaNSp1/Nk91jdyA1EqvCBO7SLDT rQWcCVjUzTbDQREK4OKs7k4VIBYzL3u2eM1wDRtDHSH6dZO2G5b8Q7bk1Z6Fcxufv1lU Wl+Q== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=7oVJBK5b0GLjId+1rAI3G1yqadCjexfT6EvIot15DjE=; b=0rUF1Mcj8QQpyqX0puOJT5061zdHEJzsUk68nuG1wkwXjgrcf2psHwwWtPQDlVBGrE unzB84Yr0neV1x2/AR/bEEshikvUcWPdg3xrIjU+OAZyYhfHlfm1Bf6g10zdg83fq4Ej J24Rdzw9o0mZ65XWJCsfr/dQh9HJRRCWVp0rs+1Pptjl4NuTVygs15jBHRzsslseRKJc +TwYDAQkGfl9BHs2TAOuE8VJeqKbJMIw3j7tYSHYrF+lew+DNB83k+XUeKAk9j6ydjN8 1wH7oaqdkGh7pf0vGbLIW4SbiR4AtvrxuX6rTPOXH+0WMXQn3OGOD9wPKx42qjp6fLhK dOIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=qeHwFwq8; 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 dx26-20020a170906a85a00b006f429eb5456si8758439ejb.836.2022.06.13.15.31.15; Mon, 13 Jun 2022 15:31:39 -0700 (PDT) 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=@linux-foundation.org header.s=korg header.b=qeHwFwq8; 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 S236428AbiFMWO0 (ORCPT + 99 others); Mon, 13 Jun 2022 18:14:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbiFMWOZ (ORCPT ); Mon, 13 Jun 2022 18:14:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADE3C23BFC for ; Mon, 13 Jun 2022 15:14:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 45CBE6141B for ; Mon, 13 Jun 2022 22:14:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21C7CC34114; Mon, 13 Jun 2022 22:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1655158463; bh=eD273+X+BzkXpDaLR2HObkBXeSp56Ex7Sjo+sd7QsqM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qeHwFwq8QhV6jatQoViVN070e1CQc33l8WBYFHHVDnoEmiPdN59AyOi+Fbjb0+ACj fvwMLeAP0DaeW2CUVwXG3gK8tX9SEUH3uRQcJOQIXbP+WLsoXw0H7WIIILt1q/aNY6 UJBjIUmr9+vvW8dePY20LfTuRKDqaYCsp6fAQrLY= Date: Mon, 13 Jun 2022 15:14:22 -0700 From: Andrew Morton To: Stephen Brennan Cc: Baoquan He , linux-kernel@vger.kernel.org, kexec@lists.infradead.org, Nick Desaulniers , Dave Young , Kees Cook , Jiri Olsa , Stephen Boyd , Bixuan Cui , David Vernet , Vivek Goyal , Sami Tolvanen Subject: Re: [PATCH 0/2] Expose kallsyms data in vmcoreinfo note Message-Id: <20220613151422.e2173f14909b9149fec8e0a6@linux-foundation.org> In-Reply-To: <87edzsrzqn.fsf@oracle.com> References: <20220517000508.777145-1-stephen.s.brennan@oracle.com> <20220613142609.3e4be0f2f45671341450232d@linux-foundation.org> <87edzsrzqn.fsf@oracle.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Mon, 13 Jun 2022 14:59:44 -0700 Stephen Brennan wrote: > >> Related discussion around the BTF side of this: > >> https://lore.kernel.org/bpf/586a6288-704a-f7a7-b256-e18a675927df@oracle.com/T/#u > >> > >> Some work-in-progress branches using this feature: > >> https://github.com/brenns10/dwarves/tree/remove_percpu_restriction_1 > >> https://github.com/brenns10/drgn/tree/kallsyms_plus_btf > > > > What's the story on using gdb with this? > > There is no story with GDB as of yet. I was already familiar with the > code of drgn when I started down this path, so that's what I used. Drgn > happens to have a very extensible type system which made it quite simple > to do. I'd love to see support for doing this with GDB, and might look > into the feasibility of it, but it's not on my roadmap right now. Naive question - could some standalone tool take this kallsyms-based info, combine it with a core image and create a minimally-dwarfified file which any debugger can munch on?