Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1009763pxy; Wed, 5 May 2021 21:03:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzajk8I9EtbxxnDpDWbIVnBswutPN4DWoDAzCYKiq1pqW8HQdQ1BgbQ7MzluDalFlJ+wGi7 X-Received: by 2002:a63:575b:: with SMTP id h27mr2300664pgm.180.1620273825430; Wed, 05 May 2021 21:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620273825; cv=none; d=google.com; s=arc-20160816; b=YlFL2F+Xif6xev1s4W76khlJxx+c7wtM2c7hF1yX86w68H4VLF6OatKrMOYEPcoYQ8 dzXM+F58dGeGEwAWGJztm5MYZn96+BGwqwL6xDJFRNTVSxJsnTFhD9dVqNnxgq4BckkQ 94el7hkRat7b9nsGheQg1j0MOXOtgjQA1V/YUoa7J9lW+RXpnWPiZkSIiWbRZGjhELLX +TmeZljKpD5xx9CtO8HzE5O7GDub5z+eh1tgyPO0FoArIETvA9dwiY1NB/2Hw6g92FJ3 jZ8ywSj+ML13OkJdkj3Lrz6X2t1H7ulDToZEAuPaPfneIXvuuwP9KXh/LxOYoBHF/SQE KMVw== 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:date:subject:cc:to:from :dkim-signature; bh=Dh58j6GU7M0CphLn4oKBpvl0eQmlpPoFOL756w6uKi0=; b=bKlxsEnSqcon8c5KYV8bTQX/EQWCYQarcYomscJsxzyKIoVs3KarwfpCnDuWHL9NbP TejIBt+pr1iIc+lVH5KAsI3K/BW9bxxgWkRrDPAv1CsLf4uZ3PV9u4FIhSlNdL++Hclf puQCVzu28fzGHVPBJuJIR4i0lufWuPAwwbU7yyhVHMU3Cif6VvFwk1jJPZwtMXRcSO/A Uep2CyGpPbdo3YGrl/pejEP/HvxjvdiXgXORYMriUAcFHBpQWtZFqR2JVBojnZ0SGqIw jH8VIqdzi/ltkt+yNeEv5HgIXG/wL/C3IfwNJ7chYwebUkE0gpAUQbV1t0xzkfseRCyH xx5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R+oKZBGY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d31si1227389pgm.492.2021.05.05.21.03.32; Wed, 05 May 2021 21:03:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R+oKZBGY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbhEFECI (ORCPT + 99 others); Thu, 6 May 2021 00:02:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhEFECC (ORCPT ); Thu, 6 May 2021 00:02:02 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 887A0C061763 for ; Wed, 5 May 2021 21:00:34 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id z14so3640108ioc.12 for ; Wed, 05 May 2021 21:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Dh58j6GU7M0CphLn4oKBpvl0eQmlpPoFOL756w6uKi0=; b=R+oKZBGYMV+jnmbb9Ew52fgqLytUD2T4kWzkjZ9sZuIR4dw46uhEaOp/WqYbUNOGKC BMxTFbGpQ8bV+xPMmyGQE+IGir9aDJRdLDAvAh2lJCAMym7aqoOrNvcq2aFaemTomegb i6ATSQM8j6k4g0qXFwoqfDUQOBoMTgdiVLRIGTQCCiglBgQVGUCF4/3wEYeqb3V4jctc RQDEwC4OXNWP2xmqtqrKyqpRZW3M9G0bobE0Gll8rBr6MVj/h5Ivi4IVMkXiNxNU8LDG bd3nn5NRuUWX2GNha9HFsxwHEKdagr+aCjS5YC7J7gMm8evIJathsfE103Vui30LSDDt Z3Mg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Dh58j6GU7M0CphLn4oKBpvl0eQmlpPoFOL756w6uKi0=; b=uehLslQ8lSV7LMLBOLRRL0eNQZ+AWvffT2BtNr7/+wKkn8IcT+lH7XHHBf0sHjrGyu tK/XLQYi6KZBu91drv7GK7CDIr9sTcQQ7TTc4sTbJr2GDjtiUK7Gca61O2fzQ3ZAIy/O /lrGCQlMybMovM2U0yLPtITMbV1rE6Y0jWGm0DfM/D1UWxZMRmxouPDvN5nkYD/9ZBkN KVEY5Xd8WWE/N1ILxFKtQu2cOxUP5sppJZQD/eyAGWEntVxZGfcEBPuMpaS7kbDWteJY lASpaw5d5xE6BW3qhsm1tlDB41PpMYt827SSRVnvkjFiLIfOpYmGAhIsNKO2rX+f5cUs OWCQ== X-Gm-Message-State: AOAM5320CQgKjNvQJQAE3+H6HAaJPDwEbbcdLOSMDUqexGMOQFZbKPO/ M/O9Tv2QMSzHnv9I77e7MUE= X-Received: by 2002:a02:6957:: with SMTP id e84mr1911978jac.96.1620273632778; Wed, 05 May 2021 21:00:32 -0700 (PDT) Received: from frodo.mearth (c-24-9-77-57.hsd1.co.comcast.net. [24.9.77.57]) by smtp.googlemail.com with ESMTPSA id v2sm536918ioe.22.2021.05.05.21.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 May 2021 21:00:32 -0700 (PDT) From: Jim Cromie To: Jessica Yu , linux-kernel@vger.kernel.org Cc: Jim Cromie Subject: [PATCH 3/4] module: add section-size to move_module pr_debug Date: Wed, 5 May 2021 22:00:18 -0600 Message-Id: <20210506040019.1322778-4-jim.cromie@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210506040019.1322778-1-jim.cromie@gmail.com> References: <20210506040019.1322778-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org move_module() prints "Final section addresses for $modname". So lets add those section addresses to the pr_debug(section name)s. Signed-off-by: Jim Cromie --- kernel/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index ab16b8da2555..c3333b45d812 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -3393,8 +3393,8 @@ static int move_module(struct module *mod, struct load_info *info) memcpy(dest, (void *)shdr->sh_addr, shdr->sh_size); /* Update sh_addr to point to copy in image. */ shdr->sh_addr = (unsigned long)dest; - pr_debug("\t0x%lx %s\n", - (long)shdr->sh_addr, info->secstrings + shdr->sh_name); + pr_debug("\t0x%lx 0x%.8lx %s\n", (long)shdr->sh_addr, + (long)shdr->sh_size, info->secstrings + shdr->sh_name); } return 0; -- 2.30.2