From patchwork Sun Sep 10 16:11:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Llu=C3=ADs_Vilanova?= X-Patchwork-Id: 812158 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xqwzy0tKsz9s7c for ; Mon, 11 Sep 2017 02:11:51 +1000 (AEST) Received: from localhost ([::1]:53529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr4po-0002SG-96 for incoming@patchwork.ozlabs.org; Sun, 10 Sep 2017 12:11:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr4pQ-0002S1-8W for qemu-devel@nongnu.org; Sun, 10 Sep 2017 12:11:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dr4pL-0008Ix-Ag for qemu-devel@nongnu.org; Sun, 10 Sep 2017 12:11:24 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:54972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr4pK-0008IZ-Vn for qemu-devel@nongnu.org; Sun, 10 Sep 2017 12:11:19 -0400 Received: from correu-1.ac.upc.es (correu-1.ac.upc.es [147.83.30.91]) by roura.ac.upc.es (8.13.8/8.13.8) with ESMTP id v8AGBEQK020201; Sun, 10 Sep 2017 18:11:14 +0200 Received: from localhost (unknown [132.68.137.153]) by correu-1.ac.upc.es (Postfix) with ESMTPSA id D3D50149; Sun, 10 Sep 2017 18:11:08 +0200 (CEST) From: =?utf-8?b?TGx1w61z?= Vilanova To: qemu-devel@nongnu.org Date: Sun, 10 Sep 2017 19:11:07 +0300 Message-Id: <150505986682.19604.11937392314067517230.stgit@frigg.lan> X-Mailer: git-send-email 2.14.1 User-Agent: StGit/0.18 MIME-Version: 1.0 X-MIME-Autoconverted: from 8bit to quoted-printable by roura.ac.upc.es id v8AGBEQK020201 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 147.83.33.10 Subject: [Qemu-devel] [PATCH 0/7] trace: Add guest code events X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Hajnoczi Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Adds events to trace guest code execution. Events with additional info are disabled by default to minimize overheads, since that additional information might not be necessarily needed. Signed-off-by: Lluís Vilanova --- Lluís Vilanova (7): trace: Add event "guest_bbl_before" trace: Add event "guest_inst_before" trace: Add event "guest_inst_info_before" tcg: Add support for "inlining" regions of code trace: Add event "guest_bbl_after" trace: Add event "guest_inst_after" trace: Add event "guest_inst_info_after" accel/tcg/translator.c | 104 ++++++++++++++++++++++++++++ include/exec/translator.h | 22 ++++++ include/qemu/log.h | 1 include/qemu/typedefs.h | 1 tcg/tcg-op.c | 2 + tcg/tcg-op.h | 40 +++++++++++ tcg/tcg-opc.h | 3 + tcg/tcg.c | 166 +++++++++++++++++++++++++++++++++++++++++++++ tcg/tcg.h | 23 ++++++ trace-events | 55 +++++++++++++++ util/log.c | 2 + 11 files changed, 418 insertions(+), 1 deletion(-) To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi