contrib/plugins: avoid hanging program
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 16 Sep 2024 08:54:00 +0000 (09:54 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 19 Sep 2024 14:58:01 +0000 (15:58 +0100)
commit8148fb56c753908fcc41d52846f9d8e6ae5f7daf
treed6422561f1eb640e15ac73d2b778cbab53546c31
parentf2505260b35e811ce1d85678eaf020ee1b59d2d0
contrib/plugins: avoid hanging program

Although we asks for instructions per second we work in quanta and
that cannot be 0. Fail to load the plugin instead and report the
minimum IPS we can handle.

Reported-by: Elisha Hollander <just4now666666@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20240916085400.1046925-19-alex.bennee@linaro.org>
contrib/plugins/ips.c