From patchwork Mon Jan 19 20:40:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 108 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855305; bh=kZb+NEyK6OO786ZQ5BZNK54Vg7GzsKPqIPdwNvhYeKQ=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=CcSr+/dZdjxticl2bVKna2QGI7YdP6lRGBfS1sk6HJ0qQV9/ZzBxhfp/U9yNcUk7Z zHaeCNx2LIGK+nGF++D5zsJjUUeZWl3dJPH5bfCbzljkGPpJYJYFnSZWfOtgFUkuE2 92cLCDVbowUukeduRW1Az5HSBGOP1dDETbfk59VibvuFdzLTcNw7F7TA3A879EXvcE MxE6MVjPf6BF87Pivr5iJ2bMesOmlBaX2C2JeePTysl4s6Dz0KjsMUeokW8FgJQNIM fXaVLniqfN0IcVfZ9TX0svxf0VYzGmIiMGRYyRTP5WIgLcIFpiyjE02LMG6XmoJn9l BrLLpo9LiE0aQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 32DC169511 for ; Mon, 19 Jan 2026 13:41:45 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id tMJqjU8JYo-7 for ; Mon, 19 Jan 2026 13:41:45 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855305; bh=kZb+NEyK6OO786ZQ5BZNK54Vg7GzsKPqIPdwNvhYeKQ=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=CcSr+/dZdjxticl2bVKna2QGI7YdP6lRGBfS1sk6HJ0qQV9/ZzBxhfp/U9yNcUk7Z zHaeCNx2LIGK+nGF++D5zsJjUUeZWl3dJPH5bfCbzljkGPpJYJYFnSZWfOtgFUkuE2 92cLCDVbowUukeduRW1Az5HSBGOP1dDETbfk59VibvuFdzLTcNw7F7TA3A879EXvcE MxE6MVjPf6BF87Pivr5iJ2bMesOmlBaX2C2JeePTysl4s6Dz0KjsMUeokW8FgJQNIM fXaVLniqfN0IcVfZ9TX0svxf0VYzGmIiMGRYyRTP5WIgLcIFpiyjE02LMG6XmoJn9l BrLLpo9LiE0aQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 1FD2E69504 for ; Mon, 19 Jan 2026 13:41:45 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855302; bh=0qz5p6OwNygEDs6Wx7i2gtQ2b4mz4u+mZmVigPuKy8c=; h=From:To:Cc:Subject:Date:From; b=EOyjkafBvRVKa39z36h2GkZZxYHgx6v1KJ47Qetp6oGi5/MJ01D5qdJGEoKwn4/dD onqv82135God9hbpAmkfTZJwPFaL0JVpl+i75FpywjWQ1dKxyO9abhKnIJCGC6QfeO SS49tiUeZxpXOLdQiQCZvTVN3WlQ7loXdHnlpU2mavxBHFiQvCmGPrEAABsb1cpKAV n6CvDrH+zrAMeSTNRrkEem9JX3D5VOdtYw1+lk0hZiyvPX2HeoVE11yENOSxD/uKj7 V02/HZZ+9vr7UJvLU8j0I7TDEOHamHG50LiBHCgadq9AFaDCfgkdTp5wkv/qBLU24B IuWVmhWVYFCrw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7710A694CE; Mon, 19 Jan 2026 13:41:42 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id MVK93YFnbBgD; Mon, 19 Jan 2026 13:41:42 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855296; bh=hAeY0PVtVqWs9XixTOFu4L6sUKSCNdfGh4kNNuTMZgo=; h=From:To:Cc:Subject:Date:From; b=LIYvjN6wRMgSgB27RmHgRWxfPKRlcClWqhr2t2Q8brUwfFGqnBISrA/DB0yqItHwi 41zmz/n/jD4hi79hlH269R6h5Quafj0X/Iy+5WWhn1uxHb1TOTZEpaSDVl+rOki9gv //diPqEhsiNLhzs6rNA9wyCO3PGbZbmftH0M7RPo28nnpxnj/9s/gkxtsUPXED0P74 SsGSzNNKXVSmSdRuX/ydcWiO8uirKZ6K3zdu30YmvPseLMvAGALDLydlS+hkToE0Zy Yi3Te0rk1T5uEOpEuTdWFylipnrdN0afW/JbUqGQvye7LHlfNv/Nc7g3vD+ukndYMF butPiYdwzvwFQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 8EB08693BA; Mon, 19 Jan 2026 13:41:36 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 19 Jan 2026 13:40:53 -0700 Message-ID: <20260119204130.3972647-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: GTQWN6RFNHPZGV74IAM3RTMNZIWQFTJJ X-Message-ID-Hash: GTQWN6RFNHPZGV74IAM3RTMNZIWQFTJJ X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/27] Expo debugging and textedit improvements (part E) List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass This series adds debugging infrastructure for expo development and fixes several issues with textedit objects. Debugging improvements: - Add 'sb grid' command to overlay a grid on the sandbox display - Add file log driver for sandbox to capture log output to a file - Add scene_chklog() to filter log output by object name - Add per-line measurement logging for text objects - Add expo_dump_file() to dump expo structures to a file - Add line-measurement info to expo dump output Textedit fixes: - Extract common text-input code into scene_txtin.c - Fix textedit height calculation - Fix word-wrap measurement order to use correct bbox - Support highlighting textedit objects Trace fixes: - Fix proftool funcgraph depth for exit records - Fix trace test to handle more traced functions Also includes minor fixes for RTC test flakiness and pinctrl-single boot phase. Simon Glass (27): hook: Add hooks for kaka test/py: Allow --help without a build directory proftool: Fix funcgraph depth for exit records test: trace: Remove stale trace file before saving test: trace: Fix funcgraph check for matching exit indent pickman: Handle qconfig resync commits specially sandbox: test: Add bootph-all to pinctrl-single for serial test: dm: rtc: Fix flaky dm_test_rtc_dual test video: Log each measured line with log_content() sandbox: Add grid-drawing option to sandbox_sdl_sync() sandbox: Add 'sb grid' command to enable grid overlay sandbox: Allow grid size to be specified in 'sb grid' command sandbox: log: Add file log driver expo: Use a configurable output function in expo_dump() expo: Dump the line-measurement info expo: Add debug logging to scene_txtin_arrange() sandbox: expo: Add expo_dump_file() expo: Add scene_chklog() for filtered logging expo: Fix textedit word-wrap measurement order expo: Add per-line measurement logging expo: Add a txtin function to render dependencies expo: Combine textline and textedit switch cases expo: Add scene_txtin_open() for common text-input open code expo: Add scene_txtin_close() for common text-input close code expo: Mark textedits as highlightable expo: Fix textedit height calculation expo: Render textedit dependencies correctly arch/sandbox/cpu/sdl.c | 23 ++++++- arch/sandbox/dts/test.dts | 2 + arch/sandbox/include/asm/sdl.h | 8 ++- arch/sandbox/include/asm/sdl_sync.h | 23 +++++++ arch/sandbox/include/asm/state.h | 2 + boot/Kconfig | 10 +++ boot/expo_dump.c | 88 ++++++++++++++++++++++-- boot/scene.c | 68 ++++++++++++++---- boot/scene_internal.h | 62 +++++++++++------ boot/scene_textedit.c | 49 ++++++++++--- boot/scene_textline.c | 77 +-------------------- boot/scene_txtin.c | 88 ++++++++++++++++++++++++ cmd/sb.c | 17 +++++ common/Kconfig | 8 +++ common/Makefile | 1 + common/log_file.c | 103 ++++++++++++++++++++++++++++ configs/sandbox_defconfig | 2 + doc/develop/expo.rst | 31 +++++++++ doc/develop/logging.rst | 5 ++ doc/usage/cmd/sb.rst | 9 +++ drivers/video/console_truetype.c | 10 ++- drivers/video/sandbox_sdl.c | 7 +- include/expo.h | 11 ++- include/log.h | 11 +++ lib/getopt.c | 4 +- test/boot/expo.c | 47 ++++++++++++- test/cmd/sb.c | 34 +++++++++ test/dm/rtc.c | 19 +++-- test/hooks/bin/kaka | 1 + test/log/Makefile | 1 + test/log/log_file_test.c | 43 ++++++++++++ test/log/log_filter.c | 9 +-- test/py/conftest.py | 4 ++ test/py/tests/test_trace.py | 6 +- tools/pickman/agent.py | 44 +++++++++++- tools/proftool.c | 23 ++++--- 36 files changed, 789 insertions(+), 161 deletions(-) create mode 100644 arch/sandbox/include/asm/sdl_sync.h create mode 100644 common/log_file.c create mode 120000 test/hooks/bin/kaka create mode 100644 test/log/log_file_test.c