Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp917436pxk; Thu, 10 Sep 2020 01:59:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1GRkfRV95SlosKUlifyxk4JHYDIcXmUPsEYLIlEk0T94IMwAobQvPxpXJoPRk5O8DWRGk X-Received: by 2002:a17:906:aac7:: with SMTP id kt7mr7625644ejb.548.1599728362378; Thu, 10 Sep 2020 01:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599728362; cv=none; d=google.com; s=arc-20160816; b=HTuDCc/L8oE1l67MbouTiZPmFQ8Wp4M5PjsfqT/80OWa2Wd1fEhuELNF/Hlf0KXhID QQHk2mKMIErvds6pVX9ohD4lDV7tLP7eLnUwGCCTgFkCtTpFskQRWVimY+umyAdP4Zw6 Y+GHEqc9E7v0GBATf1BkNM0POhIEuCCgcmeE1T9KpSSw+O/nA5u2Lee6UQDN7ie4BE0I zONYmL42Vd+oVpuffl9HStcg0Sd8LYDFr7lafRsuPfyUKHAJhPQ3tNvNCpaVLmRBOkBe cBQWxnx10kpcfi0G9E/ppASIL0VV+A01nQ/x6ulkKc+pphlrnktpD+5H+etLLHURDESY QFMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=p4ypLUlCYEkML7imHtqGsMUoSj8Yj03jsgRwG1me0Eo=; b=GwFev1BTE2BblCmpOVZSFGPY/Yl2Bi+MhBlIxQmzuLAEW73Tywqhr9o5FI3iGUT0jS em6fLZch2RasCQPGqwPPq11GzxV5jd3wRRi9GRMDmZJPMpsr7B0J0g2qldZDvMnTkN8g z3x7nT/cFGvPdXy+VFWZFgNL2W0oolirRYPosyC6tiu11Rt4czFpbMSPDe31YBPQ23tY 3wssdH0xOKCv+RpRe2pJYo6EXn22bAKMFgtWwsKHsF+L+vtXl8nKSHPTXOgfqH5hlq4C apb0ICLa+xW8CakO7DNqWEskrW5npx6ukK42Bm6eKHIyaRIHsDrMW2khinnee4u6y5VS HKwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m8cj+Cx4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d25si3168774edn.340.2020.09.10.01.58.59; Thu, 10 Sep 2020 01:59:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m8cj+Cx4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730328AbgIJI5x (ORCPT + 99 others); Thu, 10 Sep 2020 04:57:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:37216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730424AbgIJI4C (ORCPT ); Thu, 10 Sep 2020 04:56:02 -0400 Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3C0A020872; Thu, 10 Sep 2020 08:55:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599728161; bh=NP1Z6K6LEc0Z5cQ6QS7YeNkBtyB+Ncb3GwWlXhqAyDA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m8cj+Cx4K7hEVWaJ3hdN0XcDhAKgVhrFPDd//yxpiFJ8Zq36Dzw+KF4KxLAC3cnmT Ed7aDyGiIwNCDu2DApfPgEL3/mVp40Upa1hLYLVl3rKjYSRiNP3O4S+7oA3KnVYKlQ gCNWfoFkhD1MDTSuKoVUo97k6M/x3kk6gynNcWZI= From: Masami Hiramatsu To: Steven Rostedt , Jonathan Corbet , Shuah Khan Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Randy Dunlap , Ingo Molnar , linux-kselftest@vger.kernel.org Subject: [PATCH v3 6/8] Documentation: tracing: Add %return suffix description Date: Thu, 10 Sep 2020 17:55:56 +0900 Message-Id: <159972815624.428528.10450874184415697524.stgit@devnote2> X-Mailer: git-send-email 2.25.1 In-Reply-To: <159972809455.428528.4737752126800169128.stgit@devnote2> References: <159972809455.428528.4737752126800169128.stgit@devnote2> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a description of the %return suffix option for kprobe event and uprobe event. Signed-off-by: Masami Hiramatsu --- Changes in v3 - Add description for uprobe events too. Changes in v2 - Use a tab for indentation as other lines do. --- Documentation/trace/kprobetrace.rst | 2 ++ Documentation/trace/uprobetracer.rst | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Documentation/trace/kprobetrace.rst b/Documentation/trace/kprobetrace.rst index c1709165c553..a18eb97a263c 100644 --- a/Documentation/trace/kprobetrace.rst +++ b/Documentation/trace/kprobetrace.rst @@ -30,6 +30,7 @@ Synopsis of kprobe_events p[:[GRP/]EVENT] [MOD:]SYM[+offs]|MEMADDR [FETCHARGS] : Set a probe r[MAXACTIVE][:[GRP/]EVENT] [MOD:]SYM[+0] [FETCHARGS] : Set a return probe + p:[GRP/]EVENT] [MOD:]SYM[+0]%return [FETCHARGS] : Set a return probe -:[GRP/]EVENT : Clear a probe GRP : Group name. If omitted, use "kprobes" for it. @@ -37,6 +38,7 @@ Synopsis of kprobe_events based on SYM+offs or MEMADDR. MOD : Module name which has given SYM. SYM[+offs] : Symbol+offset where the probe is inserted. + SYM%return : Return address of the symbol MEMADDR : Address where the probe is inserted. MAXACTIVE : Maximum number of instances of the specified function that can be probed simultaneously, or 0 for the default value diff --git a/Documentation/trace/uprobetracer.rst b/Documentation/trace/uprobetracer.rst index 98cde99939d7..a8e5938f609e 100644 --- a/Documentation/trace/uprobetracer.rst +++ b/Documentation/trace/uprobetracer.rst @@ -28,6 +28,7 @@ Synopsis of uprobe_tracer p[:[GRP/]EVENT] PATH:OFFSET [FETCHARGS] : Set a uprobe r[:[GRP/]EVENT] PATH:OFFSET [FETCHARGS] : Set a return uprobe (uretprobe) + p[:[GRP/]EVENT] PATH:OFFSET%return [FETCHARGS] : Set a return uprobe (uretprobe) -:[GRP/]EVENT : Clear uprobe or uretprobe event GRP : Group name. If omitted, "uprobes" is the default value. @@ -35,6 +36,7 @@ Synopsis of uprobe_tracer on PATH+OFFSET. PATH : Path to an executable or a library. OFFSET : Offset where the probe is inserted. + OFFSET%return : Offset where the return probe is inserted. FETCHARGS : Arguments. Each probe can have up to 128 args. %REG : Fetch register REG