From nobody Tue Feb 10 05:40:02 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1615573738; cv=none; d=zohomail.com; s=zohoarc; b=TjRGac4gbuhmID+3PzAcgZAxocXGCT33PEVr43sRB1T7i5cTMWesKM2cx0PZZwO5yVWxOndg/N17xXqJQN2ongt+wNRS0S5J0lbhjmkHVDIWx/m8+CGCGIAnxhUpEVXbbHdEiU8oJyC2C4FRATeX5Tq6mJke/6fmZNLUSWUBuiE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615573738; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=rQlXVzvhTGn5oQRAxN3PtvRgZpaSyD2V/Kc/eZauuUk=; b=D9fa/hRx3yXV9ZC55z1jgGYqV53VLYPELNNNP3uY4Wv5ta/l2P1h/zG7i9Z7EeyIWGOvJF9fkRlNhTQLmE/ednqW6iePeEtanW3wMiaP5o8My2oCDVi7MhLR7412/6xgLMId1Ih6QTC9O2QsxITlKm+e6bvEdIqtbUCap/rAns0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 161557373837838.89436937480184; Fri, 12 Mar 2021 10:28:58 -0800 (PST) Received: from localhost ([::1]:45628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKmWv-0003Zo-9W for importer@patchew.org; Fri, 12 Mar 2021 13:28:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKlan-0004NY-0j for qemu-devel@nongnu.org; Fri, 12 Mar 2021 12:28:53 -0500 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:36050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKlaa-0002F1-7b for qemu-devel@nongnu.org; Fri, 12 Mar 2021 12:28:52 -0500 Received: by mail-ej1-x629.google.com with SMTP id e19so54916422ejt.3 for ; Fri, 12 Mar 2021 09:28:39 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id sb4sm3038732ejb.71.2021.03.12.09.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 09:28:33 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E28701FF9C; Fri, 12 Mar 2021 17:28:22 +0000 (GMT) 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=rQlXVzvhTGn5oQRAxN3PtvRgZpaSyD2V/Kc/eZauuUk=; b=I3ZTiDXdf9gf0/tsKPfA8sySqIxY/H25ASyNxiLPGyxYehT4n5naIkqCBdHymfSYn5 pmCb9pcRTXMh0UXfBbHm7UCNikcF6NGrefjG0p/uByeiLHJqjJl+KcUAdxgb7mCGTa+W yHa42M2mXzYjKGd7o1mUGyyh2puVwr23ETeHVXydDVpmcyzJKD+RbvPojjxtgQotDu2y cxVtUwDPlCqr+DZATWMSwE42stXJ80WD4CXAkJHV4qZzUNUAOn68IM0oo7LdybPDr56m 9iDvSC0qQMRlerJcd0faqQpD6jkpGjCPE5FZ5sS+F9pUBrkcCP/ws8Qx8TRI6BPcw1jc ubKg== 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=rQlXVzvhTGn5oQRAxN3PtvRgZpaSyD2V/Kc/eZauuUk=; b=JWh030yb07eSyveR0llQ+b/sN5FNGiFj6Ktu/7WGISngQqapNRfTYpikQfYxam3X3i 77ByK6MyqsZS7+Z3abJdrhEK964wj+B7J+g5+1Ftg1jYuUVfO6Xqk6/mQA4wgdEiDh2r 0aJFFiuAC5yV7GO4MIR+rzme71zQckbxO0Afj9Hh9bMz50Aq5qwg4CyXcTdye2WHYmGF B/v0lajgqZrqLaXxa65Zybtb2cFe3No+thkonaXDnPMsxNtOBDTBt4KUNJ0yz8Wq/xwp 8SPSjHCtw8uOcSc3b0kkRFcgxfUKJXGCoJc/f/Ill03lJWAEKWFOglaLc/NndBMvpUEZ phFg== X-Gm-Message-State: AOAM531SbsE9aETYuMPNlrrpwKpxgx8Zh0bgTXJwonoYbBVox84xpr6K JbxvZ1acI/vxsTm9ivR6/gLGymI5XgyLXQ== X-Google-Smtp-Source: ABdhPJxO9acPOaagelidzELS+cHxP2oqeBG/jNDyxVo/Ch4SpNkp0aS4ZVd0FqfT2odn6joex/FkgA== X-Received: by 2002:a17:906:8147:: with SMTP id z7mr9291380ejw.436.1615570118876; Fri, 12 Mar 2021 09:28:38 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 13/14] plugins: getting qemu_plugin_get_hwaddr only expose one function prototype Date: Fri, 12 Mar 2021 17:28:20 +0000 Message-Id: <20210312172821.31647-14-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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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: Yonggang Luo , robhenry@microsoft.com, mahmoudabdalghany@outlook.com, aaron@os.amperecomputing.com, cota@braap.org, kuhn.chenqun@huawei.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Yonggang Luo This is used for counting how much function are export to qemu plugin. Signed-off-by: Yonggang Luo Reviewed-by: Alex Benn=C3=A9e Signed-off-by: Alex Benn=C3=A9e Message-Id: <20201013002806.1447-2-luoyonggang@gmail.com> --- plugins/api.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/api.c b/plugins/api.c index 3c7dc406e3..b22998cd7c 100644 --- a/plugins/api.c +++ b/plugins/api.c @@ -266,10 +266,12 @@ bool qemu_plugin_mem_is_store(qemu_plugin_meminfo_t i= nfo) =20 #ifdef CONFIG_SOFTMMU static __thread struct qemu_plugin_hwaddr hwaddr_info; +#endif =20 struct qemu_plugin_hwaddr *qemu_plugin_get_hwaddr(qemu_plugin_meminfo_t in= fo, uint64_t vaddr) { +#ifdef CONFIG_SOFTMMU CPUState *cpu =3D current_cpu; unsigned int mmu_idx =3D info >> TRACE_MEM_MMU_SHIFT; hwaddr_info.is_store =3D info & TRACE_MEM_ST; @@ -281,14 +283,10 @@ struct qemu_plugin_hwaddr *qemu_plugin_get_hwaddr(qem= u_plugin_meminfo_t info, } =20 return &hwaddr_info; -} #else -struct qemu_plugin_hwaddr *qemu_plugin_get_hwaddr(qemu_plugin_meminfo_t in= fo, - uint64_t vaddr) -{ return NULL; -} #endif +} =20 bool qemu_plugin_hwaddr_is_io(const struct qemu_plugin_hwaddr *haddr) { --=20 2.20.1