Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp768840lqt; Thu, 6 Jun 2024 19:27:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVs2vi1L2Ozr4qnTfmjfII3MponhzFS7+MH9SmhASi46aiHuK9jR/y5GtD/VF1JfyQ6+r4Cwj8FjONQSrX99GEcnjxx8uRoCOZhrEMSRg== X-Google-Smtp-Source: AGHT+IEjwlMCYYMvgwijYkQL/gyLchnWktgD3WRx0dBBuuSvs776Gwi46qjGZG4lsbIrOJIgO7bo X-Received: by 2002:a19:430f:0:b0:523:91d1:12b2 with SMTP id 2adb3069b0e04-52bb9f5da35mr656392e87.6.1717727235638; Thu, 06 Jun 2024 19:27:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717727235; cv=pass; d=google.com; s=arc-20160816; b=PnX9mG/Eixvxou9+chPkS5mjQ5pYGESh6Wo96RSPC3YdX+F0w4XSweTB68Ic4nOWbw 9VuD5OmKph9AyVvPUPSItT0K8EpOWxiFBHUqJi7uk8BdvLXSkDdG8VR5/TGOvWwJBXdh hbZgapNbuGRuPcA0eB/np4HHriHNRIYLFaIRdgfmnQYGn6DtXHN0WShGbRqNUJanuWSt 2WJjTwAdEZAqlqRkBsf+Zfa8GI/+rkLjTCvZ1OZkf4YUG5Ljpz34oBkVJWQl79OGjkQ0 hZcqw2U+8Xi/CIQyAqK1z7Jd0qXKJMFUo5U24G5Qz55JjgncXzbpkQzdJ4EIbl15EDcv R2vw== 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=0PRTAWrhjr+QRdN9ZBsFIxqJeIplqLVctoeE5yPLMKA=; fh=UBe/MXOL8xQHgSOTThiuFZu1R9pfsONcM7f7DNcqOeE=; b=uhK5nQHdeWH9Jfeg/X8o0SZy50k+uRNuPu+8ELN8AYxRm2+paa7eBbaMZ4wqtOq9rC fwSxY2CZD7zeGTow9GFtqzopbeyhBl9mNsXrXZSgUHr1aPblN/H1EMog1EVT316ZwB+i XySkb5lgK9FSPxR3i49VJsRRLRYDydGC8AoBmbqLKZRSm4/Jt3d26XdnkJzhHFiao4s/ UOr2BUVZViiI6dpsaWzcwhRv/D2Yf5W0qYsZElIpefV2uz69ywSJHeUWiutDzKLaMplO qDEjp4PnEQlQTzK+L8FOD2+X9OK6cY0+BN9/LI4sJRn8fVJvVOiDcni0yhN8B65O/Bhg FR3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Afh4I9jx; 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-205246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205246-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 4fb4d7f45d1cf-57aae28a31esi1296300a12.631.2024.06.06.19.27.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 19:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205246-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=Afh4I9jx; 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-205246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205246-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 5B90C1F23F80 for ; Fri, 7 Jun 2024 02:27:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7A0812B82; Fri, 7 Jun 2024 02:27:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Afh4I9jx" Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 B9DCCDDAB; Fri, 7 Jun 2024 02:27:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717727228; cv=none; b=TkUt855CLqE9VlUY2tu5C0AztTII1O+85skTsnrjAhPyjiakQCb3fv4N+T20sfTbgzzYespMnuTEhonqS6kYu4sZPTEGS+vrVK5KqrIkU9o7n+TFoRqVlsYLp30OqhcUuA85ukHkSOoOKIcAogFMxEXhyMKLcrQJhrkUm6rN/LI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717727228; c=relaxed/simple; bh=FMviLWiM9TAuVnien3DOdHoozNOjUgtoS3TQejc5Dsw=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=k5nr7x2rxRijUoCqP5lW4LJe4qlqfeXWQz1qylb5QRdLss71XpbRN36dd/+PGXHithYolzXGyu+E4xuhw0IX6Oo2yVunwUy+hVDZyWZxkJlf74MQvpmE3iqlzQWczxlVgcMERxdHdvD18xquU/1AH6BrQetcSO/GQM4UPryfqag= 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=Afh4I9jx; arc=none smtp.client-ip=209.85.216.45 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-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2c2bab8d69cso439431a91.0; Thu, 06 Jun 2024 19:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717727226; x=1718332026; 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=0PRTAWrhjr+QRdN9ZBsFIxqJeIplqLVctoeE5yPLMKA=; b=Afh4I9jxNnEqCbp47P43mQ+JCNYok5cqTNlxHnNHDyXqlwPBd2kEtaXdUga+uec8Xd fibr1kBL05LK6jgDb8FNWM3blQt0nq0NhoSmxmwvvpvDKUp93OVSB415hPnMwYVeDPSt NJ2k3HqLbP02cDCZefoHCZzFNiQozGD1lXT8a25+SEOd0YPb7EOnYTZUhs7g5nnyfgw7 7eww/nrIBr2kdVBDsUvSxgeW6NLD/CH/KhCYmAUA+5vWD6XZ6OX+P+Hsu1hK5nihgjB3 /qUUI4HThCVJym1vD0+ZeUfI6KETAvvjX6aqOxrdxKqlGFAcQZM3dihkBbdBOH1LcFdY mWLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717727226; x=1718332026; 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=0PRTAWrhjr+QRdN9ZBsFIxqJeIplqLVctoeE5yPLMKA=; b=bN7msbrloLvjg8kU9cfuH/ft+H5mHBigtw3k3MoD5+ZtYf+7ex79gIxuTq1//x66t9 OlKlcoj32c9bSrXwgKF+mCNXVQiM4JpxT/bmqG5JdANQXSizfZnxuuv0hxSgcHY07LZK p+cjt1O6HD9/Fyc+e4qumie8fiX9YD5j/Iuthw4ZcYgwOTlgUteqhRcCRbwipV9Hcvqh v3h2zxfBRMqovGyG1Be1BoVoNuMMqIF748pVlI9tmRTvdArT8yoTi5lM9QxYN7pDpcn3 1CPCnXBEp33bwzuULmGPNobdQQjvuKfz8PLeaUk7SKU7GTQ5+ZhxI9OT2aLME8l/1OFi SZHg== X-Forwarded-Encrypted: i=1; AJvYcCX2Z35T48VVDMe7wSQpP+VjM3I2DyBQUxh87evjX5FF3DAx9VW/S9yfKgnMTZyXPC8yiCpWAQd/x6fuPf9GrPpBaWEUIbB/BLFHS3ibz+lkRYhXo/qJ54h/0PKCGAlt8KbRVz8HGS0ODqjovQ== X-Gm-Message-State: AOJu0YxUrAMyfADdOm7BbRLjmsID1bC2Wtcty5g36/ZGQtftqv3wSpen fyaXQq8Ed6TuS1B+dCnftqMsyTCDsFKu3TZVVIOF5llNIiWIrBxH X-Received: by 2002:a17:90a:1157:b0:2c1:9e9e:a751 with SMTP id 98e67ed59e1d1-2c2bcc0b514mr1242592a91.22.1717727225818; Thu, 06 Jun 2024 19:27:05 -0700 (PDT) Received: from smtpclient.apple ([47.89.225.180]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c2806398afsm4344667a91.1.2024.06.06.19.27.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2024 19:27:05 -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: <930d7361-64e9-a0fc-eb04-79d9bf9267fa@redhat.com> Date: Fri, 7 Jun 2024 10:26:49 +0800 Cc: Miroslav Benes , Josh Poimboeuf , Jiri Kosina , Petr Mladek , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240520005826.17281-1-zhangwarden@gmail.com> <4DE98E35-2D1F-4A4E-8689-35FD246606EF@gmail.com> <92FCCE66-8CE5-47B4-A20C-31DC16EE3DE0@gmail.com> <930d7361-64e9-a0fc-eb04-79d9bf9267fa@redhat.com> To: Joe Lawrence X-Mailer: Apple Mail (2.3774.500.171.1.1) > On Jun 6, 2024, at 23:01, Joe Lawrence = wrote: >=20 > Hi Wardenjohn, >=20 > To follow up, Red Hat kpatch QE pointed me toward this test: >=20 > = https://gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/tree/m= ain/general/kpatch/kpatch-trace?ref_type=3Dheads >=20 > which reports a few interesting things via systemd service and ftrace: >=20 > - Patched functions > - Traced functions > - Code that was modified, but didn't run > - Other code that ftrace saw, but is not listed in the sysfs directory >=20 > The code looks to be built on top of the same basic ftrace commands = that > I sent the other day. You may be able to reuse/copy/etc bits from the > scripts if they are handy. >=20 > -- > Joe >=20 Thank you so much, you really helped me, Joe! I will try to learn the script and make it suitable for our system. Again, thank you, Joe! Regards, Wardenjohn