Received: from eggs.gnu.org ([2001:4830:134:3::10]:43071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eg0t3-00070Y-Jd for qemu-devel@nongnu.org; Sun, 28 Jan 2018 23:17:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eg0t2-0005Gm-PI for qemu-devel@nongnu.org; Sun, 28 Jan 2018 23:17:41 -0500 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:35996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eg0t2-0005G9-He for qemu-devel@nongnu.org; Sun, 28 Jan 2018 23:17:40 -0500 Received: by mail-lf0-x244.google.com with SMTP id t79so7932923lfe.3 for ; Sun, 28 Jan 2018 20:17:40 -0800 (PST) From: Jon Emil Jahren Date: Mon, 29 Jan 2018 05:16:48 +0100 Message-Id: <20180129041648.30884-3-jonemilj@gmail.com> In-Reply-To: <20180129041648.30884-1-jonemilj@gmail.com> References: <20180129041648.30884-1-jonemilj@gmail.com> Subject: [Qemu-devel] [PATCH 2/2] tracetool: For ust trace bool type as ctf_integer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Jon Emil Jahren Previously functions having arguments of type bool was not traced properly. The bool arguments were missing from the trace. Signed-off-by: Jon Emil Jahren --- scripts/tracetool/format/ust_events_h.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tracetool/format/ust_events_h.py b/scripts/tracetool/format/ust_events_h.py index 514294c2cc..4e95e9b3f9 100644 --- a/scripts/tracetool/format/ust_events_h.py +++ b/scripts/tracetool/format/ust_events_h.py @@ -79,7 +79,8 @@ def generate(events, backend, group): out(' ctf_integer_hex('+ t + ', ' + n + ', ' + n + ')') elif ("ptr" in t) or ("*" in t): out(' ctf_integer_hex('+ t + ', ' + n + ', ' + n + ')') - elif ('int' in t) or ('long' in t) or ('unsigned' in t) or ('size_t' in t): + elif ('int' in t) or ('long' in t) or ('unsigned' in t) \ + or ('size_t' in t) or ('bool' in t): out(' ctf_integer(' + t + ', ' + n + ', ' + n + ')') elif ('double' in t) or ('float' in t): out(' ctf_float(' + t + ', ' + n + ', ' + n + ')') -- 2.14.3