sim: Add a listener checker to probes
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Tue, 1 Dec 2020 14:24:56 +0000 (15:24 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Wed, 16 Dec 2020 12:13:05 +0000 (12:13 +0000)
commit9388ec18a40c2fc4467f5599daad4970e565016b
tree588816d49dfa62234388f910c17655cacf6e035c
parent275a6ecefe81c8aaf7681c59d51a393f0cac16f6
sim: Add a listener checker to probes

Add a function to check if a probe has listeners. This can be
used to avoid performing costly tasks when no one is listening.

Change-Id: I8996a0ea298cb7cf97ac8aa9e627331a22bea26e
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38175
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/sim/probe/probe.hh