From patchwork Wed Nov 6 17:09:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 841065 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp638352wru; Wed, 6 Nov 2024 09:09:54 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWy4Y2nMdihYep2cGx+EMj5d2DDiXOcbJ89Up8fO6M3Rgh4B81zji8DY/xy24vFHGGukWDh7g==@linaro.org X-Google-Smtp-Source: AGHT+IH4th9rCSGIvn3tJS0H7+AHY39jmWSHVYOCbAzyvrzO8kb2qcxacPJaVqvECBDXQu9g/AdI X-Received: by 2002:a05:6122:3094:b0:50d:b561:33bd with SMTP id 71dfb90a1353d-5106b1bf92cmr23695385e0c.12.1730912993920; Wed, 06 Nov 2024 09:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730912993; cv=none; d=google.com; s=arc-20240605; b=Vp9B9KabP/z9srzWxeEo2yLBEFwaYoGXk6TdnoB2rkzR9u6lCsThrYrM4zIVhUtWWI MI17Cvvbv97uXymKk1RBi3YImnZ1EOxSsXk6sbkWEDVy0jZZyZhwPQhNhY6LTi7Wfxgw j0MF2TOmpiOS4x8GGlAHYWRN12Ec6Sn1tu7NBpEO6b2r7ic7JYWO7DviU48zV2sA65kV fbxhuwPPaQbfa5uBo3st0pJfBTi+yn3u3+xIPWTqQV2IPrP58i6ML5bVPOcn1Uwp7noE X9R1FLVjz1zqwKR+jKSnk/FhaLQf8XBJ3lS1e8QJZ54+k132Q7eg50CK4lBBEoTBmD60 qcxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=rxvyr7YLNSV95iSHc4+IrcMEjKmsBzFU/HpuuURz0hM=; fh=kefGR/PxK0iBDZEnfpvvNpEVnVXz3lrrL9SbbVSg2B0=; b=gg9YdILHBgj9q9l7q+Nkl9su1UWjLTnQLGqyuzP9a6fJgv3p8f2swy6jVe6UYgmxbg dCxTKT2c7N6hgdN3/lvIar7+uyulZW8C6SuafWBhhxi1kH7WU0dAnmpEEp7DOZ1qkt92 /xWQOYxMwmN0NgsusVpGbmdb/cSHJ7oFUAj8JWGzK8WfbxMxqL3pJFw/FrBtZ61sP5lU FNUvOv9itKX+Ilax8ORpnyN0mI4Ffx6lDOE5UKXMU6QAjSmetNME4UvXMeQRGLdlGgts ZaJrwVvj7v5otKJtvEUpLprVqkUACNUFshS+8IpXXGU7vajRONjCk8CQs0WjiJijuNQT j9Zg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tf4Eum9n; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 71dfb90a1353d-5106f3c39afsi3458813e0c.194.2024.11.06.09.09.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Nov 2024 09:09:53 -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=pass header.i=@linaro.org header.s=google header.b=tf4Eum9n; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8jXM-0004kV-Ky; Wed, 06 Nov 2024 12:09:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t8jXL-0004fM-2b for qemu-devel@nongnu.org; Wed, 06 Nov 2024 12:09:43 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t8jXJ-0004Z4-9n for qemu-devel@nongnu.org; Wed, 06 Nov 2024 12:09:42 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-43168d9c6c9so213725e9.3 for ; Wed, 06 Nov 2024 09:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730912978; x=1731517778; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rxvyr7YLNSV95iSHc4+IrcMEjKmsBzFU/HpuuURz0hM=; b=tf4Eum9npmRKXNV1i9KyayxKg9LU9YEqAlMl1TjsFi8ph6OIrTIpjARJI8XrTPrLy0 0mbTRNWoRT4qY9ex7LvJjgsFs9bjaGOgNkVra7alDD7vPGdPwLgSFNoTyAFXXGsD/usB XmAqqFnG5cydMUZHifByzYYrJ2sk6QFLbKDghBkO9uLUFgF7+AtSWsJtL0Q76L0fUmFn 365euUsE25oeLJPVTCWO3xMg+9+HwuTYoMH0Z/u1WYNJMrHGyiFfXAYPccYK5wn/zz/H LYvMNFsM12PjZItZ234aZHy+WtTX9iHwIKPjaPtomxrgtCOHg0HsX7vlCp+0NhUl+MlP Xg/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730912978; x=1731517778; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rxvyr7YLNSV95iSHc4+IrcMEjKmsBzFU/HpuuURz0hM=; b=kSDMICixRzB8mU9DIHU4688xsV0lFNp1keGVrN7ljAL+pEyhM1B7gtMaMO8PABoZMz PnsBtwE9zZ9quhdDs7UTmqtasusKEusmpmkIL502Ij/xxCMv/1IWnTlr02R5LVEZWpd6 qn/nfIQxqg0ywgpcyhFMJ0KYFoGolFB+UDO7JtmZhIRG/ejldbsXB3JhzuMhQxmHqRAl YuW3gO+gcSHbm+I3R0Gyekg6b4bPp+ZPxR0ZoW7gByhYKowLlhPkYfYUMRqduKOuAxkz mL9hEk4qLZlchHOq3bcVWViY6057oBeQhZyjfh/nUgw+ljNMD62YSdGgkTq/0WDcL1oc GjBQ== X-Gm-Message-State: AOJu0YyyDI21/YjzRtaTjPPuguYO3LBup6+ysHiyrcXbePoHPlv+ooFs 6ECX/Kg8wXWMrWwtYkYitCFXoXNOKpw7OQIon/BI6DrGpSpSZb3J7I6kWRJ2LN1z45yG/gK8/Py L+oUCPM8r X-Received: by 2002:a05:600c:1390:b0:431:5d4f:73a3 with SMTP id 5b1f17b1804b1-4319acb226amr355344995e9.18.1730912978534; Wed, 06 Nov 2024 09:09:38 -0800 (PST) Received: from linaro.. ([193.32.126.165]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432aa6b2d13sm28918935e9.12.2024.11.06.09.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 09:09:38 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Alexandre Iooss , =?utf-8?q?Alex_Benn=C3=A9e?= , Cleber Rosa , Mahmoud Mandour , John Snow Subject: [PATCH v3 0/3] plugins: generate list of symbols automatically Date: Wed, 6 Nov 2024 09:09:20 -0800 Message-Id: <20241106170923.2976750-1-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=pierrick.bouvier@linaro.org; helo=mail-wm1-x32d.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Now that meson build for plugins was merged, we can cleanup another part with the symbols file. It has to be kept in sync between the header (qemu-plugin.h) and the symbols file. This has proved to be error prone and tedious. We solve this by generating this list from header directly using a python script. Dependencies are triggered correctly, and the file is regenerated if the header is modified, as expected. Pierrick Bouvier (3): plugins: add missing export for qemu_plugin_num_vcpus plugins: detect qemu plugin API symbols from header plugins: eradicate qemu-plugins.symbols static file MAINTAINERS | 1 + include/qemu/qemu-plugin.h | 1 + plugins/meson.build | 12 +++++-- plugins/qemu-plugins.symbols | 59 ---------------------------------- scripts/qemu-plugin-symbols.py | 45 ++++++++++++++++++++++++++ 5 files changed, 56 insertions(+), 62 deletions(-) delete mode 100644 plugins/qemu-plugins.symbols create mode 100755 scripts/qemu-plugin-symbols.py