From patchwork Mon Dec 9 15:32:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 848451 Delivered-To: patch@linaro.org Received: by 2002:a5d:50c2:0:b0:385:e875:8a9e with SMTP id f2csp2174346wrt; Mon, 9 Dec 2024 07:32:38 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXjAqFhu4rd11mqibFlPlBTo4Sm8FrV8We5KyATpbnsHmkFAgR6VybVlCR1ta6+vRRN+Go5bg==@linaro.org X-Google-Smtp-Source: AGHT+IFKGXe3RiWrtKt3hIuCwDS75bMqHBWMpgW6jFvdhoajj5x4MbyXEkZPzvRzeHdTgilJJldN X-Received: by 2002:a17:906:9555:b0:aa5:f3f0:e78e with SMTP id a640c23a62f3a-aa639fa5304mr1205323666b.12.1733758357800; Mon, 09 Dec 2024 07:32:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733758357; cv=none; d=google.com; s=arc-20240605; b=g3MLt987/lnnBwzNgzkT/dRnrOAIoGDNw0udjhd38T1Dz7JhuxR9F7Z0eOz2ejDWKr uxske5mt48x/Zkwre2YZ6hPGqKp4guPgShMopJsCsfk3VL1XGwyTenx2PF1RC4l08iGE JAVRDId1J8zPSo1KQ4J5vsBKJPntG/VrzqoRfXNwy0ypJ745EzeHdn2MzLZ11U0jXZGH Z7TZTr2nDIArGUZ/MwiP7X4K3WbEv9++QSGKoj93uypxsQtx+uhyodoetk2rN3YghvQA 3d8X1vp9krUPuFBX4g3Kr3wUna7SzbU9mrWFAQiuddEjlBCaYfrdQzKYZXCuvRgEM/1h LJQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=6lhMIjzGZfjv6vFZSARisZ7zANQtYsSTw8f3Z0lIWOg=; fh=WT3jtk3at6WmKReA45F3Pjm/eW8LbZQ48Fvog3PFe6s=; b=CMJXWHS7k3rBoyXDkzqNsT4/hDKwc4byXDczjzsPNnf4EsIqD7MpAsNVr2bVsd64v/ bCfzw4ycRtucz6JVecj4GUQ+omS1KGCPTAJI7ngSl4qDIb6gYI4Bzws/w9mJIatt6n89 hepnKE+xSf3EwbryZXfcXTdnkINaVAef2+58yvkGtBq6c8nXc6XNVbJVGpy29HoC/cVB hTxpYBnEW9Dr7fd59IJomyodbV4eDokNNjQ6PYWtDIgp5t5IYQZ8oSHSqTpChQwqQ7IS ivQF0Ryime0BVi2IqnmTqt4jTc7IsgDa3/yBnG11MfggwlnsoU2SBEemiXeRINmyrGmU g1Mg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P5XX9pbD; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-aa67fd8b54asi211310066b.676.2024.12.09.07.32.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 07:32:37 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P5XX9pbD; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 36EEF889E9; Mon, 9 Dec 2024 16:32:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="P5XX9pbD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 75C33896EA; Mon, 9 Dec 2024 16:32:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1364A896AA for ; Mon, 9 Dec 2024 16:32:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-434f094c636so10875985e9.2 for ; Mon, 09 Dec 2024 07:32:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733758352; x=1734363152; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6lhMIjzGZfjv6vFZSARisZ7zANQtYsSTw8f3Z0lIWOg=; b=P5XX9pbDEvWqTqKDKRWH/b57gzc0mV997OA/2fwJQkmY0fB8IKM0y+9S6h0WrtKMhW RRHb8niXQWEyRtHAYcGfROqXTSBydY55IKLwAE7wic1Jlt/y7FxfTUDqQ4B5+QqzQKLc LyyekQL5ZVq3yD+Tp6xLf6HERY+6rs38FOQsmHpSgydXMZGtvklizhxf2QCRJNBIVZpZ 1QA8vtLp4iuLK/J7ZhtlFbgFg1hBwVOxulqTTmaG2T3oT8pxiwc/q8EhBBdXU7cFzhFS SoKB3qQEMhzi4mnqrG6RxrxrqhzOEMecekwWlUxkpQ21gRAgvUluzTRr4aDHQMnOcfBM 4RgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733758352; x=1734363152; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6lhMIjzGZfjv6vFZSARisZ7zANQtYsSTw8f3Z0lIWOg=; b=cpn+Zehtw8fum+ipNf72xnBQ7Mtk7PZYpOYrc8i4Wuk1tYBvgsqhhYZvrR40NoxFgy 2rpqJYwZM+1ASwcO5L0/0y6SoV0idOqTw1RitITYlSEVKEcGt3oEB+QY1r0P7d8idKrl SwJsRSUo9Mr56JC4508PAG8ai+crCl7rOUEOgZh3lrKRwWJTTMGwtMfVZxSKx2e7c/iF XQkzVO9Ez65f9oPKI9qRTpvgaCRbzyWxHjbB2kkISDNql5ICrfF+OqEpdWupZpbDK+Jp g/DPjHtyh/re38Qp/8mkiF50erBTA/2HZqVAJLDov/FKTbB1o5M+fD5wvCzqSqH+UrQm vIbg== X-Gm-Message-State: AOJu0YyuYfLEked9u9D8N6mdAnqDMROMbyxsQyPoR84zl4PRB92urIwU H7g4wruNo5bQE9lXJ8g6+bScDHVkG6Bm0ZdxY+HLY1N2Y0lmbLs1h1V9yk1pM408oGIbvMdwnqy COtc= X-Gm-Gg: ASbGncuhmQHFhDqpFvfs+DQThXGUjIL3KSoIUBiaj2xdOU/3gwxzOmPHgZiIv69BBJS D6218atcmw7h4iaxl3a4OEi1+oxNlw+YRt3I07GjhGd5Aza2NV/WkvttouFr6Cr+JDQUPLJoLU1 36UhPIW8jgKuTjy+X4OLS7zdBCta7lE3SqjUkJI5akfT87DpSqsQ2S0I68c6NEyR3Jr6w1lBnIv NeCtjQJdI9DKdbbCWbnASsoHHD5wq5h8ZeJnYRablBDZMePnFIwnP+UQqg= X-Received: by 2002:a05:600c:1e0c:b0:434:f3a1:b214 with SMTP id 5b1f17b1804b1-434f3a1b5b5mr34454515e9.28.1733758352359; Mon, 09 Dec 2024 07:32:32 -0800 (PST) Received: from builder.. ([2a01:e0a:3cb:7bb0:144b:1fbf:fd90:f158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434f55733d2sm53000415e9.40.2024.12.09.07.32.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 07:32:32 -0800 (PST) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Tom Rini , Simon Glass , Jerome Forissier Subject: [PATCH 0/2] Add "trace clear" Date: Mon, 9 Dec 2024 16:32:12 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This short series implements the "trace clear" command. Originally sent as a single patch [1] but here with a sandbox test added. Jerome Forissier (2): trace: add support for "trace clear" test: test_trace.py: test "trace clear" command cmd/trace.c | 13 +++++++++- include/trace.h | 2 ++ lib/trace.c | 47 ++++++++++++++++++++++++++----------- test/py/tests/test_trace.py | 30 +++++++++++++++++++++++ 4 files changed, 77 insertions(+), 15 deletions(-) v2: - Added patch: 'test: test_trace.py: test "trace clear" command' v1: - Sent as a single patch: https://lists.denx.de/pipermail/u-boot/2024-December/574148.html