qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 5a68be: trace: include CPU index in trace_mem


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 5a68be: trace: include CPU index in trace_memory_region_*(...
Date: Mon, 14 Mar 2016 10:00:05 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 5a68be94ac12472eb49fa267de9fb12168224298
      
https://github.com/qemu/qemu/commit/5a68be94ac12472eb49fa267de9fb12168224298
  Author: Hollis Blanchard <address@hidden>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M memory.c
    M trace-events

  Log Message:
  -----------
  trace: include CPU index in trace_memory_region_*()

Knowing which CPU performed an action is essential for understanding SMP guest
behavior.

However, cpu_physical_memory_rw() may be executed by a machine init function,
before any VCPUs are running, when there is no CPU running ('current_cpu' is
NULL). In this case, store -1 in the trace record as the CPU index. Trace
analysis tools may need to be aware of this special case.

Signed-off-by: Hollis Blanchard <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: f2d089425d43735b5369f70f3a36b712440578e5
      
https://github.com/qemu/qemu/commit/f2d089425d43735b5369f70f3a36b712440578e5
  Author: Hollis Blanchard <address@hidden>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M memory.c
    M trace-events

  Log Message:
  -----------
  trace: separate MMIO tracepoints from TB-access tracepoints

Memory accesses to code which has previously been translated into a TB show up
in the MMIO path, so that they may invalidate the TB. It's extremely confusing
to mix those in with device MMIOs, so split them into their own tracepoint.

Signed-off-by: Hollis Blanchard <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 618a5a8bc52ba0f2ecbb3dffd01e657f4d841f75
      
https://github.com/qemu/qemu/commit/618a5a8bc52ba0f2ecbb3dffd01e657f4d841f75
  Author: Peter Maydell <address@hidden>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M memory.c
    M trace-events

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' 
into staging

# gpg: Signature made Mon 14 Mar 2016 11:27:01 GMT using RSA key ID 81AB73C8
# gpg: Good signature from "Stefan Hajnoczi <address@hidden>"
# gpg:                 aka "Stefan Hajnoczi <address@hidden>"

* remotes/stefanha/tags/tracing-pull-request:
  trace: separate MMIO tracepoints from TB-access tracepoints
  trace: include CPU index in trace_memory_region_*()

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/6dcea614251e...618a5a8bc52b

reply via email to

[Prev in Thread] Current Thread [Next in Thread]