Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp296000lqb; Thu, 14 Mar 2024 11:24:10 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCWtbZJG1TkB9cWAfXQ9/8jvHXe4A01k+ho0qUtgOyN6GHgh1hIAfcW9L1183uGtozBRUrH92Myb+Ehm9AUbWmoEt3VCVYfv++THuE+mKQ== X-Google-Smtp-Source: AGHT+IFMnO4X2RU2SVnRGSOLYg/X1FWzKb8Z8/fK9P25+K9/Y64otwDF2nG9aBmeyjIxS4elL5t5 X-Received: by 2002:a17:907:d386:b0:a43:eb29:a293 with SMTP id vh6-20020a170907d38600b00a43eb29a293mr1869477ejc.5.1710440650218; Thu, 14 Mar 2024 11:24:10 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1710440650; cv=pass; d=google.com; s=arc-20160816; b=bOeIvMoQI5cZX134uzYHqUy5a/URNiuHHQhqbdsXOvDsFTe6ZA+qXGt/emJcNowsD4 eW3rE07Sa3C1jHyk21emyEHbwOI7LVex187+yLNe1f6gEN7Tyeff+8iyeEoKDQvEsHyG EoX9qhwnB6D+8iSkPiJMjY6esdF98eriyBPwNVTXgS50doROu3+rOoYfuGSDkTZ6wzPR aD4AlJiRJegaSbn8zxta27LMdxO41P6ZGaBr/OBSpHqeOhbMLkF3iHBm/IsPltIgf/Zg 0kWBdchY+MoHWoj58sB3a2tU4Krj7q1gFOWlel2CGKyHqNbJnAWC2XiPpzmt4/KIM1iv eYiA== 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=JaZ79UACtlMgPYt6vsXWBGciZm8FyEZkGS3q5DgTAXY=; fh=ExGhjNQEFJgRqHmYATVc5UXZbS7abAmaHDitrfHKOuE=; b=XLoFzjNWR8jo30avK+UPPWXtj9uQin1CitLbhrxzzt0jmg8DUc4+O+7H0wGSETwtlw hbRxuUkLRt4ub8ZKN+kzW7kr6KSVifwC5nT7JZnLqWQbL2I85XT1UB6y3cd4mZP16vnz s+LHScrt07JZI7fstieeNsAf957AwogCfjXgRyS1RLqkXCI2Si355gKzHUp8pAWJnQxw 8Z48SMys09GPmd6tT0iVfa2Vg/aglT8ObLZpaTYXPv2NXtMWrqpZ0wTfdAV/MFP0W6ZD +S9yRvjr+KJbW87QeFj8wLHuEFMgBE6p+1iOTAOQEmlCG6D9oaRU89uQQv+l9ebcltGl e3Zw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b="rE8QNT/R"; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-2530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2530-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dl19-20020a170907945300b00a43d361aa87si958559ejc.277.2024.03.14.11.24.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 11:24:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b="rE8QNT/R"; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-2530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2530-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 am.mirrors.kernel.org (Postfix) with ESMTPS id EB8F91F21001 for ; Thu, 14 Mar 2024 18:24:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FC92762D6; Thu, 14 Mar 2024 18:21:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b="rE8QNT/R" X-Original-To: linux-bluetooth@vger.kernel.org Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) (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 C1D327605E for ; Thu, 14 Mar 2024 18:21:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=185.185.170.37 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710440496; cv=pass; b=KA0Z/zRF61coaNntOb6b6Mrv1CnaqQ7kaiSLEJm3krc6ZTkzHnWJD1OqrPeFbXTp3xCVFkDjSb8ej5nbHXvRNy9z99G4WJNBSu2WKJLo6h9XOetE+LecCXT8i5A9ruwq1rVVY2Kp5yePSdmQlKKJV3qenuSetizyvfv0jGg4c2Y= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710440496; c=relaxed/simple; bh=8YwhylR/VmehGNJ+Gx2c6nFiAmU+lHFUEiAn6SvqEYc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J9kfUidgNyeGdXzExC5y89cIYqzlx7MD3jdfRDEpzzDsrNsWhrXTEgKKnOVuVURdBddarnHlMoZJ0eFtKEKK1UodjW8oKufF+SkeVGCE9+uiFDSFREMRECQIP/o/T7RcdPYAxgbgJTGacWUnOgi8659v8ymoV4yaR4XAdOTu6K4= 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 (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b=rE8QNT/R; arc=pass smtp.client-ip=185.185.170.37 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.198]) (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 lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4TwbLG0jCzz49Psp; Thu, 14 Mar 2024 20:21:25 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1710440486; 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=JaZ79UACtlMgPYt6vsXWBGciZm8FyEZkGS3q5DgTAXY=; b=rE8QNT/RXNFu7BFdWT/dBoSgjez2OXWc7SCZR5YqFR9oXLli7qNxuHsPkItEzgMtKPhl++ j1w4/ChJsx3YaYfVi9fDGzdW5JbUWbCMED7XxayYBLFMvxwMvaW9CYRVr+iw4quheXKtKe UmChur+ryW/ytrAowttKCxNrg7SWrAfY2B7biY0vWH3k+eBwQLG6CLMONYTGOC4TqotOEA UOESsEQpLvZXQRlEnM0qNtXaDKZGkKva28ktJWybSjEvgwfhR5v6eEhMQSZNeNkwy1kwiT bAyvAg8rJkLQkTvePlUG4oPAuuQII6SYshp04RpD6sjWg+AyU8Giyiy35OqAYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1710440486; 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=JaZ79UACtlMgPYt6vsXWBGciZm8FyEZkGS3q5DgTAXY=; b=onB9XVlRcijrtiikRqjGVDiLiyz7jnicAAzDmob37U0atjTODpbOaSWr+G28/JP8rKNMsB t+8ejFJnojzV5K6MIxnU6BUtqh1g2IsCKk4A1/O0IDj2myxKomqdxiu5qhm3Bg9r7qhUvU +jH2xaxdz4ylGnmFFuZfwMYE1iIau1SunI/CBqseFNIDnCNOLLDVEGtBx194IER02bnN5G BQhWUjVg4w/2CodEbqRGIQlSiiqrmXNHrQikPilJb3NOyp/XGtzGXcEkhVp36gQjcfedZj YQCfo4sr8VL5iM2cGEj5nTU0xxUryOG4znU/Guac1GaEwQtxts91omGkY6roRA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pav smtp.mailfrom=pav@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1710440486; a=rsa-sha256; cv=none; b=M08bNm6ijqBDEpKtE/6ZrInQ2XxLHy7naat5tF7RdbD34eqHmlKqmrgEDtL36MOeQUKhx8 2hOmOoW2NgJauIYidjGYvo5t0IeuFa103WvdkgtHFXR8TI27w3wDlnWV+4cDD5CIfEEEF5 h8dEgjxYG42LcFOv2RFQMuBbSjje/Iz0E2zpzLUJHil506Ld05Dbbhn0BRieEBBo9ojFso btbfjC8PyQR/3XJyWcZB9Ag3ZQG1aC2zgPAXTOoS2tfZInmFe2XlAsctnig7RT0ZyvpqFA Pl6Kyx5u/i5qDW1mme+qLmF71iPBndYPdvl7HdKxvHJdk5PExOEhYEXinY11ew== From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ v2 0/9] tests: add TX timestamping tests Date: Thu, 14 Mar 2024 20:21:09 +0200 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 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 (9): 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 shared/tester: run test with given name 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 + src/shared/tester.c | 9 ++ tools/iso-tester.c | 237 +++++++++++++++++++++++++++++++++++++++++-- tools/l2cap-tester.c | 147 +++++++++++++++++++++++++-- tools/sco-tester.c | 94 ++++++++++++++++- tools/tester-utils.h | 166 ++++++++++++++++++++++++++++++ 8 files changed, 826 insertions(+), 46 deletions(-) create mode 100644 tools/tester-utils.h -- 2.44.0