From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id lJkgNPH3yWgwOQcAWB0awg (envelope-from ) for ; Tue, 16 Sep 2025 19:51:13 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=VHEljjJv; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C45FB1E047; Tue, 16 Sep 2025 19:51:13 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 505761E047 for ; Tue, 16 Sep 2025 19:51:12 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D708C3858C31 for ; Tue, 16 Sep 2025 23:51:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D708C3858C31 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=VHEljjJv Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 2F4033858D33 for ; Tue, 16 Sep 2025 23:50:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2F4033858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2F4033858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::331 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1758066634; cv=none; b=PvbQovFrJdN4+ZB8rWjijxIPhEKN5D17T2Ib7ufKxJVlTpXQ4OEXYw9HJZdX+jbtdys/xD7CogXkwL+KEV4sCwmhd4e4NsQEocI7yds0WyONnWRwRnRD4TiXap+nOYum2HP1kX5WGXN2Fq9DrU/XPQ+CP6IvWybB/9AdVHB9Rl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1758066634; c=relaxed/simple; bh=eI1bd64n/Bnq0NjWR3HUAptsrEr/oCP84rAZhF7HuPQ=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=fhtqmwa6mXl/KjuY3mkHciCj2m4jsN1KcZLgojoNI8pC6XD2MSfjl1BD04A4ZrJCLhKhnn8OyAAIXlUerjRam6fyQPFzpQGaEMAf/Z/Ha2xsXo7cnW2yQdQ79PrKFKXebo9GiHhEBH13FEKib/U2YtiqloenXYRxtI2SBje5lko= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F4033858D33 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-45dcff2f313so37713615e9.0 for ; Tue, 16 Sep 2025 16:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758066633; x=1758671433; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/zkJY47Xh1a7VTU32h3/MNAQ/L4ED+chPn1Z+JsEYkE=; b=VHEljjJvpro9pwd1VSQK7qvDrPAcK6/TzLrXEddye4T5FPhyo6byWK1oPtUBdiGKT6 NWTmspyNEe0w6+NSKHJkpCOECN+iSRZ9q8mCAAfRpIjvetd4K69EBTKDVGIy+AEynBVW IB1QNorKXd7TgCLEhrON+8cEekiCUwNw8iJLy8zCbupK8efZPvxCp/+CLtcRPWyKDBzg UAvSuCXTInJJgXZbfXRLA2PXXE8PqtxiJWOmTYvBCuZG/KI6fC24Jt8BAtAwvsV1h7vj by9DW1ul9tgT2znksEP9JMfL3kfvnMhE+6CrzeKVvAzWEpfhR+P9YQWjmNxUOb3A/MVp wbZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758066633; x=1758671433; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/zkJY47Xh1a7VTU32h3/MNAQ/L4ED+chPn1Z+JsEYkE=; b=ZNiG5Jg6UaxOg62+Ch0vpKdy9oVUZJPVbAG4h9T/wRTGmd4o2oL69QLYCFWDrYQ8yb 4I+xECIG6OIexE/wEzEbe9LhkHAonWIHKB+bmPewb338dg03FKc0e1XL9Oh+rFPH5vlV K8JqAx/XiJgSLsmE8uQP+OFik3/5kT0DtVGb54fJCB8OZWGq+VPte5LxEtLmQbamR81v 8Xtoz05C5t2OIMAZq2Vw5koTHuS+M0zSXdqDF3mCzkgh/IBGLEGk1QDEwlb9/28fuuAe MWUnhoSSLQ1ns5bo1iDz7pnIxjl3zscPjYPlyGKuC5HWbd0mKBD6+WZRuqJL419A3U4U 40eg== X-Gm-Message-State: AOJu0YyFg6j8wB0LzC1e1r5AT5vkY2Dqpn3RuwKL5C97JD2ibFhMdRjB UATx15Idsu8WJ0p+VLA2BNCjtQARA0EI+JvIia7SKmCYI4d+mLuYJju2 X-Gm-Gg: ASbGncuorKMd6vaKk/gXNvwx4Mn3UNJX+k7HbubDYP2wgAJg/3c7A7qXl8he2oYbaPK lHFIis7LV1rPJfF8cy7fEqQRpxGHxKhh2nkxOr1oUoHNu8BGuQ5/fAxL5SJ/lOz2Cl4yZMrXo7+ oMFdgtYDvQqev7e0vg+9iw//2WuNEA1/u94Ue4lh6iNcbhH+JuTkUKk2D6Fxx+zLd2c0Db15pm5 d4OihkoRKmWvoxe/ctsAAt70A6rr9t/bAdo4FX4MPrzA/Cfrs+MBasTnFEYJVrYD9ofAWJNjlyL klvNg6loQBftcgoBPQM8LiSpR07DxGVPkBCqCSas0V7B7bmceY119DfovP7dcWHdwZLA4xRxy9X EJj45NEJ65ffzHixjNRCi3l5V79C+Lo/V7R8= X-Google-Smtp-Source: AGHT+IHW3SzZm0NRGaABB/e6KIXFw4HV5X0wWvR9xA+t/5DfzD4BQ01b9CJwEFhkDR4p3OGrTn2oyw== X-Received: by 2002:a05:600c:548e:b0:45b:8ac2:975e with SMTP id 5b1f17b1804b1-4620665613amr714195e9.26.1758066632551; Tue, 16 Sep 2025 16:50:32 -0700 (PDT) Received: from [192.168.0.38] ([86.12.216.189]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3e7c778f764sm18573303f8f.57.2025.09.16.16.50.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Sep 2025 16:50:31 -0700 (PDT) Message-ID: <4c787104-a6db-4ec6-b128-83ac97e22016@gmail.com> Date: Wed, 17 Sep 2025 00:50:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 5/5] gdb/aarch64: Tests for fpmr Content-Language: en-US To: Ezra Sitorus Cc: gdb-patches@sourceware.org, thiago.bauermann@linaro.org References: <20250905131707.77027-1-Ezra.Sitorus@arm.com> <20250905131707.77027-6-Ezra.Sitorus@arm.com> <4b10117d-094a-40ee-b3d9-6eecbfaf2808@gmail.com> From: Luis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Hi, On 16/09/2025 12:09, Ezra Sitorus wrote: > Thanks for this - it's very helpful. > >> Thanks for the patch. >> >> On 05/09/2025 14:17, Ezra.Sitorus@arm.com wrote: >>> From: Ezra Sitorus >>> >>> Add tests for FPMR support in gdb/gdbserver. These tests check >>> availability of FPMR, reading/writing to FPMR and core file generation. >>> >>> For these tests, I have used shrinkwrap for FPMR emulation. I am not >>> sure on how to do these tests properly as there are some things I'm not >>> sure about: >>> >>> * Which board file do I use to test this? I've resorted to adapting >>> remote-stdio-gdbserver.exp to use tcp when starting gdbserver >>> remotely. >> >> If you have Linux running on the FVP, you need to build gdb/gdbserver >> natively in there or cross-build aarch64-linux versions of gdb/gdbserver , >> copy the binaries over and then invoke the testsuite like so: >> >> make check-gdb RUNTESTFLAGS="--target_board=native-gdbserver" >> >> You'll run gdb's testsuite against gdbserver inside the FVP. It will be >> fairly slow for sure, but that's unfortunately how it goes. > > Why is it the case that we run gdb + gdbserver? I assume this is less demanding > than running gdb on its own? I´d say testing native gdb is a bit lighter. Testing with gdbserver (or any remote target really) has a lot more overhead due to the serial protocol communication. Also potentially more file transfers between gdbserver and gdb. > >> >> If you want to exercise gdbserver in extended-remote mode, replace >> native-gdbserver with native-extended-gdbserver. >> >>> * Do I need to run the whole regression test? This is quite slow, and >>> comes up with a lot of failures. >> >> It is a good idea to run the entire testsuite at least once to make sure >> things didn't break somewhere. If your change is aarch64-specific, it still >> makes sense to run the entire testsuite (maybe run it on a big server to see >> if things are still sane), but once you know the code is OK, you can then >> focus on the gdb.arch/*aarch64*.exp tests. >> > > Do you know roughly how long this takes? In my case, I've been running for 24 > hours and it's still got a long way to go. Does changing to native-extended-gdbserver > speed things up? My experience with QEMU is that it takes less than 24h to run the entire thing. But the FVP is slower than that, so I think a couple days or more sound reasonable. Switching to native-extended-gdbserver won´t help unfortunately, as that is mostly a different remote target mode. To speed things up, you could test gdb/gdbserver on a regular AArch64 machine and then go do the gdb.arch/aarch64*.exp tests on the FVP. Given the FPMR changes are fairly localized, the risk of breaking things is low. > > On another note, I looked at the 'Testing gdbserver in a remote cross-target > configuration' section in the TestingGDB page in GDB Wiki. Would this be a > viable option? Unlike last time where I rewrote core_find for example, would > this help out as it delegates compiling to the build system (if I've understood > correctly)? Or should I just keep it simple with native-gdbserver/native-extended-gdbserver? Running gdb on the host and connecting to gdbserver on the target is definitely faster, but you need the board files to handle all the logic to spawn the emulator for each test (if in user mode) or spawn the emulator and connect to it and then spawn gdbserver for every test. I don´t think we have such a board file. That's usually a custom implementation. > > Ezra