[Top][All Lists]

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

[Qemu-devel] Where to log xen_platform_log data

From: Stefan Hajnoczi
Subject: [Qemu-devel] Where to log xen_platform_log data
Date: Sat, 3 Sep 2011 15:28:34 +0100

Hi Steven,
The Xen platform PCI device has a logging feature that is currently
implemented using trace_xen_platform_log(s->log_buffer).  String
arguments may not be supported by all trace backends so they should be
avoided.  For example, the simple trace backend logs 8-byte arguments
and therefore cannot log strings - it will simply log the char *
pointer value, not the actual log message.  Here is what
docs/tracing.txt says:

   Pointers (including char *) cannot be dereferenced easily (or at all) in
   some trace backends.  If pointers are used, ensure they are meaningful by
   themselves and do not assume the data they point to will be traced.  Do
   not pass in string arguments.

Is there a better place to send the log output?


reply via email to

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