From patchwork Tue Nov 29 05:33:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 17902 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 9B450BE08B for ; Tue, 29 Nov 2022 05:33:39 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B10226333B; Tue, 29 Nov 2022 06:33:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1669700018; bh=AsTowncOk8ErXJUZ5PsmatnwkqRhARbQPjQq9I+Lhro=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=rN64mY9uoPQ5GFnkBYp5618Sz/ONCvZTZ/CHts9fH3Ij+C54ys2XRCtiSHPQwLlYE Hzz+9W8extKENCqmVuwqxHUOg8GshocbWGOSKoykaMAMuryDmOvYHRufqRU4Tc5k5p gNgvEodCcH3LK3XLQ6soF4+q24AN0znePn9OgCsI7zy4N+75gr8jgu6kyYzK9XrMa5 TrL3olrciBoe0ApkuwFkYTI4zVRTGpUxxls9OOeZazumBHSEKGgGOqEh/BBZ6uaglx RF4FFwzx0RLoQXeiz9+NS+B9jcL9jKBfHqSayjuHu9d6q2igxKw4/a9NZiwnGcZD9T PtCBTo0Kdk4gw== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4A9DB61F23 for ; Tue, 29 Nov 2022 06:33:37 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ON4YZVB2"; dkim-atps=neutral Received: from pyrite.tail37cf.ts.net (h175-177-042-159.catv02.itscom.jp [175.177.42.159]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C2A454E6; Tue, 29 Nov 2022 06:33:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1669700016; bh=AsTowncOk8ErXJUZ5PsmatnwkqRhARbQPjQq9I+Lhro=; h=From:To:Cc:Subject:Date:From; b=ON4YZVB29XaL64PE7g9hgS1R4l4WhI66nyVr4Wlvl8dLNoaRO6xEVJqp2fTp88esk Tz/g5hDzGx14JffH7dHeoWh1mg8T0XRMWPfe1BaMUy4Wjy14BUlU3UXg8EutBvYVsC CU9I1Gf1uuy6dwHUZo/2paIYD9+r6DFJXoxMWmDA= To: libcamera-devel@lists.libcamera.org Date: Tue, 29 Nov 2022 14:33:23 +0900 Message-Id: <20221129053326.2858347-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/3] utils: tuning: Add logging infrastructure X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Paul Elder via libcamera-devel From: Paul Elder Reply-To: Paul Elder Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This series depends on "utils: libtuning: Get debug parameters from cli arguments", but only for the purposes of resolving a trivial merge conflict. This series adds a logging infrastructure to libtuning, so that the log levels and log output file can be specified on the command line in tuning scripts, and so that libtuning components can log things easily and concicely with different log levels. Paul Elder (3): utils: libtuning: Add logger utils: libtuning: Replace eprint with Logger utils: libtuning: Add logging parameters to argparse utils/tuning/libtuning/__init__.py | 1 + .../libtuning/generators/yaml_output.py | 4 +- utils/tuning/libtuning/image.py | 6 +- utils/tuning/libtuning/libtuning.py | 52 ++++++--- utils/tuning/libtuning/logger.py | 105 ++++++++++++++++++ utils/tuning/libtuning/macbeth.py | 12 +- .../libtuning/modules/lsc/raspberrypi.py | 12 +- utils/tuning/libtuning/utils.py | 17 +-- 8 files changed, 171 insertions(+), 38 deletions(-) create mode 100644 utils/tuning/libtuning/logger.py