OSDN Git Service

simpletrace: define exception and add handling
authorMads Ynddal <m.ynddal@samsung.com>
Tue, 26 Sep 2023 10:34:29 +0000 (12:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 26 Sep 2023 16:28:51 +0000 (12:28 -0400)
commit1990fb98934d8e114ac73b0ca649bf4820ca896a
treeb48818a9120ed798211d43037a0b3556837dfdda
parentd1f9259014317baa3bce7db7d4c2e927341e3cae
simpletrace: define exception and add handling

Define `SimpleException` to differentiate our exceptions from generic
exceptions (IOError, etc.). Adapted simpletrace to support this and
output to stderr.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Mads Ynddal <m.ynddal@samsung.com>
Message-id: 20230926103436.25700-8-mads@ynddal.dk
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
scripts/simpletrace.py