From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D97DC43613 for ; Mon, 24 Jun 2019 05:56:48 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1B5B32083D for ; Mon, 24 Jun 2019 05:56:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FVXD56kh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1B5B32083D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:48104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfHyB-0001cn-4z for qemu-devel@archiver.kernel.org; Mon, 24 Jun 2019 01:56:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35100) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfHxC-0000ei-MZ for qemu-devel@nongnu.org; Mon, 24 Jun 2019 01:55:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfHxB-0003tr-QJ for qemu-devel@nongnu.org; Mon, 24 Jun 2019 01:55:46 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:45723) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hfHxB-0003sS-MJ for qemu-devel@nongnu.org; Mon, 24 Jun 2019 01:55:45 -0400 Received: by mail-qt1-x82a.google.com with SMTP id j19so13236292qtr.12 for ; Sun, 23 Jun 2019 22:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=zA8ZWKYF7wiR6/oE1xobBuTt6PuxRqboUQZr8hwOW6s=; b=FVXD56khhyl3bKzlNoHbZpJmTMMA0rEr/a8uHPTzMeM+3bdUHSII80bwatj6iZZ5Ah wAzfW2ZnEdFQs6RITg5RnnoaNiwWslwuPOip9z8pUgf5S2Z0ztEsoyU3ZTFmpgcM2HND Vck8AlmevX7/mc3O000RhthxJ7DNKtbrQf8TRtnaFp9yCy8qZT7RuJyZsml/lRs2vg7V WxjqdQdcYPbUTiEaToGAXJe0H8Qp7pLSIK8BsVcb6y49ipknIILaPDpfVZfIaUXCCBzP rmVdjNIoNh8RMzEX0fxTrzp5XQGR/3BOsXI534CN6v3zKMmGGWlUsVIAZrksTMwxs61E sbSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=zA8ZWKYF7wiR6/oE1xobBuTt6PuxRqboUQZr8hwOW6s=; b=CgEclFlyfokSFLiQ//E/Ws9z3VhI1MzwVPgR4IZKA5Gvs5CLiwy7ppJRPKp6HWBRaK qVH++lxKS2dA2qdDYJQh9oWBGEwj4//EYrJyMFpzsHEOLKpqcvz7zxA3OEXbNTMGTDXx AwbPcJLmkrt56AUEoq05trWx9Cd39r4k/jhNCVx2/9sIucxQeFCaEVtERNUaRN2Lx6vI it+f0B90C6oiwUML9QSba6McdBgYMSUsdGvNfH4ExbpArZ4dAf8hFIXFQUEgi1dvGEZY xysUUzuJ9tl4rSvxpbwZ2AiOEuOyhOKqmxQ016uHgymC4+MCsue7ACBJsN4r4qInvWsJ VlVQ== X-Gm-Message-State: APjAAAUFSwHZoT5Vl+iw+Ss9QM6Ad5ddqinMccZdmy6X2UmOTQTBJzA2 /ZYvd4AyUSxZjkDXIddKAbBQH2/S X-Google-Smtp-Source: APXvYqzN6DWvMavBUcYERcJNtfw8pdleiXCJSHmoDPbX1x8IJNTmDdNFKeoBCdVHO1Sip/dpPoiyDQ== X-Received: by 2002:a0c:ae5a:: with SMTP id z26mr56066454qvc.65.1561355742093; Sun, 23 Jun 2019 22:55:42 -0700 (PDT) Received: from localhost.localdomain ([2804:7f4:548d:5237:c368:80a0:cb96:64bf]) by smtp.googlemail.com with ESMTPSA id t80sm5154440qka.87.2019.06.23.22.55.40 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 23 Jun 2019 22:55:41 -0700 (PDT) From: vandersonmr To: qemu-devel@nongnu.org Date: Mon, 24 Jun 2019 02:54:38 -0300 Message-Id: <20190624055442.2973-1-vandersonmr2@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::82a Subject: [Qemu-devel] [PATCH v2 0/4] dumping hot TBs 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: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" It adds a new structure which is linked with each TBs and stores its statistics. We collect the execution count of the TBs and store in this new structure. The information stored in this new struct is then used to support a new command line -d hot_tbs:N which dumps information of the N most hot TBs. Different from v1 now the execution count is being updated directly from the TBStatistics so we do not need to copy the data when flushing. [PATCH v2 1/4] add and link a statistic struct to TBs [PATCH v2 2/4] Adding an optional tb execution counter. [PATCH v2 3/4] Introduce dump of hot TBs [PATCH v2 4/4] adding -d hot_tbs:limit command line option