From patchwork Fri Mar 12 17:28:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 398687 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1423476jai; Fri, 12 Mar 2021 10:22:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxt5WI1G3Wcb4ysIkdMiXV+FlpgjvkFQX9uPnnW7JneD6+7/KsoJttlWSnz4reAFcZR5QPZ X-Received: by 2002:a6b:ea08:: with SMTP id m8mr391454ioc.194.1615573363184; Fri, 12 Mar 2021 10:22:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573363; cv=none; d=google.com; s=arc-20160816; b=hjmL6YryWobxqD33bbOTv2r+2E4GKXKMMFynTIc7U+NYa0pHQe55zEuwyq/BVrPr+D B1xx4UtP8/QYPcK63H/M3G7vdK2p4EXYf1KAc1VAcCSkn1AGNf5V89KLotUQswE1tZDU O8M1z1LtBFAnq3UjS2rlQOslvdB1qA0JjrPPIz2GFS59mONJlYZR9zgidvTJ3jJiEe+d yrDnjfgmFgVfW1aMeT59wdPVJisPO7dDuINQQnoomynU+uBZtlSQ34/1B5h0zhqE/UGc Ez50dCAkC0cjzG6Ab8G5wx3TM9vEe8i+OHVtV4/njtYIsMhMt04kxbGrtV7ugsZhatSo cGLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=X3N5gVRhyarUQz1NRBF4TPxPeA10Pzo0G2TS+ipcJTo=; b=rpXfrMd1+rKidYwWaPUUkaUhSEEHNwtX/bNWqdNF6E1jhFWku9Z1V+DwySeJgJ0EPI hHwAqV8KRmJyicoEylfQ6k963tmqvIpO00OERcI/UK2uHGocmSdd9y9sTrRhtnF1ZByY Gp/KhAUIcCH/sYtxbI5pXA1pXVhOyuC6391P8aXyY7M9hfcmashumZFoWz3o6GpW6GzF Dh3/UXMoOG4cn9+dvPuOO2pNtXMyIGvr1ssJj4/xvRKGhshBKUwVZqu7wABgfV6pV8bC cjqP4um4SLy+KamkhjNAiH6PfNgT+XmwrzSLLAcS5Yz7rRShKR2Hsut8xA0XncMCaTpY amCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=EpKsXWwd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w24si5420795jaq.43.2021.03.12.10.22.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Mar 2021 10:22:43 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=EpKsXWwd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:52626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKmQs-0002UG-IJ for patch@linaro.org; Fri, 12 Mar 2021 13:22:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKlaf-00045e-Uj for qemu-devel@nongnu.org; Fri, 12 Mar 2021 12:28:46 -0500 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:36884) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKlaP-0002Ce-2P for qemu-devel@nongnu.org; Fri, 12 Mar 2021 12:28:45 -0500 Received: by mail-ej1-x629.google.com with SMTP id bm21so54815132ejb.4 for ; Fri, 12 Mar 2021 09:28:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X3N5gVRhyarUQz1NRBF4TPxPeA10Pzo0G2TS+ipcJTo=; b=EpKsXWwdTHxRJX4zFNRHSP2F709wUDbLQkqczRjz0A8PxnSvjK73QvCaaYQpwReWF0 a7tQg/PVTLfG27aG65avnIuw+dWhyOnw6quB6q6fPaMqp2kaSYRLu49qszU6yKln621r r9tjZZO+WzysQoJtNLHY3ZYHOichRr05eZvko/SVyZx1cv1TqmMeI2epoK58nWj4VvtC kdulqHSOF1TMDnyZOXvDwSLr3XXDEC67jXMciAjM49pAG8Up9M7XNJlQQxL0Zmv6wSle yLBvKVoIIc/X+SrxvsONb8S2UOjAL2xjrQIukUeobDADf8YZK6rmzbQwk5JVqdZkkQl0 ahDw== 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=X3N5gVRhyarUQz1NRBF4TPxPeA10Pzo0G2TS+ipcJTo=; b=qxfAwd67kNmrKG44UANFwtAX25MDBZ3vs/HhI3xo1nSJopit8qSW1ZIcFbYoivAmAr 1zwuSbzL7iREgPOJrhf2AcXj291YBc38NKrtYfnfnFfWQ8vgcSlM+EBzK0kYhdJZ7VJ6 A2YHu7HIoulA48xFJzNia85HtnxuXMhgC2q6QmB4GoXetY/cJkpO0KCyNC+9vWBJYtRM M++okki30NRjvUxg1YOfziw7yVNQfXDznS/05utvVx2PCsxmguOO1qtLW3l/7utLZaem wqiRsVTACMJRzJJmOg2Cr7M5puqg91Ej3fuHRCnQb7VB5Q+iI/PNMuYTjPX2SfkWE7o7 pjNg== X-Gm-Message-State: AOAM532b+s5VRj71/KL9iZ6KOskiPo8qGmJ3jCu7OiftigbGYfxrg4sa 8wf1ZGckvfMr6Hl+Kea50VTXbA== X-Received: by 2002:a17:906:1c98:: with SMTP id g24mr9787381ejh.51.1615570107818; Fri, 12 Mar 2021 09:28:27 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id j25sm3387101edy.9.2021.03.12.09.28.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 09:28:27 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 732A01FF96; Fri, 12 Mar 2021 17:28:22 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 08/14] plugins: add qemu_plugin_cb_flags to kernel-doc Date: Fri, 12 Mar 2021 17:28:15 +0000 Message-Id: <20210312172821.31647-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210312172821.31647-1-alex.bennee@linaro.org> References: <20210312172821.31647-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x629.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, 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: robhenry@microsoft.com, mahmoudabdalghany@outlook.com, aaron@os.amperecomputing.com, cota@braap.org, kuhn.chenqun@huawei.com, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Also add a note to explain currently they are unused. Signed-off-by: Alex Bennée --- include/qemu/qemu-plugin.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) -- 2.20.1 Reviewed-by: Aaron Lindsay diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h index 9ae3940d89..c98866a637 100644 --- a/include/qemu/qemu-plugin.h +++ b/include/qemu/qemu-plugin.h @@ -207,10 +207,20 @@ struct qemu_plugin_tb; /** struct qemu_plugin_insn - Opaque handle for a translated instruction */ struct qemu_plugin_insn; +/** + * enum qemu_plugin_cb_flags - type of callback + * + * @QEMU_PLUGIN_CB_NO_REGS: callback does not access the CPU's regs + * @QEMU_PLUGIN_CB_R_REGS: callback reads the CPU's regs + * @QEMU_PLUGIN_CB_RW_REGS: callback reads and writes the CPU's regs + * + * Note: currently unused, plugins cannot read or change system + * register state. + */ enum qemu_plugin_cb_flags { - QEMU_PLUGIN_CB_NO_REGS, /* callback does not access the CPU's regs */ - QEMU_PLUGIN_CB_R_REGS, /* callback reads the CPU's regs */ - QEMU_PLUGIN_CB_RW_REGS, /* callback reads and writes the CPU's regs */ + QEMU_PLUGIN_CB_NO_REGS, + QEMU_PLUGIN_CB_R_REGS, + QEMU_PLUGIN_CB_RW_REGS, }; enum qemu_plugin_mem_rw {