From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id evzED1GF5WVaaDcAWB0awg (envelope-from ) for ; Mon, 04 Mar 2024 03:24:49 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=hFy8PqpY; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 272DF1E0D2; Mon, 4 Mar 2024 03:24:49 -0500 (EST) 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 871291E092 for ; Mon, 4 Mar 2024 03:24:46 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6E1F23858409 for ; Mon, 4 Mar 2024 08:24:45 +0000 (GMT) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by sourceware.org (Postfix) with ESMTPS id 8A3DC3858D28 for ; Mon, 4 Mar 2024 08:24:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A3DC3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8A3DC3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709540655; cv=none; b=YKHvMCTT7SO8MdtLyi2DUqhyd3329DZFIheGbgm/z/stbsBcWPICffTRxm8zLeUCfI5dTfx++LV75nK7jNyxHiMwxN8Rpgonh3ODoRRR6QyMdOUfTnr98V9cdkpMpRjzpKaDF9wC2ihPfAD3SjJXTcaPqPxjOog4tZ7SHgTn2KI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709540655; c=relaxed/simple; bh=PQHgOm+AU3HIGK/2rutYT1VxisYMZejLIy46a1PrQcM=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=lpIJQbvzXClXyIdwYI1oD2qvfzGts9IDPcIivSSNy084DSQhByXGOriGlgj3plUAgF+GO1YlHavl6uTzPi/FDqhiDRpx+SH30t3M3HXJbdRXWpkRrQX9Dx5J8BSId46MEPWrndaaSJ1nDNR1RBDJJj+lvL6YNl4ZVhsJDAdatlw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709540643; x=1741076643; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=PQHgOm+AU3HIGK/2rutYT1VxisYMZejLIy46a1PrQcM=; b=hFy8PqpYc6d82Az88DV50UcCyj17YzCPK6525eSk6+2MdpHwOJ/S3RYT E1IcJirzMpPxqOJL4s1WDwj4kX+vwjYjqbxFUaiYaHKOvgBQScqdDOqzw d0gF4SEgm7F6j5OQK/Bc2z28MNNSMWRiXiE3KIOduhfQCQ8n74ziy7QSM zQ74P/Y5ydXuc/vkCVDhFm1ZKMIeuAOa1UuQtdq9bhn3Hv4gFDf7mZVVG 30E4LWAZRj9R4kuw96WCSgr2Zrchs0aB5GTTc1FJSNxaY965KzbfeCTMe WmGlzTvyUUTVt+N/trmIeoPxtFJOK+TxQ74qLYyPrjTyQ+xeJnzmnvJuP A==; X-IronPort-AV: E=McAfee;i="6600,9927,11002"; a="14663275" X-IronPort-AV: E=Sophos;i="6.06,203,1705392000"; d="scan'208";a="14663275" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2024 00:24:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,203,1705392000"; d="scan'208";a="13606410" Received: from abijaz-mobl2.ger.corp.intel.com (HELO localhost) ([10.246.42.1]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2024 00:24:01 -0800 From: Abdul Basit Ijaz To: gdb-patches@sourceware.org Cc: abdul.b.ijaz@intel.com, markus.t.metzger@intel.com, blarsen@redhat.com Subject: [PATCH 0/1] update btrace tests to test all recording methods Date: Mon, 4 Mar 2024 09:23:53 +0100 Message-Id: <20240304082354.3336-1-abdul.b.ijaz@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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 From: "Ijaz, Abdul B" Fixes the feedback from Larsen and Markus in V2 patch. Changes since V1: 1) Keep the function name allow_btrace_tests for checking if btrace tests are allowed. 2) Update the allow_btrace_tests function to test both btrace recording methods support and return 0 if both of them are not supported. 3) Remove unnecessary changes to add "allow_btrace_pt_tests" calls for btrace related tests in gdb.python folder. 4) Since the function body of "allow_btrace_pt_tests" and "allow_btrace_pt_tests" is similar so caching functions are still kept but the function body is copied to common function as per the feedback. The feedback regaring gdb.btrace/tsx.exp test is not updated because of the reason mentioned here: https://sourceware.org/pipermail/gdb-patches/2024-February/206617.html V1 patch can be found here: https://sourceware.org/pipermail/gdb-patches/2024-February/206529.html Thanks & Best Regards, Abdul Basit Ijaz, Abdul B (1): testsuite, btrace: update btrace testsuite to test all btrace recording methods gdb/testsuite/gdb.btrace/buffer-size.exp | 37 +- gdb/testsuite/gdb.btrace/data.exp | 64 +-- gdb/testsuite/gdb.btrace/delta.exp | 102 +++-- gdb/testsuite/gdb.btrace/dlopen.exp | 37 +- .../gdb.btrace/enable-new-thread.exp | 35 +- gdb/testsuite/gdb.btrace/enable-running.exp | 59 +-- gdb/testsuite/gdb.btrace/enable.exp | 153 ++++--- gdb/testsuite/gdb.btrace/exception.exp | 103 +++-- .../gdb.btrace/function_call_history.exp | 414 +++++++++--------- gdb/testsuite/gdb.btrace/gcore.exp | 34 +- .../gdb.btrace/instruction_history.exp | 303 ++++++------- gdb/testsuite/gdb.btrace/multi-inferior.exp | 62 +-- .../gdb.btrace/multi-thread-step.exp | 106 ++--- gdb/testsuite/gdb.btrace/nohist.exp | 30 +- gdb/testsuite/gdb.btrace/non-stop.exp | 305 ++++++------- gdb/testsuite/gdb.btrace/reconnect.exp | 94 ++-- gdb/testsuite/gdb.btrace/record_goto-step.exp | 39 +- gdb/testsuite/gdb.btrace/record_goto.exp | 310 ++++++------- gdb/testsuite/gdb.btrace/rn-dl-bind.exp | 61 +-- gdb/testsuite/gdb.btrace/segv.exp | 40 +- gdb/testsuite/gdb.btrace/step.exp | 48 +- gdb/testsuite/gdb.btrace/stepi.exp | 205 ++++----- gdb/testsuite/gdb.btrace/tailcall-only.exp | 92 ++-- gdb/testsuite/gdb.btrace/tailcall.exp | 133 +++--- gdb/testsuite/gdb.btrace/tsx.exp | 2 +- .../gdb.btrace/unknown_functions.exp | 66 +-- gdb/testsuite/gdb.btrace/vdso.exp | 34 +- .../gdb.python/py-record-btrace-threads.exp | 75 ++-- gdb/testsuite/lib/gdb.exp | 124 +++--- 29 files changed, 1689 insertions(+), 1478 deletions(-) -- 2.34.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928