base: Use M5_UNLIKELY with conditional DPRINTF family functions.
authorGabe Black <gabeblack@google.com>
Fri, 18 Sep 2020 03:50:27 +0000 (20:50 -0700)
committerGabe Black <gabeblack@google.com>
Sun, 20 Sep 2020 01:03:39 +0000 (01:03 +0000)
commitc8cde1fefa341af95bc6aa66d5a4f82261d7c002
tree452d15c4922b6f955aff140b438b01021b0ed5b6
parent89ffa84de61a084d8972d7ead7685430b4426c0e
base: Use M5_UNLIKELY with conditional DPRINTF family functions.

Most DPRINTFs will be skipped over most of the time, and when they
aren't they'll already have overhead from string handling, output to the
console and/or a file, etc, which will drown out the behavior of a
branch.

Change-Id: I5475d7b5add63b44f60c0a1d46b4b14e6bf30fd3
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34818
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/trace.hh