Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp79049lqp; Mon, 10 Jun 2024 19:23:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMHxgCWh+ZlQ93jXOtVfC218iBemOJRfmAL/pKPNK29+CrRPFv901IixzdTddo8F6fsM4BWf/K0w553r6tGE2KPnHIMO3aczsB68azKA== X-Google-Smtp-Source: AGHT+IFacJOz0OLZGxDDRDNTKuqTGxPOIyWeFw8XPc44seDHZBy2G0iSv48FLgPSdaL6R0ueg7OU X-Received: by 2002:ac2:5933:0:b0:52c:81c0:7841 with SMTP id 2adb3069b0e04-52c81c07acbmr4873226e87.67.1718072626135; Mon, 10 Jun 2024 19:23:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718072626; cv=pass; d=google.com; s=arc-20160816; b=Pcd6iOgs07w2na+e8k1OOk6vgSn6T8rfQ1LQdDTtOXe11sS0USEqWQGq9D6Jyzqf4M fXpoxrs+MQ8lEMNGFFLX7W8aLYebjaewBB/3b63yciUn8CUINmo72ec5AGV/vxayrqPf wTRrqGzteJicqP6rLix4JAexqu3VnN4xae6w8hqUbsXevYnYN3fmmOoWAit2+FE3/cbG Tjh6qN3BxAP81+uuw+C2YlNRFdjSeCl19NPdeq6B2JLMyMs10hlLUBax7JiRfNLC9qUv WFHCaVt6LbRoKwuTknHWIxXcqJ4lkqQZaGZYtEJ9dV26WUpOtGMlnAfNniYeA+ujJ9hT 9Ztw== 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=qVtYDYysCAldC4l1dqMdXwdZ4JRo0kfnmWGAVwyLSnk=; fh=qtr7fVAjyZESHXd+W9tlYMwK9y6gpx402o+VmdxI57U=; b=THkL0vn7xtcNAdqq4iTtThMGiKkYOZktypjzP+8P4zv2fAIHQJPl4LXYhVzWQ/Zvbf llRoXB9dDwfKHKam8KKY0VWWm6LAWo4wOxaSD3vsRQBRPG9TjnjfcWthHDrN82OphpEp yRAAqBX3Nfa0y+vB9DG7ANF3z4wXPC3yiPmVoP/2KgN5L3Hp/Rn8nVuVW+ttkGfxESvu 5zfEdG7va9zpK+DCsNbIwspP7Elt67QoIyWXvAHC1055R4MercKHIznWlJf2LTr1gqWY U0WZlY4X3B4WEDPjq38O/nu9ZosHmft9V36aNieDr3Z4Sh9XkVtAF/otB4YQwtqxxJmH 4tRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EAoUD8Cf; 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-209179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6ef79a4416si333558066b.381.2024.06.10.19.23.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 19:23:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EAoUD8Cf; 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-209179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209179-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D16781F2104D for ; Tue, 11 Jun 2024 02:23:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02BCF15AAC6; Tue, 11 Jun 2024 02:23:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EAoUD8Cf" Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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 DFBE3159917; Tue, 11 Jun 2024 02:23:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718072618; cv=none; b=gJQrcPA82BWyopG61GTny+jzhowlHHoB9tB2JaWU9rBcWaNP5D2HdnrcuEqeCn1I8opikPYFoHEnKSUgruTjStUsSW3pB9cQWEDisLbAN2tRnZ1OppPYQ3SWKWW0NLjRyTawl7kTKhN6V8XvfPI7okjUg8zvG9y59Zoy/ggZObI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718072618; c=relaxed/simple; bh=qVtYDYysCAldC4l1dqMdXwdZ4JRo0kfnmWGAVwyLSnk=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=Cbu1FySLAWuGBPA5kDMbHo0xTE92+ZLTpAFX8ka26XdN23ry10ubE0bhKg9VDrCt8HNB4Kz/9NTqN3JJL4EZnGPbm822gMOuAogRgAX9/srKfPzYlor4YmX0lKq6MrErJdXpLbrhaqLuur30bAGyPAyWhz4K9anQ9PcMEKewCU8= 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=EAoUD8Cf; arc=none smtp.client-ip=209.85.210.50 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-ot1-f50.google.com with SMTP id 46e09a7af769-6f977acff19so1394090a34.3; Mon, 10 Jun 2024 19:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718072616; x=1718677416; 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=qVtYDYysCAldC4l1dqMdXwdZ4JRo0kfnmWGAVwyLSnk=; b=EAoUD8CfUOAKTpUbcwvC4gtmIqr40bwgIrzgJs5BYPi5fOSYr1mQOU4jXmsZ6AHOTI 4wir2NyHTgWKH3ZaeNHeMoOEvBHZd4iKEKLAnkQ6j4CnPNiPfQAPAuBCZOcgPX5GsG+L y3osQ9FITFRJ2FNdsCMP/I8dDvWxQoWcNg/0Guwg2uP1DdLh7Wptqyxvj/4h6TFEerAa NdNvtoELaVTFoIEXpKQL0UAL8+Kfc6bHT3GXTiSUupoEzb+Ug4zW2sw5eS+7ez7vqLhz SFKu1nRtvwpLbUaUeQUi56qVSRpcDHmHI9fn/CIdYCXyC0jPBiXRC38zAX9wai4/x6R7 RiDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718072616; x=1718677416; 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=qVtYDYysCAldC4l1dqMdXwdZ4JRo0kfnmWGAVwyLSnk=; b=PDjddSzfdbQZVTwVaiPoVeDLxYRB9y2DZ8hdYOcBpXlwfIZeY4tG5jmQ7vp8uR4Q2H DhxcELS/sKu/WJYM4VYznZf/YP5vZbv8o29F2aGGS+oXT63jEHkU6W1QUawGnXre2IyQ Ya4d2xtqNU6nMJTRS+VPrTcpHlnqThtOy59SsJ9lmJTTGBnvjMirIRA6/4JERgon+/Bh 4H+HJSp8ieZKF1VJmtRLNQltKh1zlx5n2BOzuXaUIetSnQgNROH7hjyPeNQWScvXMJxh LbrlETAfhU5h+fGTstzgderG9BvTpgT9iJS8E9dTYPh4RJarS+nwCoy0TNvTn4bn/kvs 6ZTw== X-Forwarded-Encrypted: i=1; AJvYcCVaM43okpTFvqvPzdC7866GOg/gjMaAjPZXN+sa9rbKBQwS90vnu2EK3bHAIAzGU+WOjejQ09ANy2inqe8w8oCUy3FsEfdTFdDQ4gTQrOXA9ATobrMMQkL50PIO+uAPd0CXAiQ9wyXNntOS6w== X-Gm-Message-State: AOJu0YzsLE5V8qsA/b4XEh7jPH+sJHib2FJIQu21yrVA/9hLnd8cccL9 PSgAm4MMeXjrrXg+ji+9VvVT7qe36b0KSlbWskFCgWAxGMXOO+qV X-Received: by 2002:a9d:7d0c:0:b0:6f9:b3e0:56db with SMTP id 46e09a7af769-6f9b3e05bdcmr4669859a34.31.1718072615762; Mon, 10 Jun 2024 19:23:35 -0700 (PDT) Received: from smtpclient.apple ([47.88.5.130]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6e668a494c4sm3977259a12.22.2024.06.10.19.23.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2024 19:23:34 -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: Tue, 11 Jun 2024 10:23:19 +0800 Cc: Miroslav Benes , Petr Mladek , Josh Poimboeuf , Jiri Kosina , Joe Lawrence , live-patching@vger.kernel.org, LKML Content-Transfer-Encoding: quoted-printable Message-Id: <0560A816-843A-4FCD-B4E6-D2B1085298CF@gmail.com> References: <20240520005826.17281-1-zhangwarden@gmail.com> To: Song Liu X-Mailer: Apple Mail (2.3774.500.171.1.1) > We don't have very urgent use for this. As we discussed, various = tracing > tools are sufficient in most cases. I brought this up in the context = of the > "called" entry: if we are really adding a new entry, let's do = "counter" > instead of "called". >=20 > Thanks, > Song Hi, Song I hope to find a way to optimize "called" will be set once in = klp_ftrace_ops function because as Petr said this function should be as = fast as possible. But if use "count", this variable will be called every = time klp_ftrace_ops run. Regards, Wardenjohn=