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:
Dario Faggioli authored and George Dunlap committed 2016-08-08 10:40:38 +01:00
1 parent 7fb0a87d97
commit 72798298c7
1 file changed
+2 -1
+2 -1
View File
@@ -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) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.