mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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.
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
This commit is contained in:
1 parent
7fb0a87d97
commit
72798298c7
1 file changed
+2
-1
@@ -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) {
|
||||
|
||||