From patchwork Thu Aug 15 02:18:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vandersonmr X-Patchwork-Id: 1147351 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="PPigVSIv"; 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 4689bz07b4z9sND for ; Thu, 15 Aug 2019 12:38:07 +1000 (AEST) Received: from localhost ([::1]:37632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy5eO-0006BC-Ej for incoming@patchwork.ozlabs.org; Wed, 14 Aug 2019 22:38:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48710) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy5Mi-00012G-Um for qemu-devel@nongnu.org; Wed, 14 Aug 2019 22:19:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hy5Mh-0001xU-VT for qemu-devel@nongnu.org; Wed, 14 Aug 2019 22:19:48 -0400 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]:42814) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hy5Mh-0001wf-RY for qemu-devel@nongnu.org; Wed, 14 Aug 2019 22:19:47 -0400 Received: by mail-qt1-x841.google.com with SMTP id t12so904592qtp.9 for ; Wed, 14 Aug 2019 19:19:47 -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=xH2u0/l2SqxJvZU8OkINvq+WEc2i5lm3OL3evVav5e8=; b=PPigVSIvqqoUz+yKwIcmJpybQ2D2IxQ+eyIAXlsxj0q7rtVrAWBIH8wPb+ffMpJYoG 2MbR7TXa4CyKQ3Oq9Nu4W2VGpxWx0o4vQRJkfknW2Q8UoKhNv2FBDwBvApu4j1RZYikX XYOiHj37u5KRZlTVTPN/uLQFtIkfwy/pnEjrkjhcW67WrllSPqgyatCa2XghRAMDzO9m XQeXIoGNZDHs+oGFcw7TRSGW8q6SnhCUoDPack8E6YVD16XNONq0+aGttdc2bAj3eupz 3y7nEzA2aWDaHrzLYSAXqtNZmnMFA9SzEEvJ3E1FQibONWBZUozi2EVY8JjSw9rVHBgR BneA== 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=xH2u0/l2SqxJvZU8OkINvq+WEc2i5lm3OL3evVav5e8=; b=sjAiJ5IOPk9NDqxHMIKwXuuY8Vi/uwd9xcbj+joQls2fazD6TWqjaS945v+Y7Rrl+r 9wTDCsQmdHXfKcgcNqoYiP7B9YRddrO7kYyvicB3g33+FzJbgjyxgT4ip3BH0ve2t2nR U6EAB1NDGLLTY1RDP5r7jA4o97WhOCOwK4vBadgJP0E59g00iBhwpsyYm63xqbladwlK HPN+8ZCaEjKCNCOs24eg43QYCsRaErAWZwdQfh8aRQw6d8pBePOFcRCqXuERHnvRTHtx 1Fj4wMG936pRxkZtl3QJ1S0jqL03eBGr8xJ6st15/H8oTr62DgC8PxStnCyyRoUt7az5 G69A== X-Gm-Message-State: APjAAAVOEbdAVTGb2dA32l/4DEEIDFKFmZTB4GsObgYZqzmJaPE5Ezih WrftW7y332+ZgkfCyD8nJXgkIR1NDqZVXg== X-Google-Smtp-Source: APXvYqzgokjF3SKSmsltzGEtxbxu7xkGLnYJd8upYJ7hbd9lCH/KDpn1KI7Zg6AlHKawBfmqNHV0bg== X-Received: by 2002:aed:2e02:: with SMTP id j2mr1966540qtd.89.1565835587177; Wed, 14 Aug 2019 19:19:47 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:121::1]) by smtp.googlemail.com with ESMTPSA id o5sm757943qkf.10.2019.08.14.19.19.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 14 Aug 2019 19:19:46 -0700 (PDT) From: vandersonmr To: qemu-devel@nongnu.org Date: Wed, 14 Aug 2019 23:18:57 -0300 Message-Id: <20190815021857.19526-11-vandersonmr2@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190815021857.19526-1-vandersonmr2@gmail.com> References: <20190815021857.19526-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::841 Subject: [Qemu-devel] [PATCH v5 10/10] linux-user: dumping hot TBs at the end of the execution 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: Riku Voipio , vandersonmr , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" dumps, in linux-user mode, the hottest TBs if -d tb_stats is used. Signed-off-by: Vanderson M. do Rosario --- linux-user/exit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux-user/exit.c b/linux-user/exit.c index bdda720553..7226104959 100644 --- a/linux-user/exit.c +++ b/linux-user/exit.c @@ -28,6 +28,10 @@ extern void __gcov_dump(void); void preexit_cleanup(CPUArchState *env, int code) { + if (tb_stats_collection_enabled()) { + dump_tbs_info(max_num_hot_tbs_to_dump, SORT_BY_HOTNESS, false); + } + #ifdef TARGET_GPROF _mcleanup(); #endif