From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EB9DC433EF for ; Sat, 4 Sep 2021 15:54:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 186BB60F91 for ; Sat, 4 Sep 2021 15:54:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236864AbhIDPzP (ORCPT ); Sat, 4 Sep 2021 11:55:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:41100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231388AbhIDPzF (ORCPT ); Sat, 4 Sep 2021 11:55:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A85E160E76; Sat, 4 Sep 2021 15:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630770844; bh=1Bd7tJ9fKZam3ksaFV7H1b063UOCtZvKw1Oxp/zzHJk=; h=From:To:Cc:Subject:Date:From; b=oxV7sy0fz8Mv9I0PiXMuVjw4R48LZpnKfVHnim9Ifp1XXLd8oQNZe38Dpie1HL2YH kHqyF0pHcQgeg7fahBSeTiHP/1vBvT9s3T5ttcoffv4FZa5OL3NN/87+yJMajBFG3y 9itxe4P/UQqOFwVNT4an5PJEUl9PjaM6vh7cR+DRBHbWKInH3oO9r8d/Ti2DU2bNzY tBS6XMiqCfeZpkOAYhtPoUYnUqTRQ07fIUHlEdKU+g9nAw55mt/0Abj9lbuEmorFjH wWsoL2dhv4DjgSNzMw+8Y2aLrf2rTDnFNzivamV/7sBvagkJrpZv+zG/wCDeXYUxom lTPn6WNbX0/HQ== From: Masami Hiramatsu To: Steven Rostedt Cc: Masami Hiramatsu , LKML Subject: [PATCH v3 0/6] bootconfig: Cleanup and reorder the init parameter from bootconfig Date: Sun, 5 Sep 2021 00:54:01 +0900 Message-Id: <163077084169.222577.4459698040375322439.stgit@devnote2> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steve, Here is the 3rd version of the patches to update the bootconfig. I added 3 patches to fix some issues. One issue is from Julio which fixes a compilation error ([5/6]*). And the other 2 are fixing ftrace2bconf script ([4/6]) and cleanup test script ([6/6]). * https://lore.kernel.org/all/20210831033256.5973-1-jcfaracco@gmail.com/T/#u The 1st one is for bootconfig memory cleanup when exiting init stage. The 2nd one and 3rd one are for reordering the init parameters from bootconfig. Since the current kernel concatenate the kernel cmdline and the bootconfig parameters as below. [bootconfig kernel params][cmdline] -- [init cmdline][bootconfig init params] This is bit odd because for the kernel parameters, user passed cmdline can override the previous (bootconfig) one, but for the init cmdline, bootconfig may override the parameter. Thus, this series invert the order as the following. [bootconfig kernel params][cmdline] -- [bootconfig init params][init cmdline] The 3rd patch is adding how to use the bootconfig for passing kernel and init parameters. Thank you, --- Julio Faracco (1): bootconfig: Fix missing return check of xbc_node_compose_key function Masami Hiramatsu (5): init: bootconfig: Remove all bootconfig data when the init memory is removed init/bootconfig: Reorder init parameter from bootconfig and cmdline docs: bootconfig: Add how to use bootconfig for kernel parameters tools/bootconfig: Fix tracing_on option checking in ftrace2bconf.sh tools/bootconfig: Show whole test command for each test case Documentation/admin-guide/bootconfig.rst | 39 +++++++++++++++++++++++++++++- init/main.c | 37 ++++++++++++++++++++-------- tools/bootconfig/main.c | 4 ++- tools/bootconfig/scripts/ftrace2bconf.sh | 4 ++- tools/bootconfig/test-bootconfig.sh | 4 ++- 5 files changed, 71 insertions(+), 17 deletions(-) -- Masami Hiramatsu (Linaro)