From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwxJz-0003yQ-4c for qemu-devel@nongnu.org; Tue, 17 Jun 2014 13:37:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwxJr-0003Mn-KZ for qemu-devel@nongnu.org; Tue, 17 Jun 2014 13:37:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwxJr-0003MY-5J for qemu-devel@nongnu.org; Tue, 17 Jun 2014 13:37:15 -0400 Date: Tue, 17 Jun 2014 20:37:36 +0300 From: "Michael S. Tsirkin" Message-ID: <1403021756-15960-23-git-send-email-mst@redhat.com> References: <1403021756-15960-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1403021756-15960-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 022/103] trace: pc: add PC_DIMM slot & address allocation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Anthony Liguori , Alexey Kardashevskiy , Gerd Hoffmann , Stefan Hajnoczi , Igor Mammedov , Paolo Bonzini From: Igor Mammedov Add mhp_pc_dimm_assigned_slot & mhp_pc_dimm_assigned_address events to trace which address and slot where assigned to plugged in PC_DIMM device on target-i386 machine. Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/pc.c | 3 +++ trace-events | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index ece551d..538a8db 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -59,6 +59,7 @@ #include "hw/pci/pci_host.h" #include "acpi-build.h" #include "hw/mem/pc-dimm.h" +#include "trace.h" /* debug PC/ISA interrupts */ //#define DEBUG_IRQ @@ -1576,6 +1577,7 @@ static void pc_dimm_plug(HotplugHandler *hotplug_dev, if (local_err) { goto out; } + trace_mhp_pc_dimm_assigned_address(addr); slot = object_property_get_int(OBJECT(dev), PC_DIMM_SLOT_PROP, &local_err); if (local_err) { @@ -1591,6 +1593,7 @@ static void pc_dimm_plug(HotplugHandler *hotplug_dev, if (local_err) { goto out; } + trace_mhp_pc_dimm_assigned_slot(slot); memory_region_add_subregion(&pcms->hotplug_memory, addr - pcms->hotplug_memory_base, mr); diff --git a/trace-events b/trace-events index 3b9c110..90e1dea 100644 --- a/trace-events +++ b/trace-events @@ -1271,3 +1271,7 @@ mhp_acpi_write_slot(uint32_t slot) "set active slot: 0x%"PRIx32 mhp_acpi_write_ost_ev(uint32_t slot, uint32_t ev) "slot[0x%"PRIx32"] OST EVENT: 0x%"PRIx32 mhp_acpi_write_ost_status(uint32_t slot, uint32_t st) "slot[0x%"PRIx32"] OST STATUS: 0x%"PRIx32 mhp_acpi_clear_insert_evt(uint32_t slot) "slot[0x%"PRIx32"] clear insert event" + +#hw/i386/pc.c +mhp_pc_dimm_assigned_slot(int slot) "0x%d" +mhp_pc_dimm_assigned_address(uint64_t addr) "0x%"PRIx64 -- MST