switching: turn on profiling after a switch if there's an event
switching: turn on profiling after a switch if there's an event

--HG--
extra : convert_revision : 689e5b85c47bb2aaceb7eb38c2a24a2e5b69376c

gem5/gem5,austinharris/gem5-riscv,zlfben/gem5,KuroeKurose/gem5,Weil0ng/gem5,markoshorro/gem5,powerjg/gem5-ci-test,gedare/gem5,yb-kim/gemV,powerjg/gem5-ci-test,powerjg/gem5-ci-test,briancoutinho0905/2dsampling,aclifton/cpeg853-gem5,markoshorro/gem5,sobercoder/gem5,qizenguf/MLC-STT,kaiyuanl/gem5,gem5/gem5,rjschof/gem5,joerocklin/gem5,HwisooSo/gemV-update,markoshorro/gem5,cancro7/gem5,HwisooSo/gemV-update,yb-kim/gemV,joerocklin/gem5,KuroeKurose/gem5,aclifton/cpeg853-gem5,TUD-OS/gem5-dtu,gem5/gem5,sobercoder/gem5,aclifton/cpeg853-gem5,aclifton/cpeg853-gem5,KuroeKurose/gem5,TUD-OS/gem5-dtu,gem5/gem5,HwisooSo/gemV-update,kaiyuanl/gem5,gedare/gem5,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,sobercoder/gem5,sobercoder/gem5,gem5/gem5,kaiyuanl/gem5,gedare/gem5,powerjg/gem5-ci-test,samueldotj/TeeRISC-Simulator,KuroeKurose/gem5,TUD-OS/gem5-dtu,gedare/gem5,cancro7/gem5,SanchayanMaity/gem5,HwisooSo/gemV-update,samueldotj/TeeRISC-Simulator,aclifton/cpeg853-gem5,Weil0ng/gem5,kaiyuanl/gem5,Weil0ng/gem5,TUD-OS/gem5-dtu,Weil0ng/gem5,zlfben/gem5,rallylee/gem5,KuroeKurose/gem5,rallylee/gem5,joerocklin/gem5,qizenguf/MLC-STT,gedare/gem5,rjschof/gem5,austinharris/gem5-riscv,gem5/gem5,joerocklin/gem5,rallylee/gem5,Weil0ng/gem5,joerocklin/gem5,kaiyuanl/gem5,qizenguf/MLC-STT,samueldotj/TeeRISC-Simulator,KuroeKurose/gem5,SanchayanMaity/gem5,aclifton/cpeg853-gem5,yb-kim/gemV,samueldotj/TeeRISC-Simulator,sobercoder/gem5,austinharris/gem5-riscv,HwisooSo/gemV-update,SanchayanMaity/gem5,briancoutinho0905/2dsampling,kaiyuanl/gem5,austinharris/gem5-riscv,zlfben/gem5,rallylee/gem5,austinharris/gem5-riscv,zlfben/gem5,powerjg/gem5-ci-test,Weil0ng/gem5,qizenguf/MLC-STT,cancro7/gem5,sobercoder/gem5,zlfben/gem5,cancro7/gem5,joerocklin/gem5,yb-kim/gemV,samueldotj/TeeRISC-Simulator,qizenguf/MLC-STT,gem5/gem5,briancoutinho0905/2dsampling,yb-kim/gemV,gedare/gem5,kaiyuanl/gem5,joerocklin/gem5,rjschof/gem5,briancoutinho0905/2dsampling,SanchayanMaity/gem5,SanchayanMaity/gem5,cancro7/gem5,HwisooSo/gemV-update,SanchayanMaity/gem5,yb-kim/gemV,HwisooSo/gemV-update,cancro7/gem5,briancoutinho0905/2dsampling,Weil0ng/gem5,markoshorro/gem5,rjschof/gem5,SanchayanMaity/gem5,KuroeKurose/gem5,aclifton/cpeg853-gem5,briancoutinho0905/2dsampling,rallylee/gem5,rallylee/gem5,markoshorro/gem5,yb-kim/gemV,gedare/gem5,samueldotj/TeeRISC-Simulator,powerjg/gem5-ci-test,qizenguf/MLC-STT,rallylee/gem5,TUD-OS/gem5-dtu,sobercoder/gem5,zlfben/gem5,markoshorro/gem5,yb-kim/gemV,zlfben/gem5,markoshorro/gem5,austinharris/gem5-riscv,rjschof/gem5,samueldotj/TeeRISC-Simulator,austinharris/gem5-riscv,joerocklin/gem5,rjschof/gem5,briancoutinho0905/2dsampling,qizenguf/MLC-STT,cancro7/gem5,powerjg/gem5-ci-test,rjschof/gem5