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=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 484B2C4338F for ; Tue, 10 Aug 2021 13:50:31 +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 B566661008 for ; Tue, 10 Aug 2021 13:50:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B566661008 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:52656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDS9F-0001O5-L2 for qemu-devel@archiver.kernel.org; Tue, 10 Aug 2021 09:50:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDS7s-0007dI-L6 for qemu-devel@nongnu.org; Tue, 10 Aug 2021 09:49:04 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:45928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDS7q-0008MA-RZ for qemu-devel@nongnu.org; Tue, 10 Aug 2021 09:49:04 -0400 Received: by mail-wr1-x42d.google.com with SMTP id m12so26365805wru.12 for ; Tue, 10 Aug 2021 06:49:02 -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=gBrwQGAgNFVSSq9iGQFjfmiOCMZon3rRa4RYHTifO5I=; b=KuNdF23gsJz4ADfHqUAU7V1uhi+pXVy3ZUT4S55wzjUNXaNMn3QiDbUO9Bhnu6rGkz wueYzU/H+zhDixnsb8URwagefBEL7yFchiER+4SNRxeuyiEaKlx4SO2NY6AhAxL4L6MG ESG3nRTHEQHY+F3H+DBWhSiQM48KkwuyyvtSc6kGf1aMMg6iFjyfOuNcZXo8zcBM3I7t DQ4cbuUwGZ1SIDQBdoC3hi7m1cHBzxo2kSF5kEZPIE87X03aPfA570Cm5Zw4ZNdJjoYo REYAutkI2DFchY5u/XOsDa7gBS4l7gpNvyqhyngmd6pWDQGoWbCy4LAfmH4mIE1DCpOK KUsA== 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=gBrwQGAgNFVSSq9iGQFjfmiOCMZon3rRa4RYHTifO5I=; b=g43JhbmSwLbKbd5CyhRvOHCLQy9yTsZxiaK1+QgFL+8Qv6s6/42NsuMnoAE1IO7Av4 1eH8owgJxbcqvpzM4Qfgf3B+y12MLor882XNs1Xczbss0ZooARvPLsGSaU8+ZwxSahrJ ss6GLJsh8p6WvA1znEoF3Lu3ZAlb1yxKs61iFOWI892d2o7Xvfu1pHOzA+V0nvDgEpEM ro51icNhPTlRFPWndKJTPMoKasDSY+nYM+UQNCHb83XVKcaHQONNXQE4F9OS+AhGgd5M xD4XEh2zmtoojtLoPtwWBMGdoIWOqfIh1HOGKewc/0EHw+vfnraJS25g9V9RAb+52KAl SYlw== X-Gm-Message-State: AOAM531/mc6Ms2kbPNjx6oo0rBFO6+LBqDoU2q1JGB3Dh6W51cu1p2XT 1Pljj0Bhw5GyGoehcFE3eIWyYlv+mwc= X-Google-Smtp-Source: ABdhPJwEc+vM7D6aqRn2rnWorYqZhNwRtAYGE6UPMV+RrPgyZGsChbMrQTDOAU2JXBhycuT9pVe8Dw== X-Received: by 2002:a05:6000:18cc:: with SMTP id w12mr30813653wrq.96.1628603340996; Tue, 10 Aug 2021 06:49:00 -0700 (PDT) Received: from localhost.localdomain ([41.36.105.33]) by smtp.gmail.com with ESMTPSA id u6sm8683413wrp.83.2021.08.10.06.48.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 06:49:00 -0700 (PDT) From: Mahmoud Mandour To: qemu-devel@nongnu.org Subject: [PATCH 5/5] docs/tcg-plugins: add L2 arguments to cache docs Date: Tue, 10 Aug 2021 15:48:44 +0200 Message-Id: <20210810134844.166490-6-ma.mandourr@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210810134844.166490-1-ma.mandourr@gmail.com> References: <20210810134844.166490-1-ma.mandourr@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=ma.mandourr@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Alexandre Iooss , Mahmoud Mandour , alex.bennee@linaro.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" cache plugin now allows optional L2 per-core cache emulation that can be configured through plugin arguments, this commit adds this functionality to the docs. While I'm at it, I editted the bullet point for cache plugin to say: contrib/plugins/cache.c instead of contrib/plugins/cache to match other plugins. Signed-off-by: Mahmoud Mandour --- docs/devel/tcg-plugins.rst | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst index fcc460bf7b..ee3fab75bd 100644 --- a/docs/devel/tcg-plugins.rst +++ b/docs/devel/tcg-plugins.rst @@ -360,10 +360,11 @@ which will output an execution trace following this structure:: 0, 0xd34, 0xf9c8f000, "bl #0x10c8" 0, 0x10c8, 0xfff96c43, "ldr r3, [r0, #0x44]", load, 0x200000e4, RAM -- contrib/plugins/cache +- contrib/plugins/cache.c -Cache modelling plugin that measures the performance of a given cache -configuration when a given working set is run:: +Cache modelling plugin that measures the performance of a given L1 cache +configuration, and optionally a unified L2 per-core cache when a given working +set is run:: qemu-x86_64 -plugin ./contrib/plugins/libcache.so \ -d plugin -D cache.log ./tests/tcg/x86_64-linux-user/float_convs @@ -421,3 +422,18 @@ The plugin has a number of arguments, all of them are optional: Sets the number of cores for which we maintain separate icache and dcache. (default: for linux-user, N = 1, for full system emulation: N = cores available to guest) + + * l2=on + + Simulates a unified L2 cache (stores blocks for both instructions and data) + using the default L2 configuration (cache size = 2MB, associativity = 16-way, + block size = 64B). + + * l2cachesize=N + * l2blksize=B + * l2assoc=A + + L2 cache configuration arguments. They specify the cache size, block size, and + associativity of the L2 cache, respectively. Setting any of the L2 + configuration arguments implies ``l2=on``. + (default: N = 2097152 (2MB), B = 64, A = 16) -- 2.25.1