From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id w9R6HkbctmMb7w8AWB0awg (envelope-from ) for ; Thu, 05 Jan 2023 09:18:46 -0500 Received: by simark.ca (Postfix, from userid 112) id 717631E222; Thu, 5 Jan 2023 09:18:46 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=RCKrgAWy; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 1A89A1E110 for ; Thu, 5 Jan 2023 09:18:46 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CF7A3385840C for ; Thu, 5 Jan 2023 14:18:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF7A3385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672928324; bh=QVh5iTOre6mBKdwTbha12I0r+f9rF2bHVLNpTx2Vd9k=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=RCKrgAWyHYF33zhMqwSuOLZjpVcPZ79VA+uY40ePcj3lUKoJI0ah72rxKKWIHUBoV 7rRe/KNZSp+MUFuPNdRbCjzjYwIYblgdEhylmZkK+VXbGb3n5IjO7A5qYp+SjeBPwk Bwqf99f3h/xybJ7q7MmDG3dLpaLGEztA78NXiup0= Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2061.outbound.protection.outlook.com [40.107.6.61]) by sourceware.org (Postfix) with ESMTPS id 2256F3858D35 for ; Thu, 5 Jan 2023 14:18:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2256F3858D35 Received: from AS9PR05CA0105.eurprd05.prod.outlook.com (2603:10a6:20b:498::20) by PAWPR08MB9519.eurprd08.prod.outlook.com (2603:10a6:102:2f1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.9; Thu, 5 Jan 2023 14:18:13 +0000 Received: from AM7EUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:498:cafe::66) by AS9PR05CA0105.outlook.office365.com (2603:10a6:20b:498::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.14 via Frontend Transport; Thu, 5 Jan 2023 14:18:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT028.mail.protection.outlook.com (100.127.140.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.14 via Frontend Transport; Thu, 5 Jan 2023 14:18:12 +0000 Received: ("Tessian outbound 3ad958cd7492:v132"); Thu, 05 Jan 2023 14:18:12 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 82d9636cd656b61f X-CR-MTA-TID: 64aa7808 Received: from 38a0feb0fada.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 99CEC9AF-993D-4105-BFE2-6C6569D03219.1; Thu, 05 Jan 2023 14:18:05 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 38a0feb0fada.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 05 Jan 2023 14:18:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RjfM5iL99/gcsqE5Kifu2VXVasEcioJowGZUh/EBU/b8cXmISWs684ToKGoHxDutcvP35nhaat7PZakKW3hg4GimDZdQOB3fq4FHaL8GwQDLaxoy3YBC30AQEFDVTF0bW2/N5Obg45rNztWlThvQ384g7X9wFcIAdtSim6nsm5O2Q0AjeYFGVPPz4BNQO4SsuEHasIh7NUeJtjFM09TjqjFchfuatNM9mK1UFmB5rE0ZfkLTY7vIN7kS0BlAWfQWi/1Nh9Jz580vbvlj7y2czNs6Gi9831hfAx7aiFJfCaWZYJZeb2Xjb7o3mgcB8MnxhTdxpr8NCShvXpz0C9Qnnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QVh5iTOre6mBKdwTbha12I0r+f9rF2bHVLNpTx2Vd9k=; b=N9I33JoKdHgfqRsj8RU6XY8ER6aF2F/4rULTCRjf2glv+nZdflomBzsaXQds3L43dy8+oJlPlEdzpxI68dSXN70pPdRK8LzygR4z61BECvjUndOaHDEWV+jiCoIYW2aKm2TegQoA+zbEtmzMkbyF8ogYl5yn/WFIgajgUMhnhEBvbrzrjn/HcauK64XFqBKTNG9ohdQ0wHOqfjXRwM7eKaGunhLt/2TDtW+WJmu7/PS9kL5EBBZgDjcPCtiC+YQ06484wkernOKEbGPZB88fxKFOm23sbYahBGCxIi3+ONCFHi7fRp6hT94t4Vqgz2moEDhVLBE1DoS9E/Z6sQDwyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by AS4PR08MB7880.eurprd08.prod.outlook.com (2603:10a6:20b:51f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.14; Thu, 5 Jan 2023 14:18:04 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::eed7:25a3:e4ea:187a]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::eed7:25a3:e4ea:187a%6]) with mapi id 15.20.5986.007; Thu, 5 Jan 2023 14:18:03 +0000 Message-ID: <2cb0ccd4-35a7-a216-383a-18d255c985cb@arm.com> Date: Thu, 5 Jan 2023 14:17:56 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Hardware watchpoints on GNU/Linux AArch64 Content-Language: en-US To: Florian Weimer , gdb@sourceware.org Cc: Dmitry Belyavskiy References: <87tu18naqq.fsf@oldenburg.str.redhat.com> In-Reply-To: <87tu18naqq.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA1P222CA0021.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:22c::28) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|AS4PR08MB7880:EE_|AM7EUR03FT028:EE_|PAWPR08MB9519:EE_ X-MS-Office365-Filtering-Correlation-Id: 5b980b77-61fb-4b00-c634-08daef27ae0d x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: RoyMoY7ZsOL6Au8qwoeEtzkrw7I6083amnqBypktXD+ok8Fm/WGZAVvbhHApJq3BzLQ+jh9JHMNJUWB3Y6mX48yAGJfVCVKjguG0a7t/h0C2F/y4kBCNsBJQwduULIz+VleIJypyTiFt8Bb/uvtMUQuEwZCrp/vIyAKkC+rsnw579jZ59QdgfMqTevfE1bqHORQD4bF0ZirkziUhFk49wlftWEtj6oTLr53eSVLXsk/UGyS70n4BP1lZMKAa6pyNCXUG2hsUiTwRzXYSueGEePlQQDIVqaSV6bb9fCnRfSxTAKGHqYMv05yVYAy0i8LswVwNsHjbPgrKkrl+weXT9HLnFMrwPs3dEB4GkmFWgiZlUV0uCtUZDY49wBgn6jmH9vYMfmvMZnH0EdKsVbwPY5jloUV66szqn5iXEcnb7lPsoOwzH1m+4wH5ngRHTdVbpb+mWLI4YdVETTJEfmClaK11Xrnf5DyR8tVj+RiOsLoifhTXA3wAnneThUK91pH8/VtewQdS0oi6FnDk3pm8cc6XVoLYejzs/g7K9h0K4pWDqPEROQxvMMcpvhtJROcOum5w0MNzA24BEadn+gdJxzvtQSWRW7yhNgTrjHf9EMHLiZ7mkQGf5Cs5ZTEdEWQU2hON/Q4Uwe60fv6qD/2CHldBdr1HcupF8A4jHVCleskiFiEcR8OIK3/n1iv7iKGydLMyc+eR11RWL6VWcNj0xJgZfbp+0jCFbgQr0tty61E= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB3919.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(366004)(346002)(376002)(396003)(136003)(39860400002)(451199015)(31686004)(38100700002)(2906002)(36756003)(41300700001)(316002)(2616005)(6512007)(86362001)(31696002)(83380400001)(53546011)(44832011)(8676002)(4326008)(6506007)(478600001)(66946007)(66556008)(66476007)(6666004)(5660300002)(26005)(186003)(8936002)(6486002)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7880 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 7e183fa6-e7a3-41ab-0ab3-08daef27a82e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1QXswsoAJrztvCYf+dQuzOK0sG5pvrGX2KpI+FRUl8D9kl47b2W643DrxzeeJ4flTS0UMxlp75cHfLdVIbVee7ga5EIzZNd8KKhZ33nAOsFPuMVR9sOkqx6S/OHRe23kF0cPxR2iyCikbpuzlimaRwCYsyan5pTV2T9Q9KGJd/YcdK+e9zWEJAkTol1wMwgjG484lgSR+bxcjIx65v2oYArJ+DnmjG7nKHyxg9xveYyxZrjxqoj37jT79vuo5zByiBtiY6ZFb6AXoDOp58gwKzecHLzqJ97F/RIVZxQcGd4dPy0BJoujjXwHxAF0tWEvbFimVuuXau5msGerGgqwSOTLPoOrLCBh2Siim9GEgyrFJ73qJG3Z1K+rmqTLZ6WUMsUo59tot/VqDiM1y9mKe3OBGVN1Nn74fp17SB6XxQRxwgN/QCHhWMUPvun7FFtA+7NUqwd9A8rCvbZzBs/O9iyK6U8Yo2TmOanO2MtGGA1AcxFvqWExcKQ75GbU45WQBy6Wvc4zOCIKf1NsPtGgkzTwvU7F1He/YZcwcoLsD/gT8z3o9DIz/ksOB6fk4mwDk3iOBtH0qUcWDLibq81inLGAkOUOmT4Te7rY3Wrku/6AOjJi0AUmNCP2hXUPfZfrNgPO/s1U+U5phMh7wZIzFyxFfeZ0HVFy+AXRgi4Zlx9zKHo6y/5yrlix7MnhyiaaR42sji/EyfDCclbgpy2mZrTPRpAUQPRdROSWPgOSoPk= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230022)(4636009)(376002)(346002)(39860400002)(136003)(396003)(451199015)(46966006)(36840700001)(40470700004)(81166007)(6506007)(53546011)(107886003)(6666004)(336012)(478600001)(82310400005)(6486002)(2616005)(47076005)(83380400001)(2906002)(186003)(316002)(36860700001)(5660300002)(86362001)(31696002)(40460700003)(41300700001)(31686004)(44832011)(6512007)(40480700001)(356005)(36756003)(8936002)(26005)(70206006)(82740400003)(4326008)(70586007)(8676002)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2023 14:18:12.8622 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5b980b77-61fb-4b00-c634-08daef27ae0d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9519 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Luis Machado via Gdb Reply-To: Luis Machado Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hi, On 1/2/23 16:48, Florian Weimer via Gdb wrote: > Running > > gdb-12.1-10.fc38.aarch64 > kernel-6.2.0-0.rc1.20221230gitbff687b3dad6.15.fc38.aarch64 > > I do not seem to be able to use hardware watchpoints. GDB just logs > warnings: > > warning: Unable to determine the number of hardware watchpoints available. > warning: Unable to determine the number of hardware breakpoints available. > > I see AArch64-specific code in GDB, so this is a bit of a surprise to > me. > > The machine uses virtualization: > > Architecture: aarch64 > CPU op-mode(s): 32-bit, 64-bit > Byte Order: Little Endian > CPU(s): 3 > On-line CPU(s) list: 0-2 > Vendor ID: ARM > BIOS Vendor ID: QEMU > Model name: Neoverse-N1 > BIOS Model name: virt-rhel8.6.0 CPU @ 2.0GHz > BIOS CPU family: 1 > Model: 1 > Thread(s) per core: 1 > Core(s) per socket: 1 > Socket(s): 3 > Stepping: r3p1 > BogoMIPS: 50.00 > Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp > asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs > > Is this actually expected to work? Would we have more luck on a > bare-metal system? > > Thanks, > Florian > Apologies, I was out for a few days during end of year. Hardware watchpoints should work on AArch64/Linux. They should also work on system QEMU (though there might be differences in behavior). I'm not sure about KVM though.