From patchwork Tue Dec 17 01:06:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 851406 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp110620wrq; Mon, 16 Dec 2024 17:09:53 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWDbNpUDvpKl/Ez9WYHa8Vr50k/+6gXrZ6/aHBBXiguQ4r8DRNEbOAzkyNi/SRSM8reVWuXzQ==@linaro.org X-Google-Smtp-Source: AGHT+IGfp0RkvchBeZ7QGv4Lr+/Eht5oEmDeTQqQ6ySDZdQUcA3LJQfkuaztD4WGmJv5nBF+xNyT X-Received: by 2002:a05:622a:86:b0:467:5da6:808f with SMTP id d75a77b69052e-467a575bbacmr229549741cf.22.1734397793493; Mon, 16 Dec 2024 17:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734397793; cv=none; d=google.com; s=arc-20240605; b=OcyiV7BxDPaLMW/BJ0Uuhb2kRHYHsIdsTHSHM2ecLLVSsDM+CkyigoyBrtHjNCnnvb h8vRBIp/O4Pi1Xk2wothW49j0w1tDVSRsr55rA5nEEBCUOlYM1wpS6wIlgByP797Vq23 +ZBzKTCnLKHeqa/7J2TNANBH75WsIxl7gRKisFiKu/lMldzl/pkW+rJ7m4Iw2+fP5G5q C1BiJGNqg9rQEira7awIJDBIXwuAFnWYk9EnPZFAFqv6xOIVIVszsCZLbA/l0KoGTpiS WcVGMreFbh1xRAg+OwAMJ1ZVviu0H6E8AyDTt8auzaXnMJBJUZH4MT/O0Y+QcIxb5WME 5Wqw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rYQneB+NKqjuG7StTn0XWLjAkA1JJLLeS7nr+5pDNNk=; fh=CFa3ou2Ry4mS7fTsZUswJFlbz+fCeIacXufDVqA7iAo=; b=P57r9TqEuMgfm4F2nPiKqyV38ZkDPOFxSCQGCI+Hq/2lnSW51x1oqO9iL4hskZTM25 LrFiArox8rpuAiGY22lo4WAfLvJJKNW5mkQUIxod+VyuCxfZTMpmIzypERTb/7e/DjqG FHEZPQh1ozajoso2DHAkmg12lNTSnZclQ2dikK03O85wWAS+RMbjNkevSfBHM0Muci5V OhlhEY4TneO/CIFgBkXttpEsGsMVMwfJm0m5HFqo+bj+NU8qdyq8/ffpVn8Z+9rg+Noo zUDrNpVc8zk/4jnANGJ22mt0aYApSTaE6GBIHMrx9foku0Ychpv5zCag27fLjisVKJSh hEmA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PeDFltRJ; 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 d75a77b69052e-467b2e87001si95243131cf.290.2024.12.16.17.09.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Dec 2024 17: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=PeDFltRJ; 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 1tNM3b-0008Gx-VJ; Mon, 16 Dec 2024 20:07:27 -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 1tNM3Z-0008Fr-Fa for qemu-devel@nongnu.org; Mon, 16 Dec 2024 20:07:25 -0500 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNM3Y-0004xW-0G for qemu-devel@nongnu.org; Mon, 16 Dec 2024 20:07:25 -0500 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-7265c18d79bso5066940b3a.3 for ; Mon, 16 Dec 2024 17:07:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734397642; x=1735002442; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rYQneB+NKqjuG7StTn0XWLjAkA1JJLLeS7nr+5pDNNk=; b=PeDFltRJ3DikVQle28iHRpeg0QWuJO+QAxGeP4Bwz8Bs5KWsK1DdPDjcmFyqvsnAk4 4kpN5mjBpjJeANQxu42KjHrDch5kbJl59KHoIPMSmf5kmWNigyTiXAddTaQtDCqUEI9I L9rPRBZ/b0DzkhDtoM58oYorWHlga7lEYbls8SAHZs3/JzeykAdMulVM1RaaRDf8YJSY vetS0OTREaK8UtrkVWnwTXqyfVM/0ocWiXeB0lfDeQCb99w8Z248b/KG5hL4EQPnH2AN ZlHBq5td+g4W8RyAcvF2ws0fi6dQQRLU9LyOGJEtXfeYc+SorpEmiBU47+JDGLNPdK52 Slmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734397642; x=1735002442; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rYQneB+NKqjuG7StTn0XWLjAkA1JJLLeS7nr+5pDNNk=; b=j3Hjs0VUyZ0gPq1QJFnSDhc+hPBFl0V0e6Pk3FgjJXaaJ957u881ZH1HpnfVrLhyiK SKfvH2/WdTKHsvPiXUifLxjRj0XPLA32AFiwa9DtIRtywGbx2EM5VXNpAi14U/DbWte6 9Qz+S+8Ji/Y3HsH1ORIIf23Vq3bEeEkEiIWmcnVF0T8nYo7HKIKkJt25zNsLCQgjst6V jSu99FCasUF0eGA+UUFEJNIWZ4WiJ+ZaCqX10ZNovi7FwVcDHLOqArJv0O1J97Veolp9 cF/ziC6hmbqFAEoE6K19pbZ96/Y3hZXeqOMC59PmYf/DyPtIF2t3mE5sNbKexIEaiF+G JPRw== X-Gm-Message-State: AOJu0YyQXXNtG5Ecp9TF+iK9nx++Aa4g9pTwR555uPR8peZtOUcPubzS /14KeQ+t5WBkhHjQfESLNf3GsQxwZQcJsNsWqHms5OdA3HSpKo+rCHlLGK0l/MruyzCr+ZozD/Q KLcc= X-Gm-Gg: ASbGnctLy0GR5pxbm6Mis75yPUdaXYqWFtT7h4TZuSGQT3I0C9m35+KtudkYw7C/sT4 a3zs7T3shzxfQ7N7d/ugzZpPyqLn56L5r98nV3H6ZF/FBjKPO7xW5/cJUZCQSH17nt6MZLUFmqq VL6dW1aZ3ZrJF51w5CE47tmhnelXxJ1TuSjEaGPRud/qADxH/SNf5UZH6ser9cxXNnTVhUe48te EJPVRtiowh/e9Z5yqGTPtvvvPWqytiNTzkIMIzPtWQneHrj9tqauvKGxvM0jEHhXfEqJGnQZ1dA 3hJa8yxfrn0kEYk= X-Received: by 2002:a17:902:da84:b0:216:7761:cc48 with SMTP id d9443c01a7336-21892a5d762mr250070425ad.40.1734397642580; Mon, 16 Dec 2024 17:07:22 -0800 (PST) Received: from pc.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-218a1e6d0e4sm48746595ad.261.2024.12.16.17.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2024 17:07:22 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, Pierrick Bouvier , Alexandre Iooss , Paolo Bonzini , Mahmoud Mandour , Thomas Huth , philmd@linaro.org Subject: [PATCH 05/13] tests/tcg/plugins/syscall: fix 32-bit build Date: Mon, 16 Dec 2024 17:06:59 -0800 Message-Id: <20241217010707.2557258-6-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241217010707.2557258-1-pierrick.bouvier@linaro.org> References: <20241217010707.2557258-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x435.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 Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- tests/tcg/plugins/syscall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tcg/plugins/syscall.c b/tests/tcg/plugins/syscall.c index ff452178b18..47aad55fc1b 100644 --- a/tests/tcg/plugins/syscall.c +++ b/tests/tcg/plugins/syscall.c @@ -76,12 +76,12 @@ static int64_t write_sysno = -1; static SyscallStats *get_or_create_entry(int64_t num) { SyscallStats *entry = - (SyscallStats *) g_hash_table_lookup(statistics, GINT_TO_POINTER(num)); + (SyscallStats *) g_hash_table_lookup(statistics, &num); if (!entry) { entry = g_new0(SyscallStats, 1); entry->num = num; - g_hash_table_insert(statistics, GINT_TO_POINTER(num), (gpointer) entry); + g_hash_table_insert(statistics, &entry->num, entry); } return entry; @@ -232,7 +232,7 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id, } if (!do_print) { - statistics = g_hash_table_new_full(NULL, g_direct_equal, NULL, g_free); + statistics = g_hash_table_new_full(g_int64_hash, g_int64_equal, NULL, g_free); } if (do_log_writes) {