Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4188974rba; Tue, 2 Apr 2024 09:43:23 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCVmHB+5aqlxRw3SrkgSw9uTuetlAOZmrUP9X2AX82X6LEVJg81HmdKj1sWth6I57rBtkSgZWnMVdyhgPkOojYd+MNf1JyPQv51CLdaCKA== X-Google-Smtp-Source: AGHT+IFWhnUgG/mVzGXOey0v7eG1plL9uNRce5msW42LiJ9LTm7xG46TY0fd7KIogzWIRDcWdhEK X-Received: by 2002:ad4:50cd:0:b0:699:1877:561b with SMTP id e13-20020ad450cd000000b006991877561bmr2753285qvq.46.1712076203471; Tue, 02 Apr 2024 09:43:23 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1712076203; cv=pass; d=google.com; s=arc-20160816; b=A8/FYUhFNcyqx24lnx/EyAPD201KhRH2Fo6KU/P6ozUpA/SyAmNqQjcIMUQxBKdrBE qqFtB4P1Jer7aWvegF5X5OFi76LkfZ5roWTJh4KSy/tcRyTjG/F3Lzaz+uAHUgUHOcvG sU5648gUqxMsbbhdMZ/1kVMX4u/KnNb7zUwYwhgcmh+m+EbqlF+JPHj2jN9bHbZEx1RX Ab/tm64/O7gYu3NXgIrMc5u/uoIkRO7TDoQ2hiy+9uPOfEKU5zyseovC37U30xCbE/2b EpkMBwWNWYkbjzMnAW38I4rfZ4lBrlShlL4LlyJh7Ogpsno2+2mhclop/Jnfq4+yL8wx Fa8w== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=lZMvxhHdxKpoG9GqA3FEMFAfZUyA6bhe5nEIIl9m+oY=; fh=ExGhjNQEFJgRqHmYATVc5UXZbS7abAmaHDitrfHKOuE=; b=o4vGuonUNfEHu3FE7NBZS3Gpxg4gEfyeOj2h+GizDBAhu6mb5MJv+VobF6pV30E4rA aREQSHKfRxXcwM39zmxXbhXtQDPdYFGEj3GEy36kxZYgcr/cGbMJvuWhY9Z3vO+8lEcI UvV7v5g5Nv0WNIPTjt9Q39ayvf+53bla7YRruyptZwtt4D6YOwViqDzU+AjiHn5OhGBY AEErixPH15JzsEL6h09/K/5C/FmJXofV+mi2xMfUff37cQ/Eig9snuX96UpymtJD9qSs GV9EUKOmvyeka6X4S/+1+PMZWxL1BkFBtxSnyrdNkCyOp91BZQa86abhhWYdnNNDJ0YG Zpgw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b="v/AjLieF"; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-3087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3087-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o19-20020a0ce413000000b006967ba7f1b3si12254913qvl.259.2024.04.02.09.43.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 09:43:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b="v/AjLieF"; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-3087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3087-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 21DAA1C2240D for ; Tue, 2 Apr 2024 16:43:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D34D159912; Tue, 2 Apr 2024 16:43:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=iki.fi header.i=@iki.fi header.b="v/AjLieF" X-Original-To: linux-bluetooth@vger.kernel.org Received: from meesny.iki.fi (meesny.iki.fi [195.140.195.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2CAD38DD2 for ; Tue, 2 Apr 2024 16:43:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=195.140.195.201 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712076194; cv=pass; b=c12A26Yf7OoE2d+b6uFO3IxEFRssmt3rIsIrIwsVsU1MXAPMEEVciIuqBIgHl2ZZb2IYshY7xBqeZuFHK43ikb9P7AHpRuis6gLK4G4vL6T+nEeuCbrK7mx8z+6FhcvWXziqNxTghz1QktvnRDzNcbXBtRWSxNlKSd56DqmXU5Q= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712076194; c=relaxed/simple; bh=bgdrKKzVaj9O/5siQbonr/BBLD7grpeAnx2TGl+N4wI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WUBmMwn0sKUausrFyu+PAU4puN2SDPmUgFu7Vr35mUJ/E97gS/X7RckzxK2QxjhncSwBui9paElbt9WOZSU8NvrcL0Z6Gn3lRtRcW+1pWO6iP3+Xey05XYmPY47bZWY31H6c1W5k904bX6k3a9Ig2dwiEdwz3CCdlgwKLiSA+YM= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi; spf=pass smtp.mailfrom=iki.fi; dkim=pass (1024-bit key) header.d=iki.fi header.i=@iki.fi header.b=v/AjLieF; arc=pass smtp.client-ip=195.140.195.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iki.fi Received: from monolith.lan (unknown [193.138.7.178]) (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) (Authenticated sender: pav) by meesny.iki.fi (Postfix) with ESMTPSA id 4V8DG56DqdzyTX; Tue, 2 Apr 2024 19:43:09 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1712076190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=lZMvxhHdxKpoG9GqA3FEMFAfZUyA6bhe5nEIIl9m+oY=; b=v/AjLieFRVh7/bdiISG0HtjOdaFQvkK9z7GZBBRwO53FKtoTE1oIuaVmqswDUdjrwUhJc3 fkja+TOk83mZ9xyDibQvAtznFcmYcgGlBSDl2z/G01LcKgm1TXvd/r4LDEZP7NusLZu//o mslrN4mzh19T2kOLMh4LFRYIy7PCyMQ= ARC-Seal: i=1; s=meesny; d=iki.fi; t=1712076190; a=rsa-sha256; cv=none; b=ywOkjtTSqy7MV+gc3Q35JnvV/HSx6TqVIRCD9VPowDm55RHUYn5nZPeF6wl4y2sgBhl0Dk VXeZCdOaxM9vO2gwj/YKCH487kK+2rYZV2UPUoI7ySGCBYiWY1DcbuoPr7ZqM7JVwDoQlv B087HznR15R6QioY6EuZ88rLKfko1Ns= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pav smtp.mailfrom=pav@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1712076190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=lZMvxhHdxKpoG9GqA3FEMFAfZUyA6bhe5nEIIl9m+oY=; b=O0qnsfvE6jSsOe4Ax8oGUdGMmZvrRGYUFtINBlOGQSz4lv1kWUy18LwaI1dkHEbCV6qkLs upYYHmUIxWXbTBOMVpQzLvu/QdAlqTjxrzKKktyNxm/o6W1QHqv+knl5UqGgjipvhA1H9m LaqcZm4ENEPiRaHb/qEuZDYjV1DRjaI= From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ v3 0/8] tests: add TX timestamping tests Date: Tue, 2 Apr 2024 19:42:57 +0300 Message-ID: X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add tests for TX timestamping v3: - BT_NO_ERRQUEUE_POLL experimental flag enable in tests - Drop tester cmdline patch as it's unrelated v2: - L2CAP LE Client tests - SCO TX timestamping test - Fix emulator bthost L2CAP LE credits send/recv - Fix emulator SCO send pkts - BT_NO_ERRQUEUE_POLL test - Tester command-line option -n Pauli Virtanen (8): lib: add BT_SCM_ERROR and BT_NO_ERRQUEUE_POLL iso-tester: Add tests for TX timestamping l2cap-tester: Add test for TX timestamping btdev: set nonzero SCO mtu & max pkt sco-tester: add TX timestamping test bthost: handle client L2CAP conn in LE credit based mode l2cap-tester: add tests for LE Client read/write/tx-timestamping iso-tester: add test for BT_NO_ERRQUEUE_POLL emulator/btdev.c | 11 +- emulator/bthost.c | 205 +++++++++++++++++++++++++++---- lib/bluetooth.h | 3 + tools/iso-tester.c | 286 +++++++++++++++++++++++++++++++++++++++++-- tools/l2cap-tester.c | 147 +++++++++++++++++++++- tools/sco-tester.c | 94 +++++++++++++- tools/tester-utils.h | 166 +++++++++++++++++++++++++ 7 files changed, 866 insertions(+), 46 deletions(-) create mode 100644 tools/tester-utils.h -- 2.44.0