From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dagRQ-0004cC-1I for qemu-devel@nongnu.org; Thu, 27 Jul 2017 06:54:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dagRP-0004Tw-BF for qemu-devel@nongnu.org; Thu, 27 Jul 2017 06:54:52 -0400 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:34964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dagRP-0004Sv-1q for qemu-devel@nongnu.org; Thu, 27 Jul 2017 06:54:51 -0400 Received: by mail-wm0-x22a.google.com with SMTP id c184so101629791wmd.0 for ; Thu, 27 Jul 2017 03:54:50 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170727104302.GI2555@redhat.com> References: <150091574424.30739.4131793221953168474.stgit@frigg.lan> <20170725131931.GC23343@stefanha-x1.localdomain> <20170726112633.GE18489@stefanha-x1.localdomain> <20170727104302.GI2555@redhat.com> From: Peter Maydell Date: Thu, 27 Jul 2017 11:54:29 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PATCH 00/13] instrument: Add basic event instrumentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Stefan Hajnoczi , Stefan Hajnoczi , "Emilio G. Cota" , =?UTF-8?Q?Llu=C3=ADs_Vilanova?= , QEMU Developers On 27 July 2017 at 11:43, Daniel P. Berrange wrote: > Maybe I'm missing something, but aren't all these things > already possible via either the statically defined tracepoints > QEMU exposes, or by placing dynamic tracepoints on arbitrary > code locations using dtrace/systemtap/lttng-ust. Last time I looked we didn't have tracepoints on most of the events you'd be interested in. That said, yes, I was going to ask if we could do this via leveraging the tracepoint infrastructure and whatever scripting facilities it provides. Are there any good worked examples of this sort of thing? Can you do it as an ordinary non-root user? thanks -- PMM