WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xen pm trace utility cleanup

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xen pm trace utility cleanup
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Aug 2009 07:40:25 -0700
Delivery-date: Wed, 19 Aug 2009 07:41:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1250684261 -3600
# Node ID 902f4ae65123813aaf660d3b8cf81eb5ba0fa6ff
# Parent  9001528d987e1627b37d722af0427e9679ec2300
xen pm trace utility cleanup

xenpm trace utility gtraceview cleanup

- add gtraceview help info on how to get raw data by xentrace
- make trace_exit_reason compiled in non-debug mode. trace_exit_reason
  can be enable/disabled by xentrace at runtime, so no need to disable
  it at build time.

Signed-off-by: Yu Ke <ke.yu@xxxxxxxxx>
---
 tools/misc/gtracestat.c      |    2 +-
 tools/misc/gtraceview.c      |    3 ++-
 xen/arch/x86/acpi/cpu_idle.c |    2 --
 3 files changed, 3 insertions(+), 4 deletions(-)

diff -r 9001528d987e -r 902f4ae65123 tools/misc/gtracestat.c
--- a/tools/misc/gtracestat.c   Wed Aug 19 13:16:50 2009 +0100
+++ b/tools/misc/gtracestat.c   Wed Aug 19 13:17:41 2009 +0100
@@ -442,7 +442,7 @@ void show_help(void)
 {
     show_version();
     printf("tracestat <trace.data> [-vhdselbcmau]\n");
-    printf("  trace.data       raw data from xentrace\n");
+    printf("  trace.data       raw data got by 'xentrace -e 0x80f000 
trace.dat'\n");
     printf("  -v / --version   show version message\n");
     printf("  -h / --help      show this message\n");
     printf("  -d / --digest    digest mode, more variables to specify.\n");
diff -r 9001528d987e -r 902f4ae65123 tools/misc/gtraceview.c
--- a/tools/misc/gtraceview.c   Wed Aug 19 13:16:50 2009 +0100
+++ b/tools/misc/gtraceview.c   Wed Aug 19 13:17:41 2009 +0100
@@ -542,7 +542,8 @@ void show_help(void)
 {
     show_version();
     printf("gtraceview <trace.data> [--version] [--help]\n");
-    printf("  trace.data   raw data from xentrace\n");
+    printf("  trace.data   raw data got by "
+           "'xentrace -e 0x80f000 trace.dat'\n");
     printf("  --version    show version information\n");
     printf("  --help       show this message\n");
     printf("For more help messages, please press 'h' in the window\n");
diff -r 9001528d987e -r 902f4ae65123 xen/arch/x86/acpi/cpu_idle.c
--- a/xen/arch/x86/acpi/cpu_idle.c      Wed Aug 19 13:16:50 2009 +0100
+++ b/xen/arch/x86/acpi/cpu_idle.c      Wed Aug 19 13:17:41 2009 +0100
@@ -198,7 +198,6 @@ static struct {
 
 static inline void trace_exit_reason(u32 *irq_traced)
 {
-#ifdef DEBUG
     if ( unlikely(tb_init_done) )
     {
         int i, curbit;
@@ -215,7 +214,6 @@ static inline void trace_exit_reason(u32
             curbit = find_next_bit((const unsigned long *)irr_status, 256, 
curbit + 1);
         }
     }
-#endif
 }
 
 static void acpi_processor_idle(void)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xen pm trace utility cleanup, Xen patchbot-unstable <=