Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2832789lqz; Wed, 3 Apr 2024 09:46:14 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCUsxE3KIp/soFvZ1YrFnCrrrggQSSYPE5jDsREvzREe1w9AoCyloJZ7TvWt47RCDw1PdzrGPzS2QCxtUOAmDe1zrz1PmVFo3wHuXoa1NQ== X-Google-Smtp-Source: AGHT+IF3UMncwu1l8KuMgn7weorLV91K5b2PJIXtDDQvqqme9Jwbef/xyPOHjd5ywqXDzWZnERUp X-Received: by 2002:a05:6402:27d3:b0:568:d315:b85e with SMTP id c19-20020a05640227d300b00568d315b85emr2776136ede.36.1712162774158; Wed, 03 Apr 2024 09:46:14 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1712162774; cv=pass; d=google.com; s=arc-20160816; b=ORxmHStsB2P/Riuc7B0svliDO+lj+eFDuEN4soW79Ms7wVlKbO0efDy6F9I7gA5A0t BcPohoKfeT9MZulSX4OlffsAiyOIodaAydrVLd096ugxVTzZ/N4uf5PgzxwEKy4H2K9E YhntWyuYQvh+kCrW0g610AE0VISzW9Uv3rn24WDx3xnzKcNU18tjMzrc6upeLiY7Ecxb FbDqaHumavFqZ90nI2fmUDlLm+W+sj4USnCxOJny5NvlE22ILijron/hfl3JZEMoXi4G llXly/U5jLLnGd05MOgB9qB8pKct/w4x0t9GLwexaBqyTw6pTXQ0yaW5UVc1RYlwGjc6 D0+w== 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=w2XiMSjkmlA+1wEEC5Se2yKd8CdqYvDu4BPTzKPRgF0=; fh=ExGhjNQEFJgRqHmYATVc5UXZbS7abAmaHDitrfHKOuE=; b=knY+4B5dKZ1j+qhKVSuti8eZPal0rbHeIvKXzEiV4rt1y2HEJAq41RS0ULjlYMOZPA BLcgoSgHlND07Z3GfdD3KMaHAldNJAoBgU0nH2IRSLSMRd5LhlqvEs6URNiBkVTPkEzw gZMj6YR5ra4QoMrgXoiObogMfqkxCKp+qGFudgwRZcFdIh/WNaHni2KBwhxmkWZIy3ns YNWUeSqYs7KZv8uJx3HrCjfXe66A7H3XOJNdl0CgCZXOvCXlXoUi1G+EvY0pt58r46M0 f3xO4l8glzRybVsyaXByR4TPAKqCaMsQTfC2mxr51TVyqsbIbpnPlWLtzuxg25ZICtoA tXQg==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=CvfLjtWZ; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-3158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3158-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 u18-20020a50c2d2000000b0056dc5dbcda5si4302725edf.381.2024.04.03.09.46.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 09:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3158-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=CvfLjtWZ; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-3158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3158-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 D6B171F28AE4 for ; Wed, 3 Apr 2024 16:46:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B504C1514EC; Wed, 3 Apr 2024 16:46:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b="CvfLjtWZ" 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 8EB0D1E520 for ; Wed, 3 Apr 2024 16:46:03 +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=1712162766; cv=pass; b=QCJKJfCO4mGdLfJsg/FJRCqZMJRdzf2OfvCItnb31ESjjJwkVv+fSR+CE0ZTTwYyL4uaR1QnAJ9ehLMeg/LfUEA+xDIAjizH2l/9Npfpy9uHRxzMcCJGMNKECJYtRF6jr+iI1HNs9Pwylo/o2+z3uyQ9MPEVuDGsvPjpJM8melM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712162766; c=relaxed/simple; bh=FhYFuDvPU/hqlJtgPz6OQE0M4yha6KjiGrO0TI1ipqo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WOjd9xU/p+GeqQyC8FEqT/wwtsQlWVyFwkemJNUaquhS7EUEa3XQDFn1oUsTfgaRvOPiP/CLINDCQSkwCWnR1EWpcFDJKcm66LVvacu91LbHQ+GZqPIBbbLhsJabslwmXRE7UWYx5PnGpoJQwRDO/Rz3EVogxc0Alobc2woLDkA= 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=CvfLjtWZ; 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.138]) (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 4V8rGw51wtz49Pys; Wed, 3 Apr 2024 19:46:00 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1712162760; 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=w2XiMSjkmlA+1wEEC5Se2yKd8CdqYvDu4BPTzKPRgF0=; b=CvfLjtWZscbnsop0m8y5eAHrj01kqjPsccOao/HE3SkT0DHECDDTa198jUSRqSmL+SjPoR isbV/u97vQUbDKHD9nNAcdS6ttiz1liL1dvbxNHRfH72Hd2EbKbVDVFIR4EiqC7mQBnsIm MpzZrhb9MQUeyFBdjBXF8eIUsEQ6ofIzv9uZNmHXPd7xXG4rf/6oxWZV1ZQfzQ+u6Z60xH VqmxOdPr6CMEZdSSPx4O5qp4cliodAgs8/5nRdQ1oz4aaybiacTXzqzF/Lr+UAM6pAOCvB b7j78P5Xm8xz7iUBiCL0Ci1fEJQPyRfqE4heBIRjH4eNYs8TP/NG/Z3ukm9asA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1712162760; 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=w2XiMSjkmlA+1wEEC5Se2yKd8CdqYvDu4BPTzKPRgF0=; b=gTkYEOIoy3YIXGgkbFkMjaFaxHr4a0cYdjGAcq74OUBh9QuVXwiwKmX/X6t8vulo18ZbYA /9lPXrazstOJAiiMP2sP855u4jPn6/7iCNNrkRmc5g8j1+p2KNoPjw54TQa++wNxts1LFl vt4/V+nK03R7SAc885lsLJ4BujBNZ7lzel6QTvyxsJG3W05DZd9rjSZKWHt6W6DMYfhFBO GzOjk1nixlmpSc6pfcxypuBptSxK6BGC7ZVEqZCBRn3tNv/dv3OrncIMeZZLLBwRedvW2x SAgYpJp+X0QaN9Jo0b9EhHIm26WTsolZk5X9Iz1kD3fzd1NynwCAs68WKjzQaQ== 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=1712162760; a=rsa-sha256; cv=none; b=XrshXBy44OGSM1YJsyp2gJolCbZMwCYcRMw/W5TMj4W+w8JKd3E+uJUkdf6RnxUkXBAkDI xXkAtrf8JY/kmMAz1S2Vyz3BsIHRaM0hW8h4LantlVCYxrMZqkB400bXKC81XnGGrUq5GG 14mqp2iIDgJ/F0TMmjf6IIr4nKiqaAM93LQnNwstyX4uiSkpFDUVGvKhnNq/CpA0xJdYxE jg2m6TLcD05JqINfr65r6MKeXtFEYmbHc8BPF+hglP+xxSNIoiEkKWbH3gKw9RLwuWCbvX rhkHdVLoR8z5KWHMHYRXDwPXSrnXx1Fc3p7fWc+AE41l/tjwmbOo0qYyJkDZyw== From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ v5 0/7] tests: add TX timestamping tests Date: Wed, 3 Apr 2024 19:43:19 +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 v5: - Add comments & rename send_extra* test data fields - Rename tester-utils.h -> tester.h - Use int, not struct so_timestamping for setting SO_TIMESTAMPING, as CI seems to be running old environment without the struct. v4: - Drop BT_NO_ERRQUEUE_POLL test and lib #define 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 (7): lib: add BT_SCM_ERROR 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 emulator/btdev.c | 11 ++- emulator/bthost.c | 205 +++++++++++++++++++++++++++++++++++++------ lib/bluetooth.h | 1 + tools/iso-tester.c | 182 +++++++++++++++++++++++++++++++++++--- tools/l2cap-tester.c | 148 +++++++++++++++++++++++++++++-- tools/sco-tester.c | 96 +++++++++++++++++++- tools/tester.h | 163 ++++++++++++++++++++++++++++++++++ 7 files changed, 760 insertions(+), 46 deletions(-) create mode 100644 tools/tester.h -- 2.44.0