Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2891280lqz; Wed, 3 Apr 2024 11:27:15 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCW0lOzFBqdiC/Ut7w4oBJi/uftcYrWHXoFqcDJuIkJAL30tNiSlPjveKLBeDPpNfHRa4PgB4d6OUnNz/yytZLDgGN1Ay6abkqgfUfk+0Q== X-Google-Smtp-Source: AGHT+IFmGwI8mCegDGweVS1uZRPHf2pNb5i+OzIOevGNpnJKBg2vGPXA1hJIAaQn5D4TJnyXnu5u X-Received: by 2002:a05:6358:9389:b0:183:55a6:b240 with SMTP id h9-20020a056358938900b0018355a6b240mr67733rwb.4.1712168835228; Wed, 03 Apr 2024 11:27:15 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1712168835; cv=pass; d=google.com; s=arc-20160816; b=MjZzvUzl6k58RdacKeeyqkzlRWBtxiW/vMgF/2x2yw13foerYo5Q6EJzns81w3RL/R RyHeU+uvprFbFbvXjHk6lca6noDHLcmM831gAEveqT7S2DBQTpmdhWYr5O17wcW4/MVK RA2cMLPXuvXy3leTr6iYRYogIg5A3LMCaeLSn8mq/ARitfnKFDL1xKQ+vgHngfzuYVwB +SFKsEVAiMkyrqWmXnabLOIvd2JfBZbhYLpvN2kO4j35CBWDmU32UMcUUbMPK1HoIgNp dtkfxaW3VYTrpT8TCTYzrsdN0aPpzBFxKJyZqr8+R17M39JfYujNhYIoaJ19GvFSnoWp ojNA== 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=nk4Za9qGbkhNRNSSrlVFAsnYwwagKzqIsRwy/IOmD0I=; fh=ExGhjNQEFJgRqHmYATVc5UXZbS7abAmaHDitrfHKOuE=; b=ZMORYIOi4m6QmKRqle0JUXUR/A/D8q6BeGcAOOb0TFxs9Q8wd19Mn0cOX5v8F/6WSk LnXgEv1umov0xHUkPNSzcnhZya8Zer6IJ9qqb67BaYoYVKAK3+HdU9jZUt5sgSypaHev TqcWhcU/wGXqfShDiRML0WzPS04CjPyZRQPOyPLAHIkHIIYpEiiF7wZgbcvwOtl9rXS2 iUuC0eFVxh64JkDuhBTDh1A6BTHH/DIxiM5loBh3GD6iRddGnAo5WzVCpNO1aDxdkPo8 /DcssF6CFg8PdWH4JK/5qwjU2j4Riiz119hRkfQLQPS6tdbBDtZIDlpSIYT/QX8l2IgW Ed9Q==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=AaJknlD4; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-3173-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3173-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b134-20020a63348c000000b005dd3d01b50asi14111654pga.17.2024.04.03.11.27.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3173-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=AaJknlD4; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-3173-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3173-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E0F1B284493 for ; Wed, 3 Apr 2024 18:27:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B91C0153BEC; Wed, 3 Apr 2024 18:26:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b="AaJknlD4" 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 DE14915099C for ; Wed, 3 Apr 2024 18:26:54 +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=1712168818; cv=pass; b=n6J2UpeQEqbil6QRArPfO4SYxc7hGHef6xYPb44cQv7r96YeZ5KQcEJSBMH3HoG135rhboZL4GUF+5vrOZmIJELi+xbuSP6MFUNJPvyUJ1vAG7TnAADTvS9chu3SV8c7QhNNYWiFMDj/vQH510wqIYqnc/mMYK9c5uV7PNJ/ev0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712168818; c=relaxed/simple; bh=jB5V9eAWljdX3T6Dr8ODhqKOUwKUO6Sx4zvgxPVC6W8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DgfkMc8igwFNe8BA6Yf8kNCtP1Ipp9Itfd5kPgNQ/uISCayfqak6YHWc533wg0+zYi7C+R2zTAoD4/hSqEkhPFOvGayo1dfpo+11eYBQfhQkiabMV3Hy5gVlsCADFHb3AfBqUz4sd7Vx8GiEfADpzr2ZvJoJd4MwCnBpBjpbTZQ= 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=AaJknlD4; 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 4V8tWC05PVz49Q10; Wed, 3 Apr 2024 21:26:46 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1712168807; 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=nk4Za9qGbkhNRNSSrlVFAsnYwwagKzqIsRwy/IOmD0I=; b=AaJknlD4v0p02WdyPya5sirkE145OfndPt0XpwqbU6R1ACaf54aJC0fjcI9vW8RbwBuSaP Zs+aQ4ONkrgJfz5IQFifR6ifS60MVcyVWQU5GYGMshZyVF+Zx5BI32eZ6B1vWpIWY3NfBG lUv6YFCEVzVHZ6yCnwz26cG00MM1qSqECHHvz2bwLrxeb29gXXZzfmtu7wxrXlCwH+8R2Y bUFW+Es3CohGY115eb90/BTMdx6M3ibkIPnBpvF0upL6QGBTAMTY04r9Kubt4pnZbHVS8R ZlrIO5Z6/4xsrFiPtCjm5/Sthz+C6gpqPO9WL3aV3yPUH/CNpZNp4JHaVTDVYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1712168807; 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=nk4Za9qGbkhNRNSSrlVFAsnYwwagKzqIsRwy/IOmD0I=; b=dJ0YNeVQS307O9WLh+W0j7JfmhMNepOKnVibEdwFRyCjSdUyPuykHOu3i/L+cwAkbdf/2m lkXlbYY+G4YIiCM1sBis0LOlOsKPZxARE1lSwL843JAKe2VpqZ2ev+o2/oBR+q72nCiG8J l1GdYeGREdh2zM0I23Tksu/oQzclZpFcioA+qAc4ncJku5BxkXG64CE9SgKeqCYldQ0iNG mztdJZmIpreJ8ZmE0PPboLE358VRNrTiOrtW9A13Aiojg8FcOsE4pZVgwvSGKpe5PoAMgc dT4srDkDBCS6j3Do9MlooQtdsXbBXc3/UQxHfXXGmy9oP9Tm5ogv2wlZ/4MxAg== 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=1712168807; a=rsa-sha256; cv=none; b=kicqRS7WuYJdDfaiq9zbSUit4r4P4oxrALbXRD+y7ix9Zgar1w3ptQlMNBuHCSG/plzD1o xOCLtDvuHPPLFseZq+F9mbHoILU91NYSt3p430GMbj/KXEjAtPJuWgg9iTzhtIQ/41jhz/ sHVYiWHKrcmtXoOJ11rRbVlVf4hdqzo0sHRs0fsAvuF5h6QZtyHshVWvh0pvmOzii00Hfl Z6pk4BbtGGJXRyEcxZ2CUA+/4iSj1JPXZYz5Pb16dcCQjqO+bYYAc842VR+M4cw13P7L9V oqzz0ytmHiSA+qJNZe+0pLRN1jWoApIZCoZ+MT399ZD7fnHOlmjcsKTfU3mnOQ== From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ v6 0/7] tests: add TX timestamping tests Date: Wed, 3 Apr 2024 21:26:30 +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 v6: - Rebase. 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