Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1842524lqp; Mon, 15 Apr 2024 21:47:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPvQl7Dn9koEy4QvbMq5f3rLAWCSQkAUSJS0dplSz6Nu4LytXekIIAY2XD7/osNeYiWVxaguhMleDD4EFtEXQevL3gA5HySBfC5465Pg== X-Google-Smtp-Source: AGHT+IELzm8KR+GVswiKNk2gDa6zvo9A1LTvY2zQ5FiiSXFLMRpGbD2sf9hkFWFzGoQaHVlRCGC/ X-Received: by 2002:a0c:cc88:0:b0:699:42b7:fbaa with SMTP id f8-20020a0ccc88000000b0069942b7fbaamr13584046qvl.1.1713242864006; Mon, 15 Apr 2024 21:47:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713242863; cv=pass; d=google.com; s=arc-20160816; b=Ui1HBBhD3Tk2Hr5ypBPy8bav/9YcQzKX7rKBGuN4I6KxzQ+uazFWgFpvMoPxbSIAw+ Py1IdX9z3BN966T2p8WaISxC8+MuJKeBm6YERj4EwKQ84xtlGPBzovuTVRl7b0WoIx4u Zy+KkUtykXGcSwlzG8UMv5VEW7Z6aAht7ZaiNgCZwj6gvC1ITIr3Rlb7qleRL8FwQHLh gVA/OXDfLNYIVjloJCcgaqEQkLLiO8F028m5Uy0m16ozbWeHKXxEm6C6smyZq7bKVmC5 e2WufDOONdTW3qxKmIliGrxPgf0UJJOWwNfJ7sQyLHsqQDUxm4PoMA467liN8Ew4QaaH x2VQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=/bvOCUVpZSQMxWyPSe43D/NJPk+SrCqsJCIhgTJ/mC0=; fh=8+UwUY4S77KDWkMKoQ3g1LbjLBRmHIGqQdlu5cKIx+c=; b=0YFH6/5MUZg598+MuIrzmprUkSf+6U9Gi6TVU299Q1g3lLuVbZ01Z7BAYOdLjY44P9 Dl71IigMcOQLNpDfUrYas+nSrMRI8nHnTN9xOKjhnpk7OvIw4MsqCK1e4XoHIJN5lqwT EsYPnFRQ60ulAZ0CN/JVUJe6dXnXHF3GqSqDx427CedKu5PWWBTyvuunKkHklD/vEycP UsDwnmSHJAR4zSq8bUfyE6rFsgBzzSsCtL4WA4rPfICmv/JevVhhg56NiREu1//XMnhH T86c4tO82d3sz1gv2J0tizs/HkVTUw0J2cY0ptbGbZgmXPkp+sOUG+WlhhKUvW8nNHrQ puuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-146238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146238-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h9-20020a0cb4c9000000b0069b413eafdcsi11919728qvf.130.2024.04.15.21.47.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 21:47:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-146238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146238-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B09211C21016 for ; Tue, 16 Apr 2024 04:47:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2EFE381A1; Tue, 16 Apr 2024 04:47:33 +0000 (UTC) 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 47A2239FD0; Tue, 16 Apr 2024 04:47:32 +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=1713242853; cv=none; b=SC4zODg1lbcFcfDN4diEa6naee9wUFu/Bbs1J2U4nMOn1V5d8wgI5HdNGKltqaha9PH0EDGjl3vwqlAgi9o5/Tfl0QokUzT+VRNT4yXnO8EtroND3Vr0VcCC0cBCyGVhoTfmaE7kxgJX/9BVCqIV8CUnEdK2KeNndUU4KFMbbEo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713242853; c=relaxed/simple; bh=TeLoISl2F+4ryxFAdG4SfJT5pi3IscEEiknzA03nl3M=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=riCvH3Vtf4Qqv4OAsUjcLCGSnKrWczb5cavHxErJzkkqBBgnyj9kzt2yQ0P3n2HtN5ywXwKu7a7u5sDLV+CGAzDeX9xWh6bhQ5Up2ha/8/pQxnS/6Z1NYpAtjAtXVAtN8hTNNT5j+Qq4aV+x30+vN19CPsuQn22jMMNz6xxngMo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D9FCC113CE; Tue, 16 Apr 2024 04:47:31 +0000 (UTC) Date: Tue, 16 Apr 2024 00:47:26 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: LKML , Linux trace kernel , Andrii Nakryiko , Francis Laniel Subject: Re: [PATCH for-next v2] tracing/kprobes: Add symbol counting check when module loads Message-ID: <20240416004726.792b8158@rorschach.local.home> In-Reply-To: <171317402290.228024.13465974857683559752.stgit@devnote2> References: <171317402290.228024.13465974857683559752.stgit@devnote2> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 15 Apr 2024 18:40:23 +0900 "Masami Hiramatsu (Google)" wrote: > Check the number of probe target symbols in the target module when > the module is loaded. If the probe is not on the unique name symbols > in the module, it will be rejected at that point. > > Note that the symbol which has a unique name in the target module, > it will be accepted even if there are same-name symbols in the > kernel or other modules, This says what it does, but doesn't explain why it is doing it. What's the purpose of this patch? -- Steve