From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (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 5E863286410 for ; Sun, 12 Oct 2025 14:40:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760280028; cv=none; b=hMAkddfwAhiKupxuVLYozFjZ7+1kvx6fKMMTBXdxFuQ1TOG9L0Tci+q4CFQhKtm7XUbCG4Jh4HM+KPQWLrA8wlVSdW5Adw83IH4sOTlOHkc0kXIodjaGZS+Hn7IEatswiLXBWwTeWqXS9lSinwalyH+1ZLC0MHZsSqXzShj0xVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760280028; c=relaxed/simple; bh=Wh5h8R4i6wbyblid+ANW0qxMSJzl7sw5qOnKstak05k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z5QWLIdIc+5NhiI38mu2soTjYPhAJCPuN95pxisINqvm+UrlIt72rPeUJogpgmMWSTnw8KYZIh2tE1E958MT+diad6v0nm/6aK1FFwccTF+eGJnMTi0RIb9UzLSGoXhPqVrWV9K6sFVt2nuLBPKAo96QwzeH0+mHKpBhnQE6JDw= 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=jnns5v6s; arc=none smtp.client-ip=209.85.222.173 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jnns5v6s" Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-87a0801ba1aso559413285a.2 for ; Sun, 12 Oct 2025 07:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760280024; x=1760884824; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rESNqBlm01rEUHeI+dW4BfRZdaJiZNLBgBxLi9o7AK8=; b=jnns5v6smfiu+Q4Mb6oBYc/TSGlQSrShm0RHUTkRgmwwmVxnUd0GaD8hWcIdoYmY1K UGiIW4gAb/eCfhw+xQ6lporwUgJgVnIh7Mad67sBhMLcZ2lj1cst/IkncdZx/cdphg5b 7pH67Cid42kmHEwhEMgiBLX+nwFjvjZlx95LSJGkiDv9YK0JpmY0X17ADNQWfawJJV0H 9dhEtMrGeExZVtDXNClYx8nuqq2rgFE/cZDlEuI9Qn2jHzqXCLU6j6SeoMpkKLE9sBhV GCGtKJsI7dBvDueEi4tImtG1j+Amga+FFUcpUm9WmQmiDiaCzW7hYjP9bCcATkz/OcdQ XBOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760280024; x=1760884824; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rESNqBlm01rEUHeI+dW4BfRZdaJiZNLBgBxLi9o7AK8=; b=PWtfWJx05xFuzswdfmVe0vmUllP3mJRtWaFhRHt+zu5Fs4YJu3edn1yhFYfMtNyzAF aHpSdlwTcpCYo0RxYY4Pgq9etos7mWzQq0NnEpq6tSkYoeAYpb5e+dtu2Ti5KuSF4iCP QoVzaPJLVc+jsSA9RgVuPSSCo0mHV8LAbZ7Mg6d9xgLzgIZeUWspHPHWGzv48MnpT6+L eeOIZwGOT4EJE7wSl2qu4m5fQ3fhwOZklcNTbQEId35CZo0iUIZZAaCNsPNQbJIxePs7 QX/Sdl0rOH4XkavMar1SFu9KK2xFP9VowWtlWBdrSZ25w2zDngbhvk6hy0OXFIHCDccy JX9w== X-Forwarded-Encrypted: i=1; AJvYcCVsLD9u/mxafX5BNOB8dP2aP2az045jgeCyfk3tfyghqLgdDlCDMMizSY58z+6v6Nfh/Os/aqgjEdw=@vger.kernel.org X-Gm-Message-State: AOJu0YzEs9bXTnLTTTlI+N/CQgD4QSY3R1GvIIk4fdZ6Yl4ZO8jbiweT f8R7E1UcHktOsdus1ldCuM27Hh5c7B9So+or3RIIweIS7KWhTvM4+xz6 X-Gm-Gg: ASbGncslQdxyAEQGWfaGQTHQO511mecAm7rhlk+6TRoCyS2+t7JutfuopnuR/Hdzysc sSJYYBHtPgh6n/Ezuy+mqU9v+EDsUiD51z6CHubiSS99FX1nt2GNoYIQRIktb2HW3jpT2PRGDE/ o/+6RMmyN1HHcu1oqG7sJKbIO1NZru6Rp7SoUMCj9IxlI/C7IZCYH8m2p1E5NcD2g+K+Pr4wZrF jxhJ8P7jPdZK11JJaa/b79SvzrRWZqsxG2QW0FIbbAHnsk6QHJd5IqacwhEykxq6k172c2YngKH 5npA0FWG8i9BTdquL5zrnV5mrlaFH8Z9pORGB8VOg132MLAQll45DV51HhNvxvVhAALJyLYXJbA V37iP1Mn1uHdOlmOtU5GJE8oWEjdtbhp91LtxNA6a6Gq1qnLgVECr X-Google-Smtp-Source: AGHT+IHuKrB+wtc9CHezkXO5L4byllrdW5vET8rdYYUSuvOOINFBAia4TK1dY6/MsIv8M0S8kDpO5A== X-Received: by 2002:a05:620a:31a2:b0:85b:e8ca:8ac7 with SMTP id af79cd13be357-88350a7c13fmr2517732685a.31.1760280024215; Sun, 12 Oct 2025 07:40:24 -0700 (PDT) Received: from gmail.com ([2600:4041:4491:2000:f887:3bb2:9bc6:cbb0]) by smtp.gmail.com with ESMTPSA id af79cd13be357-884a23693a0sm797498485a.53.2025.10.12.07.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Oct 2025 07:40:23 -0700 (PDT) Date: Sun, 12 Oct 2025 23:40:21 +0900 From: Ryan Chung To: Masami Hiramatsu Cc: rostedt@goodmis.org, mathieu.desnoyers@efficios.com, shuah@kernel.org, hca@linux.ibm.com, corbet@lwn.net, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v3 1/5] docs: tracing: fprobe: document list filters and :entry/:exit Message-ID: References: <20251004235001.133111-1-seokwoo.chung130@gmail.com> <20251004235001.133111-2-seokwoo.chung130@gmail.com> <20251008100611.6fb5f0b9d49c9d0c403e2670@kernel.org> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251008100611.6fb5f0b9d49c9d0c403e2670@kernel.org> On Wed, Oct 08, 2025 at 10:06:11AM +0900, Masami Hiramatsu wrote: > On Sun, 5 Oct 2025 08:46:55 +0900 > Ryan Chung wrote: > > > Signed-off-by: Ryan Chung > > --- > > Documentation/trace/fprobetrace.rst | 27 +++++++++++++++++++++------ > > 1 file changed, 21 insertions(+), 6 deletions(-) > > > > diff --git a/Documentation/trace/fprobetrace.rst b/Documentation/trace/fprobetrace.rst > > index b4c2ca3d02c1..629e2d7402bd 100644 > > --- a/Documentation/trace/fprobetrace.rst > > +++ b/Documentation/trace/fprobetrace.rst > > @@ -25,21 +25,36 @@ Synopsis of fprobe-events > > ------------------------- > > :: > > > > - f[:[GRP1/][EVENT1]] SYM [FETCHARGS] : Probe on function entry > > - f[MAXACTIVE][:[GRP1/][EVENT1]] SYM%return [FETCHARGS] : Probe on function exit > > - t[:[GRP2/][EVENT2]] TRACEPOINT [FETCHARGS] : Probe on tracepoint > > + # fprobe (function entry/exit) > > + f[:[GRP1/][EVENT1]] SYM_OR_LIST[:entry|:exit] [FETCHARGS] > > + > > + # legacy single-symbol exit > > + f[MAXACTIVE][:[GRP1/][EVENT1]] SYM%return [FETCHARGS] > > + > > + # Probe on tracepoint > > + t[:[GRP2/][EVENT2]] TRACEPOINT [FETCHARGS] > > > > GRP1 : Group name for fprobe. If omitted, use "fprobes" for it. > > GRP2 : Group name for tprobe. If omitted, use "tracepoints" for it. > > - EVENT1 : Event name for fprobe. If omitted, the event name is > > - "SYM__entry" or "SYM__exit". > > + EVENT1 : Event name for fprobe. If omitted, > > + - For a single literal symbol, the event name is > > + "SYM__entry" or "SYM__exit". > > + - For a *list or any wildcard*, an explicit [GRP1/][EVENT1] > > + is required; otherwise the parser rejects it. > > EVENT2 : Event name for tprobe. If omitted, the event name is > > the same as "TRACEPOINT", but if the "TRACEPOINT" starts > > with a digit character, "_TRACEPOINT" is used. > > MAXACTIVE : Maximum number of instances of the specified function that > > can be probed simultaneously, or 0 for the default value > > as defined in Documentation/trace/fprobe.rst > > - > > + SYM_OR_LIST : Either a single symbol, or a comma-separated list of > > + include/exclude patterns: > > + - Tokens are matched as symbols; wildcards may be used. > > + - Tokens prefixed with '!' are exclusions. > > + - Examples: > > + foo # single literal (entry) > > + foo:exit # single literal exit > > + foo%return # legacy single-symbol exit > > So you can explain it in syntax formats: > > Single function (including wildcard): > > f[:[GRP1/][EVENT1]] SYM[%return] [FETCHARGS] > > Multiple functions: > > f[:[GRP1/]EVENT3 SYM[,[!]SYM[,...]][:entry|:exit] [FETCHARGS] > > Where, > - SYM prefixed with '!' are exclusions. > - ":entry" suffix means it probes entry of given symbols. (default) > - ":exit" suffix means it probes exit of given symbols. > - "%return" suffix means it probes exit of SYM (single symbol). > > Thank you, > > > > FETCHARGS : Arguments. Each probe can have up to 128 args. > > ARG : Fetch "ARG" function argument using BTF (only for function > > entry or tracepoint.) (\*1) > > -- > > 2.43.0 > > > > > -- > Masami Hiramatsu (Google) o Hi Masami. Thank you for your coments. I will fold this into v4 and make sure examples and naming rules match the behavior. Thanks for the guidance. Best regards, Ryan Chung