From patchwork Fri Dec 13 12:45:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 850119 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1476633wry; Fri, 13 Dec 2024 04:46:07 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUwxHyyQjQ9QNQW+8IWEa4qkdsKWntr4eNWP2Pys3BgzXYXgRHrg+ddB9SaLY9zCKGRXUixiA==@linaro.org X-Google-Smtp-Source: AGHT+IF0ppPUtAlJ9OkWI49uEkZ58TZXOx9OaTkkXs7pDbn3etR1M5UziDo8ybtrYcSJJEnB4AYp X-Received: by 2002:a05:6402:40c8:b0:5d3:bc1d:e56b with SMTP id 4fb4d7f45d1cf-5d63c33b318mr2198321a12.16.1734093966945; Fri, 13 Dec 2024 04:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734093966; cv=none; d=google.com; s=arc-20240605; b=Jqehbvl8i4Trkap1eJiS/7Z4ARw02zneRRwIWLrqR76NwhpxnVRLJlkWQzIkPUnPbx zu5onf4QJoXMONH8gZaGgBHEjaUOAuZOGjTmdCEHKo7Hy/gtwWL28HM88j3YTdPRsbFc lPixtPq6cF3nhVqRNKARQD7lFYJEM2TDOxU1uPZRDS8UzDMSce7Ll/UwDjUWAKFh/li4 H3RKrxDuXElKOin7oTg4tmvz1rTfIDYp99Wks3KJcUz9MSLmIlhgDJnH+1o69Fx8sOqy NY2/Gkwd2JAhnyqDCmzHQX3KGMBUFaG6igVFvRaxbHolBuhZqB/YYbL1dlvvk2KYqaeN o9GA== 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=T4WOs/uCGijb2Ti2avwAulgOW1s4b23FrjpXxKa3cvg=; fh=WT3jtk3at6WmKReA45F3Pjm/eW8LbZQ48Fvog3PFe6s=; b=EjbVs/aQBlAX98Z6xt81hGr1+wMRHU1+V08mwnJY9VP+cNo+taMRxZ6c/4cZE9rbzZ hdxEvHgE1DO6w8EcUDiG4KYeRpTdpjFezEkIBuRACXXFObvYD5HUZo+Pj0n0g/4R77PT nsJgTR89pyMhJwlELDwntDiYCJqPwAmHmwYMe8v9d4jESAr5qUTuLich9j89vFowhGcu aJ3eCWbgg4EUpOg+/jHUqIKofFGinaKZjaHoW5x7BcVmDLG7ggV3ZmLQz8NV8SYCmHRl zhIq4sjsBebSEY/D1f1ok5ENxkqmRvZxXSLMaGxzyvHyzmLgz0JwGkWs+s9bHwMiSL99 HANA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UJ7A1ON2; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5d3ce6d5804si11246103a12.446.2024.12.13.04.46.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 04:46:06 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UJ7A1ON2; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 8DA8C80141; Fri, 13 Dec 2024 13:46:05 +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="UJ7A1ON2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EADAC801E7; Fri, 13 Dec 2024 13:46:03 +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-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (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 8CB4580083 for ; Fri, 13 Dec 2024 13:46:01 +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-wr1-x42a.google.com with SMTP id ffacd0b85a97d-385e3621518so808894f8f.1 for ; Fri, 13 Dec 2024 04:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734093961; x=1734698761; 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=T4WOs/uCGijb2Ti2avwAulgOW1s4b23FrjpXxKa3cvg=; b=UJ7A1ON2obat43wPWmj9lSHmeZNkM2xVQZi9OeE9rzPNEhtqVpMg7r6ohxpMnSK+Ki CwyaRvPBn/jIwLOyfRj/JuG11mTDdkIOcbBF6Q90AZ7RRiACIg4oAs354qkzbgM26b9y G5PdkyQcCB2BlnihyWvQdIkGTJHLEynRPOymyd8WAwRYOHLTxKiuky4wwdMtVKEl03CN d3RWJ8lEUe3Mn90tDQiLsBtuRzMffScta5Rp8Aqog6NGpVYfFSZPfdfY/2LQ4Ev5V/bP dm3HnsfJ1fTgBsRHhXEd0msjbJTzXQyiMAnU3bxmYOqDj8vWhPe9S9YHC0dVVAXLGINm mpMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734093961; x=1734698761; 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=T4WOs/uCGijb2Ti2avwAulgOW1s4b23FrjpXxKa3cvg=; b=Be4KGTy3EEfWfMmMQr9Q5ONHDDeIa5/GlNVaAf/4205C+gOAdbaGfCVwTIUSQRxPdQ 26P9lyGdOUEr0mxfwF9p+x6lXavVmL9zOcF99g6kM82oQCx9cxC1jJLo94kO8vpWBtp8 gG0nDj9yDehggmli3etiN+VnGKMNUSDE9rCmM/QYFFioaWTpvgqmENLEpRygqmcUUJyJ vSO6UMd6SiDD8TBj418mfs1G2Z0aXgkYcimQoc6c+AEWcpc5eBCbJEc+zu1NP910AjX5 vO+XwrCt2XU/5SNfu8WYCKztHMpN3WxvLJIYPyeBzoXXek6WQc/jS2/Mpww1UV8+HYSC rxkg== X-Gm-Message-State: AOJu0YyezuTJuemyVNzdhtuABTyueWl4IKHlo3x9u9zXIHbgcGG4Ng9S pAt6e4kll+56bCMscbauuUMuyFG7fiQ3ElRO7zPvv+oSjmcE+7NzBZIfb+Qr9RJc+sYqKcQ4T4P cD10= X-Gm-Gg: ASbGncv6OyzF5pYONzPXoSDIzNAhA/NmlNj3kW62vl0/ai3W4uanOkXvbT+riH+vaQk k9PeSWuUHxW0eIzVrumj8O6LMSLgxxUejy/Bcfsbd7D3nmX9KH+xDx1uM6JBm+gd/j7/4eFAn0w PIJhVWD7rCLE/qNJZnkfmprQHd7ST68NF5QZeg7K49Paj8UnWGOlZBxqxeDelYpfef58HHKPor+ 6O+Q7oFeMQ4BrprpMWV0XYlC1LyO2IeOj/lG55LHnUlAujECM0QWfVncdm5q9tJVA== X-Received: by 2002:a5d:46ca:0:b0:386:3dad:8147 with SMTP id ffacd0b85a97d-38880adb114mr1426257f8f.32.1734093960713; Fri, 13 Dec 2024 04:46:00 -0800 (PST) Received: from builder.. ([2a01:e0a:3cb:7bb0:3390:8f2f:2eb7:90a7]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3878248e54dsm7050988f8f.19.2024.12.13.04.46.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 04:46:00 -0800 (PST) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Tom Rini , Simon Glass , Jerome Forissier Subject: [PATCH v2 0/3] Add 'trace wipe' Date: Fri, 13 Dec 2024 13:45:35 +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 adds the 'trace wipe' command which clears the trace buffer, allowing to re-start a capture from scratch. Jerome Forissier (3): trace: add support for 'trace wipe' test: test_trace.py: test 'trace wipe' trace: document 'trace wipe' cmd/trace.c | 5 ++++ doc/develop/trace.rst | 11 +++++++++ include/trace.h | 2 ++ lib/trace.c | 47 ++++++++++++++++++++++++++----------- test/py/tests/test_trace.py | 30 +++++++++++++++++++++++ 5 files changed, 81 insertions(+), 14 deletions(-) v2: - Change 'trace clear' to 'trace wipe' - Add doc patch - Minor edits to the patch descriptions v1: - Added patch: 'test: test_trace.py: test "trace clear" command' v0: - Sent as a single patch: https://lists.denx.de/pipermail/u-boot/2024-December/574148.html