From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSqdY-0007dx-TT for qemu-devel@nongnu.org; Mon, 08 Feb 2016 13:34:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSqdV-0006gQ-Jk for qemu-devel@nongnu.org; Mon, 08 Feb 2016 13:34:12 -0500 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:37970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSqdV-0006gM-DG for qemu-devel@nongnu.org; Mon, 08 Feb 2016 13:34:09 -0500 Received: by mail-wm0-x22d.google.com with SMTP id p63so128220630wmp.1 for ; Mon, 08 Feb 2016 10:34:09 -0800 (PST) References: <5696D9FE.9060409@mentor.com> <87oabrw06k.fsf@linaro.org> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <87oabrw06k.fsf@linaro.org> Date: Mon, 08 Feb 2016 18:34:06 +0000 Message-ID: <87mvrbvyox.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 Alex Bennée writes: > 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. OK ignore me, that commit breaks "make check" but not while spamming the trace-files. That must be later in my tree. -- Alex Bennée