From patchwork Mon Sep 25 07:20:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 1838928 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=xYiy2r2z; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=sipsolutions.net header.i=@sipsolutions.net header.a=rsa-sha256 header.s=mail header.b=bYmdz+uW; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RvDrD1mFqz26jX for ; Mon, 25 Sep 2023 17:23:39 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VWra7FmR1BQHH7T+k6vm3LJ8bKqlFXVY2w3CITNRA2I=; b=xYiy2r2z5hTCw+ qUI/ZaKFpkskTlUFZwsauZFhqZ+j6ynCYWNtij4Ex9F8pXEfwxHzN4L6+r5PiMnj3GSfyUJ0TozFU BZShqlmqRqdki5wzMDmpaNMwZ7nvmHM0ZtS6EYY8cpWtzPg0ltvTbcl7yn3z2W4ZUi5ioNF4tJ0+F MQqZ6D7r3OB3Z/wJOKRLbBcOXWEjXrMeZpCU28AoRbjnx0mcrtiPK0zs1FDZlGCyZNY7tjzLuwvad RFCJ7rvYUOnOHY4jkFKLjMjMnWzK3mOyZ/ly5uQoa7KSwtqSF3NpZUCc0uEdxw5I6fMf5+1+9zyoP 9pZCGX6aWpdBTErrz09g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qkfvd-00DYK4-1J; Mon, 25 Sep 2023 07:22:49 +0000 Received: from s3.sipsolutions.net ([2a01:4f8:242:246e::2] helo=sipsolutions.net) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qkfvV-00DYE7-1F for hostap@lists.infradead.org; Mon, 25 Sep 2023 07:22:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=WibSPLfwPe/vGsjeeJvixIuZGtbDB7L9N7i3rjIa5Tg=; t=1695626561; x=1696836161; b=bYmdz+uWrVBepR33RPwHXgaisrXn+bvyVYVPuoclfYzySpR UonICRHGOeIB3wr5wYvPprSdUFn0rUFnzZfaZXnudGLuPJxYeeOEP4/VwoGmEpLNgZh+pprJFofzl AGnATI50BlooqCHk5dTrhVhH65swDhxfucblC4eBRPn/jtdAoZpSSpXY4O35TlqBPnYnhETSoqAZ3 s9GEsqocforQEFVo7zWxTPmzTvXs3eRo+U2cUBnhHc4XkQfd1WfeHvsX6DqczYlDy/hYvyLGmaNNe FyBUtKgg63Y8No8hQmXSDP4/UQj81GifUMVwLEF7mP/7Px+wRmkHgkUUl7ReZXcw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qkfvT-003GNz-1h; Mon, 25 Sep 2023 09:22:39 +0200 From: Johannes Berg To: hostap@lists.infradead.org Cc: Johannes Berg Subject: [PATCH 09/17] tests: hwsim: add more tracing Date: Mon, 25 Sep 2023 09:20:49 +0200 Message-ID: <20230925092039.d926184d84d7.Ifc837773384c3539f2cd7559f53ddcf6fafa26f4@changeid> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230925072039.49987-18-johannes@sipsolutions.net> References: <20230925072039.49987-18-johannes@sipsolutions.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230925_002241_431785_351BE7E4 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Johannes Berg Add SKB tracing (which shows now why/where a frame was dropped in the stack), and also -T for stack trace at each event. Signed-off-by: Johannes Berg --- tests/hwsim/run-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Johannes Berg Add SKB tracing (which shows now why/where a frame was dropped in the stack), and also -T for stack trace at each event. Signed-off-by: Johannes Berg --- tests/hwsim/run-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index f63bb567766c..0d69f303c103 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -132,7 +132,7 @@ class DataCollector(object): def __enter__(self): if self._tracing: output = os.path.abspath(os.path.join(self._logdir, '%s.dat' % (self._testname, ))) - self._trace_cmd = subprocess.Popen(['trace-cmd', 'record', '-o', output, '-e', 'mac80211', '-e', 'cfg80211', '-e', 'printk', 'sh', '-c', 'echo STARTED ; read l'], + self._trace_cmd = subprocess.Popen(['trace-cmd', 'record', '-o', output, '-T', '-e', 'skb', '-e', 'mac80211', '-e', 'cfg80211', '-e', 'printk', 'sh', '-c', 'echo STARTED ; read l'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=open('/dev/null', 'w'),