Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB617C433E0 for ; Mon, 25 Jan 2021 19:52:42 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E685E206D4 for ; Mon, 25 Jan 2021 19:52:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E685E206D4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=eik.bme.hu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:45070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l47ui-0002md-Ie for qemu-devel@archiver.kernel.org; Mon, 25 Jan 2021 14:52:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l47sj-0001V8-7k for qemu-devel@nongnu.org; Mon, 25 Jan 2021 14:50:37 -0500 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]:60058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l47se-0005Az-0y for qemu-devel@nongnu.org; Mon, 25 Jan 2021 14:50:36 -0500 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 66E38746395; Mon, 25 Jan 2021 20:50:23 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 397F174632F; Mon, 25 Jan 2021 20:50:23 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 37A0D746358; Mon, 25 Jan 2021 20:50:23 +0100 (CET) Date: Mon, 25 Jan 2021 20:50:23 +0100 (CET) From: BALATON Zoltan To: Stefan Hajnoczi Subject: Re: [PATCH 0/2] trace: make the 'log' backend timestamp configurable In-Reply-To: <20210125113507.224287-1-stefanha@redhat.com> Message-ID: References: <20210125113507.224287-1-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=2001:738:2001:2001::2001; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Daniel Berrange , qemu-devel@nongnu.org, Markus Armbruster Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Mon, 25 Jan 2021, Stefan Hajnoczi wrote: > Zoltan reminded me that the 'log' backend prints tids/timestamps and this can > be unwanted in some cases. It's easier to look at trace output without them and > in some cases parsing is also more convenient with them. > > Extend -msg timestamp=on|off to control the 'log' backend's tid/timestamp output. Thank you, this works for me Tested-by: BALATON Zoltan but I had to remove build dir and rerun configure to get it omit timestamps. Just running make (which reruns configure) or make distclean and running configure does not seem to be enough to pick up some changes since the meson conversion. (I had similar problem with gtk being detected and used despite having --disable-gtk on configure before the gtk test was moved to meson; so I think there's some problem detecting changes in configure options somewhere. That was also fixed by rerunning configure after starting from clean build dir but did not work when keeping old build dir or make distclean. This is probably not a problem for someone downloading the sources and compiling it once, only annoying for developers who build it all the time.) Regards, BALATON Zoltan > Stefan Hajnoczi (2): > error: rename error_with_timestamp to message_with_timestamp > trace: make the 'log' backend timestamp configurable > > docs/devel/tracing.txt | 3 +++ > include/qemu/error-report.h | 2 +- > softmmu/vl.c | 2 +- > util/qemu-error.c | 4 ++-- > scripts/tracetool/backend/log.py | 19 +++++++++++++------ > 5 files changed, 20 insertions(+), 10 deletions(-)