qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] trace: timestamps, core IDs, and file creation
@ 2016-01-13 23:13 Hollis Blanchard
  2016-02-08 15:30 ` Stefan Hajnoczi
  2016-02-08 18:01 ` Alex Bennée
  0 siblings, 2 replies; 11+ messages in thread
From: Hollis Blanchard @ 2016-01-13 23:13 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: QEMU Developers

Hi Stefan, I've been starting to use qemu tracing and found it quite 
useful. I have a couple comments about the trace events in general:

The event timestamps are host time (get_clock()). I'm correlating qemu 
events with other logs (using icount), so host time is unhelpful. Could 
we use cpu_get_clock() instead? (Trace events are used in other tools 
like qemu-io, where guest time doesn't exist, and there we could 
continue to use get_clock().)

When trying to understand multi-core guest behavior, it's pretty 
important to know which core is performing the traced action (e.g. 
MMIO). Would it make sense to automatically embed the core index, like 
the timestamp, or do you think it should be encoded in each individual 
tracepoint?

Right now, the simple tracepoint backend creates a trace file even when 
no events are active and no -trace options are present. Compounding the 
situation, omitting "-trace file=foo" results in the directory being 
littered with trace-NNNN files... could we create the file only when 
tracing is activated? And maybe with a more predictable name?

-- 
Hollis Blanchard
Mentor Graphics Emulation Division

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-02-15 15:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-13 23:13 [Qemu-devel] trace: timestamps, core IDs, and file creation Hollis Blanchard
2016-02-08 15:30 ` Stefan Hajnoczi
2016-02-08 16:29   ` Lluís Vilanova
2016-02-08 18:51   ` [Qemu-devel] [PATCH] trace: only create simple backend trace files when an event is emitted Hollis Blanchard
2016-02-08 20:02     ` Alex Bennée
2016-02-15 15:52     ` Stefan Hajnoczi
2016-02-15 15:54     ` Stefan Hajnoczi
2016-02-08 19:59   ` [Qemu-devel] trace: timestamps, core IDs, and file creation Hollis Blanchard
2016-02-15 15:29     ` Stefan Hajnoczi
2016-02-08 18:01 ` Alex Bennée
2016-02-08 18:34   ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).