|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 03/17] xenpaging: print DPRINTF ouput if XENPAGING_DE
No DPRINTF output is logged because the default loglevel is to low in
libxc. Recognize the XENPAGING_DEBUG environment variable to change the
default loglevel at runtime.
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---
tools/xenpaging/xenpaging.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
--- xen-unstable.hg-4.1.22459.orig/tools/xenpaging/xenpaging.c
+++ xen-unstable.hg-4.1.22459/tools/xenpaging/xenpaging.c
@@ -39,12 +39,6 @@
#include "policy.h"
#include "xenpaging.h"
-
-#if 0
-#undef DPRINTF
-#define DPRINTF(...) ((void)0)
-#endif
-
static char filename[80];
static int interrupted;
static void close_handler(int sig)
@@ -83,9 +77,12 @@ xenpaging_t *xenpaging_init(xc_interface
{
xenpaging_t *paging;
xc_interface *xch;
+ xentoollog_logger *dbg = NULL;
int rc;
- xch = xc_interface_open(NULL, NULL, 0);
+ if ( getenv("XENPAGING_DEBUG") )
+ dbg = (xentoollog_logger *)xtl_createlogger_stdiostream(stderr,
XTL_DEBUG, 0);
+ xch = xc_interface_open(dbg, NULL, 0);
if ( !xch )
goto err_iface;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00/17] xenpaging changes for xen-unstable, Olaf Hering
- [Xen-devel] [PATCH 04/17] xenpaging: print number of evicted pages, Olaf Hering
- [Xen-devel] [PATCH 09/17] xenpaging: update machine_to_phys_mapping[] during page deallocation, Olaf Hering
- [Xen-devel] [PATCH 01/17] xenpaging: close xch handle in xenpaging_init error path, Olaf Hering
- [Xen-devel] [PATCH 02/17] xenpaging: remove perror usage in xenpaging_init error path, Olaf Hering
- [Xen-devel] [PATCH 03/17] xenpaging: print DPRINTF ouput if XENPAGING_DEBUG is in environment,
Olaf Hering <=
- [Xen-devel] [PATCH 06/17] xenpaging: do not use DPRINTF/ERROR if xch handle is unavailable, Olaf Hering
- [Xen-devel] [PATCH 14/17] xenpaging: prevent page-out of first 16MB, Olaf Hering
- [Xen-devel] [PATCH 08/17] xenpaging: make vcpu_sleep_nosync() optional in mem_event_check_ring(), Olaf Hering
- [Xen-devel] [PATCH 10/17] xenpaging: update machine_to_phys_mapping[] during page-in, Olaf Hering
- [Xen-devel] [PATCH 07/17] xenpaging: update xch usage, Olaf Hering
- [Xen-devel] [PATCH 05/17] xenpaging: remove duplicate xc_interface_close call, Olaf Hering
- [Xen-devel] [PATCH 13/17] xenpaging: page only pagetables for debugging, Olaf Hering
- [Xen-devel] [PATCH 11/17] xenpaging: drop paged pages in guest_remove_page, Olaf Hering
|
|
|
|
|