From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cBipb-0004gU-Lj for mharc-grub-devel@gnu.org; Tue, 29 Nov 2016 08:52:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBipZ-0004fq-BM for grub-devel@gnu.org; Tue, 29 Nov 2016 08:52:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBipW-0006Zo-8K for grub-devel@gnu.org; Tue, 29 Nov 2016 08:52:21 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:34272) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cBipW-0006YP-0Y for grub-devel@gnu.org; Tue, 29 Nov 2016 08:52:18 -0500 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uATDqENI027824 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 29 Nov 2016 13:52:14 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.14.4) with ESMTP id uATDqEO4006783 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 29 Nov 2016 13:52:14 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id uATDqDJ6006606 for ; Tue, 29 Nov 2016 13:52:14 GMT Received: from [10.162.81.122] (/10.162.81.122) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 29 Nov 2016 05:52:13 -0800 To: grub-devel@gnu.org From: Stanislav Kholmanskikh Subject: How to enable MM debugging? Message-ID: <583D880B.6070905@oracle.com> Date: Tue, 29 Nov 2016 16:52:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2016 13:52:22 -0000 Hi! Does anybody use MM debugging? If so, what is the recommended/working way of enabling it? These steps do not work: 1. Run ./configure with '--enable-mm-debug'. It reports: With memory debugging: Yes 2. Then build and install the binaries, and install the boot loader 3. Then set 'grub_mm_debug=1' in the grub's prompt. grub> set grub_mm_debug=1 grub> insmod ofnet grub> During initialization, ofnet calls grub_malloc(), so I expect some debug messages to be printed on 'insmod ofnet'. Am I missing something, or is it a bug? Thanks.