From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSq8R-0000KZ-2f for qemu-devel@nongnu.org; Mon, 08 Feb 2016 13:02:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSq8M-0005GC-Fa for qemu-devel@nongnu.org; Mon, 08 Feb 2016 13:02:03 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:33045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSq8M-0005G0-9c for qemu-devel@nongnu.org; Mon, 08 Feb 2016 13:01:58 -0500 Received: by mail-wm0-x236.google.com with SMTP id g62so143782401wme.0 for ; Mon, 08 Feb 2016 10:01:57 -0800 (PST) References: <5696D9FE.9060409@mentor.com> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <5696D9FE.9060409@mentor.com> Date: Mon, 08 Feb 2016 18:01:55 +0000 Message-ID: <87oabrw06k.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] trace: timestamps, core IDs, and file creation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hollis Blanchard Cc: Stefan Hajnoczi , QEMU Developers Hollis Blanchard writes: > Hi Stefan, I've been starting to use qemu tracing and found it quite > useful. I have a couple comments about the trace events in general: > > Right now, the simple tracepoint backend creates a trace file even when > no events are active and no -trace options are present. Compounding the > situation, omitting "-trace file=foo" results in the directory being > littered with trace-NNNN files... could we create the file only when > tracing is activated? And maybe with a more predictable name? Yeah I've run into trouble when running "make check" with the simple backend enabled. I'm not sure exactly what mechanism breaks the test but it seems to me an invocation like: ./x86_64-softmmu/qemu-system-x86_64 -qtest unix:/tmp/qtest-9458.sock,nowait -qtest-log /dev/null -qmp unix:/tmp/qtest-9458.qmp,nowait -machine accel=qtest -display none -M pc -device pc-testdev Shouldn't be generating anything unless an explicit file is set. AFAICT 41fc57e44ed64cd4ab5393d83624afd897dabd4f is triggering the default file behaviour. I'm still digging into this. -- Alex Bennée