Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2951453lqp; Mon, 25 Mar 2024 14:16:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3rFB38Xl2NSHj6FfJSebYnv7Qui3o9fdlD5nS7BpfxSbMw4en744RyrKV/XuRSiut1w3G3+jKp9zVNwySmxQb3VEKxae6bjY6uCxAsg== X-Google-Smtp-Source: AGHT+IG4h1w78clXjH+l6oQ7kTsHIEY9EgyJFsEvsnRdbSvIotfRLTbHRsy/ES0ykyw8cJH20vrc X-Received: by 2002:a17:90b:2242:b0:29f:f619:7c2f with SMTP id hk2-20020a17090b224200b0029ff6197c2fmr900036pjb.27.1711401394614; Mon, 25 Mar 2024 14:16:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711401394; cv=pass; d=google.com; s=arc-20160816; b=vhYWppxhvfke6E/1ZGGeVo4wZjC2/c40G4ll7EgjCbAD9xiQfwmMfJHJoHnwi84G7b nctZrqlaoKRi9/O2Jx4c3yQrUewfvavFwFZFDTJO3f6PGa6SfXyKEgT4fmblrAZpaNMG oa+69Ytx7v20HrzkI4Civin2lHx5bp9UehNkRRC/hP4D+xFR+pGc4P1Nq1HFscrLWHFw rk1yR9EVX0XVYulYaRGIi2b4yEzaks8K2sOkdKWOLx2jsZj0smwr1zpjY9RYjAJXaeet RMlnCCWsY98URL59hiSMu1L5naHeu801v+1CQt6viY7FCc/0mtFE684d6axnvKKsgywq Cuxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=lsUtv72A6m8iN0iAiaTvtCOx7NtEtOG4om7xM6RVBPg=; fh=Jyu2ygVvp3o2E+8nwL2EXIAPivGRyDqFBsnZkobwqaI=; b=HSdAgqyeoBivLazizUSUip92SgUhiEW09nLsb7Aef0s1XyAfnpvvKDH99LM+UGc6M2 hpYAWgxGHDiXamQ2ZafULV7bmEXfnTJzOA/r+HV3D27jv9Av6C+WObaZ7ATvJufW02sz XnpTsJV4dwUbhWoIIk7dd9tR250G3sZxd0OO0vsVd9Ck9Tf0PMr9cIpV33zNUIoBigqB Nf05OP1Zl/dV4QCrN8OsiL/iDzZtSSZVVQ462Dk4zBxjyOooAe7FcyIHBycJ29nq6wIu 5MucC2yiXMlNKixaaSDpmQyGFfQOoKDNbZz+VFNOdGC46rPjOMBe7srz2YHhNyIvIS8M UwSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SB97ZrcS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117987-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117987-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l15-20020a17090a408f00b002a01f8b865bsi9862526pjg.80.2024.03.25.14.16.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 14:16:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117987-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SB97ZrcS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117987-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117987-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 60652C63709 for ; Mon, 25 Mar 2024 20:52:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FB625C8ED; Mon, 25 Mar 2024 20:50:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SB97ZrcS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 934BD59B52; Mon, 25 Mar 2024 20:50:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711399845; cv=none; b=bLNfdAjCAFCVUtAT+Hxid//cpBbYjbTIXZyIWaQ4ZFaiaZ6/UC76y33hrpviNVCpbJNzU+uFH0SdeFniOnEZRP14kuL66YapmD3MPzMG8v8Ol1UCAR8ar42uyzGZrR5qed24k7grL0LyHvZjNCOUpa5EcIy3gEyn2BhZ9ViRXv4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711399845; c=relaxed/simple; bh=nwpWNJ7Rq9nWxFjGUbTYvZ8rrXcuvUx4PD8XjiRJP98=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=ltlk/HA/zVtcJLku15+JXemCo5vMQsGh4tlQL1A8Rt7HQdqbBIZ6Prla4C4rjTNJSfag+jUbIw7KrzS+kJ389kCX6wA2xbacNQ02VwrRMiznH0DSNEUow9/DuIpo8H8aeeUXAhLgdfslVL8gNlz4uFB6TPovjIVjOXJ0gUcQG0A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SB97ZrcS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCCEEC433C7; Mon, 25 Mar 2024 20:50:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711399845; bh=nwpWNJ7Rq9nWxFjGUbTYvZ8rrXcuvUx4PD8XjiRJP98=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=SB97ZrcSI2pLHFXsw+oj5amBylNVmymv+FPWWcYtfpoQwYznb+o7ooG/Q3UrhCMmR NrnumCMSzASq3eFhi1FVniahuIvABwjhcof2L3TyuOkd5noG3RnHb5DGz0H6KDQR0k uSxFsmyYmAg5xxTllnUFXfTCF+lWEojUu7QSlTfAyfbm0oVX1+G5kZKgI5LEK3Dgw0 A1GOKSqg8lOw1Jr3snDb103h8/CwoNAW6HSWvRJzDqTI3djLJwxF+4fLBRdGHclh7m ZL7SFlRWjjEsbXsFXa5gIhRFaDusjA+RfF6fU5C5NQoF8SBF7Ig8OH2HY1O66R7ltU s8lO9DVr9bvkw== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 25 Mar 2024 22:50:40 +0200 Message-Id: Cc: "Masami Hiramatsu" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , , "Luis Chamberlain" , , "Naveen N . Rao" , "Anil S Keshavamurthy" , "David S . Miller" Subject: Re: [PATCH v3 1/2] kprobes: textmem API From: "Jarkko Sakkinen" To: "Jarkko Sakkinen" , X-Mailer: aerc 0.17.0 References: <20240325203755.1811-1-jarkko@kernel.org> In-Reply-To: <20240325203755.1811-1-jarkko@kernel.org> On Mon Mar 25, 2024 at 10:37 PM EET, Jarkko Sakkinen wrote: > - if (ret =3D=3D -ENOENT && !trace_kprobe_module_exist(tk)) { > +#ifdef CONFIG_MODULES > + if (ret =3D=3D -ENOENT && trace_kprobe_module_exist(tk)) > + ret =3D 0; > +#endif /* CONFIG_MODULES */ For this we could have #ifndef CONFIG_MODULES #define trace_kprobe_module_exist(tk) false #endif That would clean up at least two locations requiring no changes. Should I go forward this or not? BR, Jarkko