plugins: expand the bb plugin to be thread safe and track per-cpu
commit406b53c9ca669b8551d4cde27f2cde03135d0d1d
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 13 Jul 2020 20:04:11 +0000 (13 21:04 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 15 Jul 2020 10:52:43 +0000 (15 11:52 +0100)
tree031dacf7fe9f20ff09b875ce3d350f77080da62b
parent2f3a57ee47df970d19fa5b324d44aab857d43517
plugins: expand the bb plugin to be thread safe and track per-cpu

While there isn't any easy way to make the inline counts thread safe
we can ensure the callback based ones are. While we are at it we can
reduce introduce a new option ("idle") to dump a report of the current
bb and insn count each time a vCPU enters the idle state.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Robert Foley <robert.foley@linaro.org>
Cc: Dave Bort <dbort@dbort.com>
Message-Id: <20200713200415.26214-8-alex.bennee@linaro.org>
tests/plugin/bb.c