From patchwork Fri Mar 12 17:28:14 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: 398691 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1425337jai; Fri, 12 Mar 2021 10:25:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyX/pIufC7ItLmREVyjbG7qErnmLlLNdyRvZp0YEvfRFF+qssrI/i0QV+V5tHGQYreuU9Vs X-Received: by 2002:a5e:8712:: with SMTP id y18mr387951ioj.65.1615573535821; Fri, 12 Mar 2021 10:25:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573535; cv=none; d=google.com; s=arc-20160816; b=nE7SuRCAquyV6n3RBQsf1Zg+rYcGMF8kddV9SAnYovYk8qawjH0ej4dSb94kaipyhM Et1Um38U9qkOYNubfycQPuVN++cKVApmL3cMZXuFSzzNKiRyCfRrb3KquWCbAmrU7NT1 L7kIiFQFYnmtMpsJP03AotOj0mnIDr66k2dFDknZB/+OFYR3ZF2Sw6H1KNGC3AtNsY4k Xa5tlCQGAu0qxaasW1v1qI/R7TcvUn76VV4z547WBWjqhvFycYsZ6R5ZdzrRBh/bAzV3 UF7xTdS924/gzaMwZarokD915sNv0z6O4KkMfid9SyIobSOXxIHgI6GPbAZOTdZaXUHt 5Y3Q== 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=q9/ElEVS0uWbAzDSa5Cd31/3lKlIWsCn+W2Fat9oTvc=; b=eW+xBJBcHEgAiLBCdVSJyWAecBc3fYGA8XGEZq2fvbJRt/VpSNzFz0G9DCfMp7UYQU NReSOL0viJ3nflwCrBnj+/9MkZnebAyt9xESvtq0mILEInyAY5bJkxCn4VNWAawgbHJj 1LHagYm4LGa9hXde3befxn3kzziQDy+CWKTlVpPvNZHgkKnGbvFDPJCD3ZobFal6f0bb UYYjly5U3LIDvbCcD2nlXa758la7hG+pJF/h6CMQhWUzZ/UL7YmwIgCaLazQVdEiqv1e H+eCbpZ8FExbEvwC8HD5fBNlSnUgUbPMkAK5Yj8SlXfiAm6RYwZZiniqmopDvAkb9hm5 xBtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=oQGsSwc1; 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 c11si5597226ioi.68.2021.03.12.10.25.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Mar 2021 10:25:35 -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=oQGsSwc1; 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]:36792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKmTf-000863-6j for patch@linaro.org; Fri, 12 Mar 2021 13:25:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKlah-0004AU-SO for qemu-devel@nongnu.org; Fri, 12 Mar 2021 12:28:47 -0500 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]:42860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKlaS-0002D0-Ts for qemu-devel@nongnu.org; Fri, 12 Mar 2021 12:28:47 -0500 Received: by mail-ej1-x634.google.com with SMTP id c10so54731650ejx.9 for ; Fri, 12 Mar 2021 09:28:32 -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=q9/ElEVS0uWbAzDSa5Cd31/3lKlIWsCn+W2Fat9oTvc=; b=oQGsSwc1fMZdP4qpV2hPiStXtl4iaHwRQ6/s20wNb8VojAghQSnMwn9aD5NzdzCgrI vRIylJHijPmo8nluMFE9aEXXd3aoQgxK6ajsQUh6b4BrhEConjc64w7jLocwClvBwcWb XKy2i6sx+pP7NqRE/6OOFTpH24J52ULvKhF9AxYOQOF5iUmmU64DRIW0HQc/yT0IzSwv KzFZkFPo4jkHlrF39dSK769Q614oJNCRJs2csxTF5GV1YBnf4rwOS9oqUfpkmqOnyaNt l3hPvvXtI4RrZa62SbjG27yY6WqPQDLFcXaEOoH3iXVVsPkqAA78kCWODAIS2pleTiDQ ppFQ== 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=q9/ElEVS0uWbAzDSa5Cd31/3lKlIWsCn+W2Fat9oTvc=; b=bgZJgx9O85aAJRiaE8s2eDcl5KMXLO0Kip/CW/g/kq5GNcm4Mv0RpsGZ57aL8equ89 FNAFengto86LdN3jvyc06Ds/pMp2vXc1o4Vydc3eljQ10KURQShKKmm01KEaQhSrnM1f nsJAYNVyLKVPeedirHOyO9wYIhrx9f255nMBFYhi/jnjB/Mz7yV77+Bx2gLARI4Uaw1l k8kZmKDjzkbtCaG6ak7EUydC4WhHpSb6KyKwz0efjSIE6k86CTvvjKDCdE/KmnN14GzC nRjw/O7BHMJ/2NL6+6E9eabm6ze+ZAmZgRgA6IobaoSf3E4t09x47pQzzz3N8SXSYlPK m+0Q== X-Gm-Message-State: AOAM533IDI/cWS8I1hk70QOdPKj6ba59Xq80W2qANhbvu5KErXwjxT/r a+oAUu0KOjbbwYhQ07JRwoOV4A== X-Received: by 2002:a17:906:c102:: with SMTP id do2mr9781486ejc.305.1615570111607; Fri, 12 Mar 2021 09:28:31 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id ha5sm3135594ejb.39.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 5DD4D1FF93; 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 07/14] plugins: expand the typedef kernel-docs for translation Date: Fri, 12 Mar 2021 17:28:14 +0000 Message-Id: <20210312172821.31647-8-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::634; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x634.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" Signed-off-by: Alex Bennée --- include/qemu/qemu-plugin.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) -- 2.20.1 Reviewed-by: Aaron Lindsay diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h index 09b235f0b4..9ae3940d89 100644 --- a/include/qemu/qemu-plugin.h +++ b/include/qemu/qemu-plugin.h @@ -202,11 +202,9 @@ void qemu_plugin_register_vcpu_idle_cb(qemu_plugin_id_t id, void qemu_plugin_register_vcpu_resume_cb(qemu_plugin_id_t id, qemu_plugin_vcpu_simple_cb_t cb); -/* - * Opaque types that the plugin is given during the translation and - * instrumentation phase. - */ +/** struct qemu_plugin_tb - Opaque handle for a translation block */ struct qemu_plugin_tb; +/** struct qemu_plugin_insn - Opaque handle for a translated instruction */ struct qemu_plugin_insn; enum qemu_plugin_cb_flags { @@ -221,6 +219,14 @@ enum qemu_plugin_mem_rw { QEMU_PLUGIN_MEM_RW, }; +/** + * typedef qemu_plugin_vcpu_tb_trans_cb_t - translation callback + * @id: unique plugin id + * @tb: opaque handle used for querying and instrumenting a block. + */ +typedef void (*qemu_plugin_vcpu_tb_trans_cb_t)(qemu_plugin_id_t id, + struct qemu_plugin_tb *tb); + /** * qemu_plugin_register_vcpu_tb_trans_cb() - register a translate cb * @id: plugin ID @@ -233,9 +239,6 @@ enum qemu_plugin_mem_rw { * callbacks to be triggered when the block or individual instruction * executes. */ -typedef void (*qemu_plugin_vcpu_tb_trans_cb_t)(qemu_plugin_id_t id, - struct qemu_plugin_tb *tb); - void qemu_plugin_register_vcpu_tb_trans_cb(qemu_plugin_id_t id, qemu_plugin_vcpu_tb_trans_cb_t cb);