Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp443538lqh; Fri, 31 May 2024 06:20:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzFsU/wC016cLmVv8Xp5nAofRWGqK+nJ7naPWweMkPCLAPgDJxJ/dZ410FrcIgXIznBZ32smttTIE0RR4qIWD8cTNweauh0CbwRhuX7g== X-Google-Smtp-Source: AGHT+IGhKxeLBmXIYmO1ET+lOzrwuSSpIzki0Ws0zQNgIWtrpiKCYoqm8iqSjCO+u/Om0ZiFX2g4 X-Received: by 2002:a05:6a21:185:b0:1b1:ce04:e80a with SMTP id adf61e73a8af0-1b26f0e6127mr2279838637.13.1717161629290; Fri, 31 May 2024 06:20:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717161629; cv=pass; d=google.com; s=arc-20160816; b=O5IO7DbzFF3pd6OSUP3IVaajpuH0rEWMWnyfOHx/pdeHLMI3jMP9RNp+0/1S0Mbzye AzhK5RRDfu9cTiaC3eZEgJXmUBjX3YL3nf26uDpa6J5aowsT8eGcL7lOet0cRsN567Dq C21kbZJPgOffHzhBSW8ZIDQgcNTePtzstV8Uni09ch2vi0URZLJk32Y76OXwmm5tguY4 t0nJlYnj88vHhms34gezK72mVWJIPN+tNWwejP1kNbK5mxn8qlJD6pqh4N18/j4Z6stO DC2XX25leNnne4TPz1yz6BE+tjeQQS1Od6IWoBaYVMrpqSU2rWtANrzq0JnL9Z6hf3Bl xg4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=Ln1OISLqzkvO7q4pgAQ2+OO9D+pHbnIJhNJj2chbtyU=; fh=ZSyupjAsJlISaSzz9QUe+Fshaf77XsE/fzS7Q2zvn9I=; b=s5TC2IcZSlOjYaKEdbKKCvyDZ05gYOLUQV3ieklR/8PRy2HaRfox9Aa1Dy+K2gp734 prmCw30aod8uYY/lwu9/sawtsexSKNvg2DyOUm9mDc3y5izhOfBPSpfnLJHx5v1fTANJ Ki1bODfznFJaFv4K2yOjMUv3Sz2CqfmK5yvAxPz3LaEc4HB1gWW/4VCeClNIflrxbSJ3 mVRU6vfKQHC7Fg5Hu6QzmwgBzuFyLykczHkmNCQ7FaqyFD9/J0jUf/i/tUlIOnltd3yA /gDd/QOkOzO7SGX8nzhFqwxSp8g2a+0xVa+JZDl2kAlqdTHrPuWchPRzSteGsdXsrHZb e5hQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=immgQWah; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-196871-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196871-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35d59f99esi325933a12.847.2024.05.31.06.20.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 06:20:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196871-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=immgQWah; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-196871-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196871-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9B0FC28B42D for ; Fri, 31 May 2024 13:19:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BD33158A26; Fri, 31 May 2024 13:19:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="immgQWah" Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CFFB76026; Fri, 31 May 2024 13:19:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717161579; cv=none; b=mGbyFAxDZLrhMVv/UYdluRkXZialWhs8RAlOEjFD8AN68EfugnZC0Y6y5Gvj+E1Um5Y/DlgfQnOC4h5g391ahseR1bgRz9wzZXiRB3iWrJ2E44/QSiCe4Em0UCqOO4C/L7sL1sep3cTGvluou5EcT1EtIZKF6HssDeSc7TeXO88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717161579; c=relaxed/simple; bh=Ln1OISLqzkvO7q4pgAQ2+OO9D+pHbnIJhNJj2chbtyU=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=mmK6jNlp0sWNwkIVHjI+AvHv0EOBuUvK0laHi+1nU7ZbGM3+tmNNow+ztozuW4iqfjhfA9LRbPkrvYyzREaTYCYUNU/NbSjngIB8Vd1naeTtuKC4C5im1Lz9T7bDNSAvK5bVo1A5dCbKWWrNHr17luxhQx2n4BBsrYrdxfOAb7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=immgQWah; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-70222db9bf1so1893851b3a.0; Fri, 31 May 2024 06:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717161578; x=1717766378; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ln1OISLqzkvO7q4pgAQ2+OO9D+pHbnIJhNJj2chbtyU=; b=immgQWah79AR5HS9UBeRhCJu9elongZrg9h+38ruhUpqIJErGkaHRNi+O+0Ug0wVqh UPVLLbzj8IaYn562eEfEsXKzWBX0X0+Gm2+c658o58Qekr+44/nzLZnfMPA/4EUa0s7Y 3JsPB7Pcb3NQX1JfLPlbRHFpWbBTaQMbt4ab4y6mhbN1fVLykb5gTRNMYUdjYEt69zIl lNsVQVETvSu55iKDWNOqqcqZm5XrXMrb6ksYAudtQaV5wllsYEqBzpK7nTnRUucoAN+J nvlhBJPfMuzqvHlAByAPmKk6O3YaYByv9/yONPs4LHO/NKmpyvehE5nuN4lhG7KZRHa+ t1ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717161578; x=1717766378; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ln1OISLqzkvO7q4pgAQ2+OO9D+pHbnIJhNJj2chbtyU=; b=m1EQwv8hias3zC9PIbeeJIfTT/3ZPXqW7FAaoHQMRwUqwkYIz47jnuxYy+7GiN1hT0 ii3ea0N87eelkssGi42X5APyVP6of9dn4CE9yv5t2QVGC7Zw3m2zLEaM1ma6kzEnNbmk Cr/7kfK7p+6mrL0IZDmQXASXLvHpwGt5xVLYii+uIv7O44j2sQgDU3jlDqnKDCutIDap mIAPtHzPRqJRQWvY3dHlzB3sDXWzHxp2+SRv9vIqs7nD7lnHMYSssBnvePvQbWWZ0atC /UV8vUYI7Q0jRYEOze/8J4HfSArmkM5bNOw09lUI5Jlgk7Q/qy8y93bpiB30bDNeOCag FgVg== X-Forwarded-Encrypted: i=1; AJvYcCU85QHs5m7JVkx701L5/O2yj1Gnqkr/M9cildZljt+47RMzrzVvcrI9VWG+Tmbqmrcu3xkiDvr2M+CxWw7GM+YvuUckdYVQ4SKa/9QGyQdHAbDKdsyRC1/CiJeBXwM4OPSMS1B4Ngp+jXSXTw== X-Gm-Message-State: AOJu0Yx07rE4nU0KLUUbnsy4z/nUpTNbo3dADh1u/DMNo59utFb6e6JA dDKD134WCZhqlOrs50K9DIsQUiRwuoaZnRWU/DvP96MgBGMcMkFS X-Received: by 2002:a05:6a20:6a21:b0:1b2:10b6:4a10 with SMTP id adf61e73a8af0-1b26f11be3dmr2531598637.21.1717161577586; Fri, 31 May 2024 06:19:37 -0700 (PDT) Received: from smtpclient.apple ([198.11.176.14]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-702425e0aeesm1354141b3a.87.2024.05.31.06.19.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 May 2024 06:19:37 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: [PATCH] livepatch: introduce klp_func called interface From: zhang warden In-Reply-To: Date: Fri, 31 May 2024 21:19:19 +0800 Cc: Petr Mladek , Josh Poimboeuf , Jiri Kosina , Joe Lawrence , live-patching@vger.kernel.org, LKML Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240520005826.17281-1-zhangwarden@gmail.com> <2551BBD9-735E-4D1E-B1AE-F5A3F0C38815@gmail.com> To: Miroslav Benes X-Mailer: Apple Mail (2.3774.500.171.1.1) > On May 31, 2024, at 15:21, Miroslav Benes wrote: >=20 > Hi, >=20 > On Fri, 31 May 2024, zhang warden wrote: >=20 > you have not replied to my questions/feedback yet. >=20 > Also, I do not think that unlikely changes anything here. It is a = simple=20 > branch after all. >=20 > Miroslav Hi Miroslav, Sorry for my carelessness. I apologise for my ignorance. > Second, livepatch is=20 > already use ftrace for functional replacement, I don=E2=80=99t think = it is a=20 > good choice of using kernel tracing tool to trace a patched function. I admit that ftrace can use for tracing the new patched function. But = for some cases, user who what to know the state of this function can = easily cat the 'called' interface. It is more convenient than using ftrace to trace the state. And for the unlikely branch, isn=E2=80=99t the complier will compile = this branch into a cold branch that will do no harm to the function = performance? Regards, Wardenjohn