From patchwork Mon Sep 19 12:55:13 2016 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: 9339365 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D2BE3607D0 for ; Mon, 19 Sep 2016 13:13:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4F1828CED for ; Mon, 19 Sep 2016 13:13:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9BF228EAE; Mon, 19 Sep 2016 13:13:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CC5EB28CED for ; Mon, 19 Sep 2016 13:13:52 +0000 (UTC) Received: from localhost ([::1]:55306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blyON-0003bt-UN for patchwork-qemu-devel@patchwork.kernel.org; Mon, 19 Sep 2016 09:13:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bly6j-0005lt-Pf for qemu-devel@nongnu.org; Mon, 19 Sep 2016 08:55:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bly6g-0002iq-FW for qemu-devel@nongnu.org; Mon, 19 Sep 2016 08:55:37 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:56966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bly6e-0002g6-24 for qemu-devel@nongnu.org; Mon, 19 Sep 2016 08:55:34 -0400 Received: from gw-3.ac.upc.es (gw-3.ac.upc.es [147.83.30.9]) by roura.ac.upc.es (8.13.8/8.13.8) with ESMTP id u8JCtDWC016553; Mon, 19 Sep 2016 14:55:13 +0200 Received: from localhost (unknown [84.88.51.85]) by gw-3.ac.upc.es (Postfix) with ESMTPSA id 6A7B418C; Mon, 19 Sep 2016 14:55:13 +0200 (CEST) From: =?utf-8?b?TGx1w61z?= Vilanova To: qemu-devel@nongnu.org Date: Mon, 19 Sep 2016 14:55:13 +0200 Message-Id: <147428971313.15111.18023030883528426840.stgit@fimbulvetr.bsc.es> X-Mailer: git-send-email 2.9.3 In-Reply-To: <147428970221.15111.18119365434664365867.stgit@fimbulvetr.bsc.es> References: <147428970221.15111.18119365434664365867.stgit@fimbulvetr.bsc.es> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-MIME-Autoconverted: from 8bit to quoted-printable by roura.ac.upc.es id u8JCtDWC016553 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 147.83.33.10 Subject: [Qemu-devel] [PATCH v3 2/3] trace: Add event "guest_cpu_enter" 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signals the hot-plugging of a new virtual (guest) CPU. Signed-off-by: LluĂ­s Vilanova --- trace-events | 8 ++++++++ trace/control-target.c | 3 +++ 2 files changed, 11 insertions(+) diff --git a/trace-events b/trace-events index 616cc52..16a1cb4 100644 --- a/trace-events +++ b/trace-events @@ -142,6 +142,14 @@ memory_region_tb_write(int cpu_index, uint64_t addr, uint64_t value, unsigned si ### Guest events, keep at bottom + +## vCPU + +# Hot-plug a new virtual (guest) CPU +# +# Targets: all +vcpu guest_cpu_enter(void) + # @vaddr: Access' virtual address. # @info : Access' information (see below). # diff --git a/trace/control-target.c b/trace/control-target.c index 3b7d99b..52fcce5 100644 --- a/trace/control-target.c +++ b/trace/control-target.c @@ -9,6 +9,7 @@ #include "qemu/osdep.h" #include "cpu.h" +#include "trace.h" #include "trace/control.h" #include "translate-all.h" @@ -117,4 +118,6 @@ void trace_init_vcpu(CPUState *vcpu) } } } + + trace_guest_cpu_enter(vcpu); }