Skip to contentSkip to conversation

tools: xenalyze: kill spurious sched_switch output in non dump mode.

PATCH In review Dario Faggioli 2 participants 2 messages Aug 4, 2016 – Aug 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: xenalyze: kill spurious sched_switch output in non dump mode.

In fact, 52cf096df7 ("xenalyze: handle scheduling event"), when dealing with TRC_SCHED_SWITCH, forgot to check whether we actually are in dump mode, causing the printf() in dump_sched_switch() to always produce its output, which is not what we want.

---
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>

---
 tools/xentrace/xenalyze.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/xentrace/xenalyze.c +2 -1
index d223de6..3d06e45 100644
@@ -7629,7 +7629,8 @@ void sched_process(struct pcpu_info *p)
             }
             break;
         case TRC_SCHED_SWITCH:
-            dump_sched_switch(ri);
+            if(opt.dump_all)
+                dump_sched_switch(ri);
             break;
         case TRC_SCHED_SWITCH_INFPREV:
             if(opt.dump_all) {

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Dario Faggioli

In fact, 52cf096df7 ("xenalyze: handle scheduling event"), when dealing with TRC_SCHED_SWITCH, forgot to check whether we actually are in dump mode, causing the printf() in dump_sched_switch() to always produce its output, which is not what we want.

And queued.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel