From patchwork Thu Aug 29 16:47:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vandersonmr X-Patchwork-Id: 1155386 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=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GCSO46mq"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46K7v9349Pz9s4Y for ; Fri, 30 Aug 2019 02:52:21 +1000 (AEST) Received: from localhost ([::1]:52060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3Nek-0001w1-Jw for incoming@patchwork.ozlabs.org; Thu, 29 Aug 2019 12:52:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46544) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3Nb3-0006P8-EH for qemu-devel@nongnu.org; Thu, 29 Aug 2019 12:48:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3Nb2-0006LB-2R for qemu-devel@nongnu.org; Thu, 29 Aug 2019 12:48:29 -0400 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]:40618) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3Nb1-0006Kt-Ul for qemu-devel@nongnu.org; Thu, 29 Aug 2019 12:48:28 -0400 Received: by mail-qk1-x743.google.com with SMTP id f10so3549724qkg.7 for ; Thu, 29 Aug 2019 09:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=trBE4Pt415G810pTzI+AXLcczqBsJRYpVn3faZnlzM8=; b=GCSO46mq6c15ABLizl3xQsHquZ5Ga1dApzRydZweXqbbKxhRQ0Az5n1IvRTWwse8yC gzRYq43ltBJbbd1XLcmTj5YYpXZedVy+dZiERtbzjtuYPZO6gvGNTaOUDpTGNxTvj2OH ERnbkKIHpKYOsCnCb6SyJvCg+tSJBv3wA8KNDoj5Jymg+52CFQ7KBMHX9slkplwSUYH1 0Wtt6LpNat2L5P8umU1Bq3DAF2IOz+equgMOOXEhKqGt59ADkzbvnNEQYjo6muZLsmX9 R7W4M9L9nCwb/KoJejIMYUQZzwDyju4QMtbCChIpbFAUIPbgiRVoSLQVfBRuJSHwuRUh /MKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=trBE4Pt415G810pTzI+AXLcczqBsJRYpVn3faZnlzM8=; b=WmLByhZHh76Jj9PnqUTJHNYbxcqRnCOaYqG9dR7/yuo3qBnRBv5t5l1LzueZyI0zcV q7DqtkTBSLxYAXkRHBEC/WeK5yqod5ypEt0XKVw7GpbtyLo2I/WL4Rb3R0TNQQ+79JeG Qq0GmOWZWcm+Ih1R+PYOno6BoI0LFP2lDlKx4idS61BFFT1abkjzfguToVXDOUbuIK2L TeH6F/5efrSXzzEvON1uYqCyv3kNybGTelllOwsM7v2Kfus4BkHbvqnz7j20vjcANDwQ s5tl9qw0BGJl+9Fni3bTbV014yWfUQ2gD8pu31AtZRN1I7I1+3a0L4XY2NuSsrnYrmGa iM5g== X-Gm-Message-State: APjAAAXNWWDY1udJ+U9TZryHGIEAGB8RjbB4xrpP6CrwSiGsmJBRPsHE 9N8mgssSpPqn3zDeiUZwX75NB5151bV1/A== X-Google-Smtp-Source: APXvYqy3MXTB1DoDAbzh3Fl0KWrzDlda0jzcoPivskf6UlkUaem1EpWsOQoYutsLbYOjcvEOX9A8hg== X-Received: by 2002:a37:98f:: with SMTP id 137mr10623316qkj.188.1567097307093; Thu, 29 Aug 2019 09:48:27 -0700 (PDT) Received: from vanderson-lmcad.gw.lmcad.ic.unicamp.br (gw.lmcad.ic.unicamp.br. [143.106.73.166]) by smtp.googlemail.com with ESMTPSA id g25sm1441024qkk.87.2019.08.29.09.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 09:48:26 -0700 (PDT) From: vandersonmr To: qemu-devel@nongnu.org Date: Thu, 29 Aug 2019 13:47:51 -0300 Message-Id: <20190829164754.3906-8-vandersonmr2@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190829164754.3906-1-vandersonmr2@gmail.com> References: <20190829164754.3906-1-vandersonmr2@gmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::743 Subject: [Qemu-devel] [PATCH v7 07/10] Adding tb_stats [start|pause|stop|filter] command to hmp. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: vandersonmr , "Dr . David Alan Gilbert" , Markus Armbruster Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This allows controlling the collection of statistics. It is also possible to set the level of collection: all, jit, or exec. tb_stats filter allow to only collect statistics for the TB in the last_search list. The goal of this command is to allow the dynamic exploration of the TCG behavior and quality. Therefore, for now, a corresponding QMP command is not worthwhile. Acked-by: Dr. David Alan Gilbert Signed-off-by: Vanderson M. do Rosario --- monitor/misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monitor/misc.c b/monitor/misc.c index b389ca09a1..218263d29a 100644 --- a/monitor/misc.c +++ b/monitor/misc.c @@ -74,6 +74,8 @@ #include "sysemu/cpus.h" #include "qemu/cutils.h" #include "tcg/tcg.h" +#include "exec/tb-stats.h" +#include "qemu-common.h" #if defined(TARGET_S390X) #include "hw/s390x/storage-keys.h"