intel/aub_write: log mmio writes
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 25 Aug 2018 00:40:29 +0000 (01:40 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 7 Mar 2019 15:08:32 +0000 (15:08 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/tools/aub_write.c

index 02ce2d780e9ebb45fb6afc8eefe256c1de138f4e..e2f83fd2311c64dd07ab00b5625b234c498fc491 100644 (file)
@@ -238,6 +238,11 @@ register_write_out(struct aub_file *aub, uint32_t addr, uint32_t value)
 {
    uint32_t dwords = 1;
 
+   if (aub->verbose_log_file) {
+      fprintf(aub->verbose_log_file,
+              "  MMIO WRITE (0x%08x = 0x%08x)\n", addr, value);
+   }
+
    dword_out(aub, CMD_MEM_TRACE_REGISTER_WRITE | (5 + dwords - 1));
    dword_out(aub, addr);
    dword_out(aub, AUB_MEM_TRACE_REGISTER_SIZE_DWORD |