From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92B8529AB0E for ; Mon, 25 Aug 2025 20:29:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756153787; cv=none; b=Z9kItnH5Ip3Gxf6ASPFVGwdG4gKcMLwas3jOkx0lyygQGCREr5UWyOhUgS6pk+et3KTIaCpiYZjllC8hx1MwNq5djSoRaA0LsGA6hQY7aCiOokgL4CZSlOQMzo+98b1Nj/XHwq+/wUxtrXE5hxKFMyW+XdOBUQMb91Rah/qDqFg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756153787; c=relaxed/simple; bh=02+8MH6hCAPPlDg8TadPjxMPFyzg3PMO1koKRqRz91I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rwb2e+It9KbtT4S3clw1TBZXab3EV3K2xYdOxgN+xEoNSxIFY+XghlfqZ8FCbhCc80lSZrPsRlS8watIKvAtRPBka+gqGwIt5WOw26MFBjkExQ+8EIyKMcF8QL/M0dL7hS8Owjek8n8yu67eIrZEVjzoiT76iUGhEdvfxrIu43Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=TjjzCZ/Z; arc=none smtp.client-ip=91.218.175.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="TjjzCZ/Z" Message-ID: <659fd81f-a017-48f0-b04a-41679dc5a61b@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1756153773; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=02+8MH6hCAPPlDg8TadPjxMPFyzg3PMO1koKRqRz91I=; b=TjjzCZ/Ze/wzh0nrIm9uj0QEDQIhK1ieq2BTUKU6v9xLzlfXIRwOQ5VinGJIc770SNgCDs Vq4hrVGz3aoXlnTy45Uc3ndH5LTJ5xYmqwFa7rVG/dwiPaYX5cQ7OYJnEs1W56x1Nm91d2 UDmsSzYpsobzZ5V3nuTry98jj8I+hjo= Date: Mon, 25 Aug 2025 13:29:28 -0700 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v7 1/2] bpftool: Refactor kernel config reading into common helper Content-Language: en-GB To: chenyuan_fl@163.com, olsajiri@gmail.com Cc: aef2617b-ce03-4830-96a7-39df0c93aaad@kernel.org, andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, chenyuan@kylinos.cn, daniel@iogearbox.net, linux-kernel@vger.kernel.org, qmo@kernel.org References: <20250825022002.13760-1-chenyuan_fl@163.com> <20250825022002.13760-2-chenyuan_fl@163.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: <20250825022002.13760-2-chenyuan_fl@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 8/24/25 7:20 PM, chenyuan_fl@163.com wrote: > From: Yuan Chen > > Extract the kernel configuration file parsing logic from feature.c into > a new read_kernel_config() function in common.c. This includes: > > 1. Moving the config file handling and option parsing code > 2. Adding required headers and struct definition > 3. Keeping all existing functionality > > The refactoring enables sharing this logic with other components while > maintaining current behavior. This will be used by subsequent patches > that need to check kernel config options. > > Signed-off-by: Yuan Chen Acked-by: Yonghong Song