Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp4070920pxp; Wed, 23 Mar 2022 10:43:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzttDmu8DBE+dpZTyhv+hBViIvvg5UjuHd7vTDoyXVaMvfyol26+vcMC18aNYipsZmQw5rc X-Received: by 2002:a17:90b:4b0d:b0:1bc:4cdb:ebe3 with SMTP id lx13-20020a17090b4b0d00b001bc4cdbebe3mr940111pjb.176.1648057427110; Wed, 23 Mar 2022 10:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648057427; cv=none; d=google.com; s=arc-20160816; b=VmJfcy1HYdz+6fN1CFYMPmA9yfbNyhUrLC1ZZFuY6K2JumJ8TU85f+5HFW/yw9OSNU D7pQpnl/yWVYTTrWB2YjxaxVKc8scbLlWXeBaGJ+ahg3+jP5/h3zNDPJ6FHyb3MFV61N TIjAR406aTzepjqSG3oDGXkIfmnyraM6JeRtAgEtf8FsJF3+ajM74iVZxV1c44wK5dLl seseFRH5QtiLiyX5ZDb3dkOhhkSBBBiH4EJ3+OBWbFMB4/F+vizxOUnM8ZtZgCkooYXJ Zl7cotWsLJXEOn0o/4m2S6Qm93nb/i9w02beUdyGEAPX5oloM7wNQcynQuJRs9TKJLVC LQvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=NFkGwkkhrXKsXoNixvjMqhth6GVq1xT6H5Lol9T+VgU=; b=Ije80UQJQhXUA5mx2j7ARr/cZkQJDyb72aV/OjMl3EfcV7vsN+3HEotEjcEvEx+8MM ppyQIw2/icuoxbq/8FQ20RFFs68R66oQGNohy8+cWLcRJxzW3DW6+DU0ZiHnMBGt5Z35 55LzxoJCDGR7tt9m4hNvWMMnJD4G2TpEA2wXQIDtf6S1s+qr7N65yiKlykf74JCFDnwN L7zLDhWWV4+VTGhV1btjxYcsaqUkcHuRxqZyohFqzRdw6q3sXRYT1T7PhrVJEVHPS317 qp6o24Jj7etlpeY/FXMB3uSfnQt3HZtbRC7VBns+2iPeOMCqKvkImo88xUxQarUxWfAP o66w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="IR9zRK//"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l1-20020a170902eb0100b001541b329c3csi15649118plb.143.2022.03.23.10.43.32; Wed, 23 Mar 2022 10:43:47 -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=@infradead.org header.s=bombadil.20210309 header.b="IR9zRK//"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239745AbiCVRdl (ORCPT + 99 others); Tue, 22 Mar 2022 13:33:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236000AbiCVRdk (ORCPT ); Tue, 22 Mar 2022 13:33:40 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D631A26AF8; Tue, 22 Mar 2022 10:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=NFkGwkkhrXKsXoNixvjMqhth6GVq1xT6H5Lol9T+VgU=; b=IR9zRK//WRfac+j77k3QtuHdQX EIPyO0vIrQX4N5JoOX9kGpQFG9RNjID2VdiaJliR/IGjMTEEXCTL30GPpejZTR270Z7oeHcsCiVVt /9C+hoeDPFXYIRlEJEwhsAhCIj9hxyvU94pGeVq64F9cqA55TCgSdBm4D4knqSshcqYAsnFkb3yxS 0/r6qwEn4PjLuocTXtfxJtopFGCyUOY6OXVc9+p+zbPSLWSmAy1e61+FInhcqDvWE5Fkjvms/ljDn 1X+P73+wiHNENBM4w7eOfb9hlOPp16sU8GW5hnxE37yy0VN0cJaxVUPYMlZUSoKOvnFBBtLul+3Pf GCgTlcCw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWiMC-00BkCB-9u; Tue, 22 Mar 2022 17:31:44 +0000 Date: Tue, 22 Mar 2022 10:31:44 -0700 From: Luis Chamberlain To: Maninder Singh , Vimal Agrawal Cc: pmladek@suse.com, rostedt@goodmis.org, senozhatsky@chromium.org, andriy.shevchenko@linux.intel.com, linux@rasmusvillemoes.dk, akpm@linux-foundation.org, wangkefeng.wang@huawei.com, v.narang@samsung.com, swboyd@chromium.org, ojeda@kernel.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, avimalin@gmail.com, atomlin@redhat.com, keescook@chromium.org, ndesaulniers@google.com, rdunlap@infradead.org, void@manifault.com Subject: Re: [PATCH 1/1 module-next] kallsyms: enhance %pS/s/b printing when KALLSYSMS is disabled Message-ID: References: <20220316043540.677128-1-maninder1.s@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220316043540.677128-1-maninder1.s@samsung.com> Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 Wed, Mar 16, 2022 at 10:05:40AM +0530, Maninder Singh wrote: > print module information when KALLSYMS is disabled. > > No change for %pB, as it needs to know symbol name to adjust address > value which can't be done without KALLSYMS. > > (A) original output with KALLSYMS: > [8.842129] ps function_1 [crash] > [8.842735] pS function_1+0x4/0x2c [crash] > [8.842890] pSb function_1+0x4/0x2c [crash b367e79021b9f3b0172f9a36d4261c1f528ca1b3] > [8.843175] pB function_1+0x4/0x2c [crash] > [8.843362] pBb function_1+0x4/0x2c [crash b367e79021b9f3b0172f9a36d4261c1f528ca1b3] > > (B) original output without KALLSYMS: > [12.487424] ps 0xffff800000eb008c > [12.487598] pS 0xffff800000eb008c > [12.487723] pSb 0xffff800000eb008c > [12.487850] pB 0xffff800000eb008c > [12.487967] pBb 0xffff800000eb008c > > (C) With patched kernel > with KALLYSMS: > [41.974576] ps function_1 [crash] > [41.975173] pS function_1+0x4/0x2c [crash] > [41.975386] pSb function_1+0x4/0x2c [crash a8b20caaec9635b316cf4812f6b55598fe2b7cee] > [41.975879] pB function_1+0x4/0x2c [crash] > [41.976076] pBb function_1+0x4/0x2c [crash a8b20caaec9635b316cf4812f6b55598fe2b7cee] > > without KALLSYMS: > [9.624152] ps 0xffff800001bd008c [crash] // similar to original, no changes > [9.624548] pS 0x(____ptrval____)+0x8c [crash] // base address hashed and offset is without hash > [9.624847] pSb 0x(____ptrval____)+0x8c [crash a8b20caaec9635b316cf4812f6b55598fe2b7cee] > [9.625388] pB 0x(____ptrval____)+0x8c [crash] > [9.625594] pBb 0x(____ptrval____)+0x8c [crash a8b20caaec9635b316cf4812f6b55598fe2b7cee] > > with disable hashing: > [8.563916] ps 0xffff800000f2008c [crash] > [8.564574] pS 0xffff800000f20000+0x8c [crash] > [8.564749] pSb 0xffff800000f20000+0x8c [crash 3423a8993a7033fb79e5add14bf9d8d6b56330ca] > [8.565008] pB 0xffff800000f20000+0x8c [crash] > [8.565154] pBb 0xffff800000f20000+0x8c [crash 3423a8993a7033fb79e5add14bf9d8d6b56330ca] > > Suggested-by: Petr Mladek > Co-developed-by: Vaneet Narang > Signed-off-by: Vaneet Narang > Signed-off-by: Maninder Singh I've pushed a lot of queued code into modules-testing (not modules-next yet) [0] please base your changes on that in a new iteration as that is what things look like now. Vimal might be interested in your work too and you might be interested in his patch too [1]. [0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/log/?h=modules-testing [1] https://lkml.kernel.org/r/CALkUMdRO+JAF_Dw3Q-mHOxvt7uM6gVDNGAA3OMeCUpnSvi7_Pg@mail.gmail.com Luis