Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp176781lqh; Thu, 30 May 2024 19:18:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCTOUv5EOKI/3Ne8ynoSvgYmPqdKXtwmDtWby8W4vlsDXbdDKL3+BMG68u6rKAEKjc4rFv7sWjT3qHXS0sZzmOb8FQvF9dQtj5auBWLA== X-Google-Smtp-Source: AGHT+IHfNtujh86MrQDuAKR3ui12/JnGMMVTUMKATrR/upqvo6pWoCYLx5omqx3AdFK5cR7YWfoP X-Received: by 2002:a05:6808:2899:b0:3c9:9640:7ed3 with SMTP id 5614622812f47-3d1e3486d5amr542325b6e.15.1717121890692; Thu, 30 May 2024 19:18:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717121890; cv=pass; d=google.com; s=arc-20160816; b=pYvWXe6w3GM8hQrA01vSFm5p2A6Is7VmSjGafPn47ABDwAjuzooCx9Fht6yOPKH/un cmKv+FdqGJHKQ7fXvhEgouNqaNc+/J5G46meQ1Lx/tcp3s+6JvfKHbZu1/4U7YE1QObp Op2Ipv5DSKiZ5gMOcLN//41AtMP3p+1ugmhZidV9OOkBILoamGMkLHREXSVWhXs/na3V lYIO+hSR+AmiioryiepOH4xnqVvUFgPEuisNmn/zhoffpyy/LFzn78Y6MkXMq51J0+h5 2Uxu5CMTHSL+nWhH8FKxTE8wct9CXK8qfi4RnKkLLUeYdsuAGOR8L5I9Vw4Yn6QC6yif Hb7A== 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=ChFmsqTuhqCWj9Q0CuDq9Et2eZr78DFDG1R2WzdOpxM=; fh=fzJbdyxFIuSvFP8OkTbi/V6Ryyce+ZBX0TpQetzRcqQ=; b=YJx4GjHzXteEhybpG++89D5FDsR6ETZ8TlmY2PANaVEO5JLSj4l5KxSMdgndAguHvG +g0RjuPZdylanzEHsRSHt6SovH0YToMSlYS+PG/cKJ7p/Uqc8BUQy1pzXb5G3rJtzkaW 6fLk2Jf6AoMIPM0GGZ7eSg08IUubz9cltvhBDPgNECTLM+ZsfDSEAOYowQVSnOps7+64 t8yas5JnXDQcGwHEGwPFiDuuqnlaYSDyjaIEku+PlCW1+qyYTDAJaBbnm35hIy7pkLqG 2S0/8tdOfkcO8pAlfhapkJjBtdpW8G5juEwXD7nFK37lTk4/NgGhJZLXahWvAErxY+iG RmWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TqIFkSET; 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-196183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196183-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3540faf5asi654112a12.9.2024.05.30.19.18.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 19:18:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TqIFkSET; 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-196183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196183-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 07B2EB24F6C for ; Fri, 31 May 2024 02:17:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55A4678C79; Fri, 31 May 2024 02:17:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TqIFkSET" Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) (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 434984C6D; Fri, 31 May 2024 02:17:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717121827; cv=none; b=KY8Rrrdo3ZNqithj9yxsd5tsMkjwBvyENm3h7BTBX0mAjbOVEZUHOp7tQlB7PSiMxmsc/zCVdWAAhU5PvqnRd8eSvh6UJOilw5wMnQK4dmXH8T0Ukt/ctPcNihggxcJwPDmlFkmwVWqtrBif694LVhVG17IwQgr8NePYBolHPJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717121827; c=relaxed/simple; bh=ChFmsqTuhqCWj9Q0CuDq9Et2eZr78DFDG1R2WzdOpxM=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=GslapNbfGQqb+IvHTM11rFcD770loFEZsMwW4ld9Dc7/LJJ/45KMP0ffHrqyZ/+6g4xVWfdkQS6qvStVdQ6IqpinZPl1ZDt3Ix38rOdepPl7kX/1gV2SOY/fsGs1pP/gKj8s6i0SMBQXJ5UKSuee7Q/hjmOORZ0Zb+S26HZg9xI= 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=TqIFkSET; arc=none smtp.client-ip=209.85.161.49 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-oo1-f49.google.com with SMTP id 006d021491bc7-5b9817a135aso847119eaf.0; Thu, 30 May 2024 19:17:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717121825; x=1717726625; 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=ChFmsqTuhqCWj9Q0CuDq9Et2eZr78DFDG1R2WzdOpxM=; b=TqIFkSETR9+ZWUkCnZrs8BSlKVMoyqnhUbvTSzgIILIWwr3NOuB8XrlvPTzaAgRG9C lrWZP7XAg2A9PthqFzDku/eATS0v33GGG5yf64edw+hKbnvTGIv5mw6k4RUyULQYL9U8 ziirKPMF5Cs6nuM0MQQ12YLDYuMIpD3ZMBOTAfXpcw78PIT9KzJDX3o1fsgECZIztJYl gFDQB2mEUEBAOywOq5+x0j3pk31gnH7wWIKRiXAnaGF4AMzPSSZmQwNGArsRHjchXj5K tGXChVFoKXX+bUZq1WvDsdbyikP2sF4Z9NCjffpQHU3ILTH5AANjgQb9j3SYUTxcTl1s M07Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717121825; x=1717726625; 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=ChFmsqTuhqCWj9Q0CuDq9Et2eZr78DFDG1R2WzdOpxM=; b=wPr3z38u6SOdOHCtLthPesm/TKSH4dwYrPxyW3hE6XwRXJH0rMpzIxqz+fAiXskPfk ec3BdfBtW+IOE9EsiYtmemyg9AXM9jVuIrD07S8OeBceIjPpyFhVGs930mdTI9S4w9XD sJn8Ry0RQxwVSUy6lzPMgBi8xNfU+Hfnvf9jXJyGoqfa2fvkj3twmteQ3H8T6jPcZoZP msAnPlkodqzVYav3Kh3g3ZzBWf1U7XDlOC60SKS0SNdZ2UJwzKpi/XpooSoQNKBPy5O8 c/6vRS/F0aXHaKf7RbqiaKvTSerR2iFh41/Iav6oyX3CNA3BUM2qLXZMzSX2NHfpadGg 1GDA== X-Forwarded-Encrypted: i=1; AJvYcCXAReCo0mE9vNE9aN0Ou5Ecm82ILtYGbARfFhc88EYv88CB3k94JwI570irGzvK+guHDBKQmAKby1ppwJsT0vM9LiyE8i4hf80DeE31KGeLfspFeuoFWKgEBh8ghyPCHl0YXOJssBoFEi+1aQ== X-Gm-Message-State: AOJu0Yzvnb0VyHdMeyqTk0vHtGSije1pIP0pJc0XiuXO1nbsgB/5R9Ab 93n3N0RlZfP9YI+lyovcnogRFLdzL66Ibwmm3hnXdnrfDRwDNUUr X-Received: by 2002:a05:6358:6f05:b0:198:e35d:6800 with SMTP id e5c5f4694b2df-19b489cd7d7mr92627655d.3.1717121825093; Thu, 30 May 2024 19:17:05 -0700 (PDT) Received: from smtpclient.apple ([198.11.178.15]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6c359564fcfsm373594a12.75.2024.05.30.19.17.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2024 19:17:04 -0700 (PDT) Content-Type: text/plain; charset=us-ascii 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 10:16:46 +0800 Cc: Miroslav Benes , Josh Poimboeuf , Jiri Kosina , Joe Lawrence , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <2551BBD9-735E-4D1E-B1AE-F5A3F0C38815@gmail.com> References: <20240520005826.17281-1-zhangwarden@gmail.com> To: Petr Mladek X-Mailer: Apple Mail (2.3774.500.171.1.1) Hi Bros, How about my patch? I do think it is a viable feature to show the state = of the patched function. If we add an unlikely branch test before we set = the 'called' state, once this function is called, there maybe no = negative effect to the performance. Please give me some advice. Regards, Wardenjohn=