Received: from eggs.gnu.org ([2001:4830:134:3::10]:52920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6tSR-0001KE-2O for qemu-devel@nongnu.org; Mon, 01 Oct 2018 04:21:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6tSP-0001wL-BY for qemu-devel@nongnu.org; Mon, 01 Oct 2018 04:21:34 -0400 References: <20180926094219.20322-1-david@redhat.com> <20180926094219.20322-17-david@redhat.com> <2c164355-1592-a785-b761-463f00dee259@redhat.com> From: David Hildenbrand Message-ID: Date: Mon, 1 Oct 2018 10:21:21 +0200 MIME-Version: 1.0 In-Reply-To: <2c164355-1592-a785-b761-463f00dee259@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 16/24] memory-device: trace when pre_assigning/assigning/unassigning addresses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Auger Eric , qemu-devel@nongnu.org Cc: Pankaj Gupta , Eduardo Habkost , "Michael S . Tsirkin" , Xiao Guangrong , "Dr . David Alan Gilbert" , Markus Armbruster , Alexander Graf , qemu-ppc@nongnu.org, Paolo Bonzini , Igor Mammedov , Luiz Capitulino , David Gibson , Richard Henderson >> # hw/mem/pc-dimm.c >> mhp_pc_dimm_assigned_slot(int slot) "%d" >> -mhp_pc_dimm_assigned_address(uint64_t addr) "0x%"PRIx64 >> +# hw/mem/memory-device.c >> +memory_device_pre_assign_address(uint64_t addr) "0x%"PRIx64 >> +memory_device_assign_address(uint64_t addr) "0x%"PRIx64 >> +memory_device_unassign_address(uint64_t addr) "0x%"PRIx64 > In case we use several memory devices, wouldn't it make sense to pass > the mr name or id as well to uniquely identify the device? > > nit: For debugging purpose it would look simpler to me to use the > original function name for the associated trace (all the more so there > is a single trace within) than the "assign_address" naming. > Both points make sense. I guess I'll move this patch behind "memory-device: add class function get_device_id()", so I can directly use get_device_id(). Thanks! > Thanks > > Eric >> -- Thanks, David / dhildenb