Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp244236ybr; Fri, 22 May 2020 05:41:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyentDcxme8yDTGwHPtJk4Fx+ZOoj48574Bcy2bnpUbxTb132uuGKXZVobgyl20U4eJ1cAh X-Received: by 2002:a17:906:a0c2:: with SMTP id bh2mr7855180ejb.406.1590151312958; Fri, 22 May 2020 05:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590151312; cv=none; d=google.com; s=arc-20160816; b=xlKAMG8NoSlAt2RYPsko/Gn1n8gj9WRleZlkVeB1NG4kq+F9H9+Lz2SDCAun1S2ack KP7UcP2UoSahJ9cWwd/qcJyJ+2Hq3jAktUsyY+X98gNtjkIumILo23Z4l+KG7tqR5zq3 4zeQQvWa8gTXkc863xZtbk7yW+uPzCzBBjsafYSgM9P8o8gCYqvh0HMi4lEZZhaEDjUS ZlaVUPH3gC7SyFOkVUyoYpv+9oAn7wFW8rZKrK7Gz6OJEMe1dbuWBUfr81aB2dew+uRM NBfznPA0YEwJeIpRjMaq9U+5D6vCJjFkwaCtZxeQJcBTcPOG8P8sR0BhlIIB1fhm39nI 2Kvw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=X8vv9RAAmvyohqU9ulPElq5HEta9hnCrj3HMxYsdJ+s=; b=02GAgqJKeLUPdHIZyYG6N2OeAL/aIJ2vuor3lFA8tYdHENRpNtdQwn0b55lE49SXQ/ Q99YnhstMq4lpdyXz/xrhx4Zpec/nTCZ3DUvVSfndefwKQ9WhhRa2ajKF1lOCzuUcOgr I8usztTcrHU/Xvap9reEgCa9zrWOIa76esx2kO9xGS1mXRfPPVoqQYlU81locmAYyX7S RQpkpOtrSU60F/wuWa2i9awEQsITuKyWS8EBIJAOFvFQ+zMCRPEh6ZXXJM+9jAJUE3OE fc8swjcX1b63UHTnptjdqG27Nk+GzsKorveBdkLinIizZd6Dv5lwH5FimgcAfLzVzd0V KCUw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id aq3si5149313ejc.439.2020.05.22.05.41.29; Fri, 22 May 2020 05:41:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728987AbgEVMhp (ORCPT + 99 others); Fri, 22 May 2020 08:37:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:35822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728717AbgEVMho (ORCPT ); Fri, 22 May 2020 08:37:44 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3B400206D5; Fri, 22 May 2020 12:37:43 +0000 (UTC) Date: Fri, 22 May 2020 08:37:41 -0400 From: Steven Rostedt To: Tom Zanussi Cc: lixinhai.lxh@gmail.com, linux-kernel , Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [PATCH] tracing: Fix events.rst section numbering Message-ID: <20200522083741.7d489e91@gandalf.local.home> In-Reply-To: <90ea854dfb728390b50ddf8a8675238973ee014a.camel@kernel.org> References: <90ea854dfb728390b50ddf8a8675238973ee014a.camel@kernel.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 May 2020 13:29:24 -0500 Tom Zanussi wrote: > The in-kernel trace event API should have its own section, and the > duplicate section numbers need fixing as well. > > Signed-off-by: Tom Zanussi Acked-by: Steven Rostedt (VMware) Jon, Care to take this in your tree? -- Steve > Reported-by: Li Xinhai > --- > Documentation/trace/events.rst | 28 ++++++++++++++-------------- > 1 file changed, 14 insertions(+), 14 deletions(-) > > diff --git a/Documentation/trace/events.rst b/Documentation/trace/events.rst > index ed79b220bd07..1a3b7762cb0f 100644 > --- a/Documentation/trace/events.rst > +++ b/Documentation/trace/events.rst > @@ -526,8 +526,8 @@ The following commands are supported: > > See Documentation/trace/histogram.rst for details and examples. > > -6.3 In-kernel trace event API > ------------------------------ > +7. In-kernel trace event API > +============================ > > In most cases, the command-line interface to trace events is more than > sufficient. Sometimes, however, applications might find the need for > @@ -559,8 +559,8 @@ following: > - tracing synthetic events from in-kernel code > - the low-level "dynevent_cmd" API > > -6.3.1 Dyamically creating synthetic event definitions > ------------------------------------------------------ > +7.1 Dyamically creating synthetic event definitions > +--------------------------------------------------- > > There are a couple ways to create a new synthetic event from a kernel > module or other kernel code. > @@ -665,8 +665,8 @@ registered by calling the synth_event_gen_cmd_end() function: > At this point, the event object is ready to be used for tracing new > events. > > -6.3.3 Tracing synthetic events from in-kernel code > --------------------------------------------------- > +7.2 Tracing synthetic events from in-kernel code > +------------------------------------------------ > > To trace a synthetic event, there are several options. The first > option is to trace the event in one call, using synth_event_trace() > @@ -677,8 +677,8 @@ synth_event_trace_start() and synth_event_trace_end() along with > synth_event_add_next_val() or synth_event_add_val() to add the values > piecewise. > > -6.3.3.1 Tracing a synthetic event all at once > ---------------------------------------------- > +7.2.1 Tracing a synthetic event all at once > +------------------------------------------- > > To trace a synthetic event all at once, the synth_event_trace() or > synth_event_trace_array() functions can be used. > @@ -779,8 +779,8 @@ remove the event: > > ret = synth_event_delete("schedtest"); > > -6.3.3.1 Tracing a synthetic event piecewise > -------------------------------------------- > +7.2.2 Tracing a synthetic event piecewise > +----------------------------------------- > > To trace a synthetic using the piecewise method described above, the > synth_event_trace_start() function is used to 'open' the synthetic > @@ -863,8 +863,8 @@ Note that synth_event_trace_end() must be called at the end regardless > of whether any of the add calls failed (say due to a bad field name > being passed in). > > -6.3.4 Dyamically creating kprobe and kretprobe event definitions > ----------------------------------------------------------------- > +7.3 Dyamically creating kprobe and kretprobe event definitions > +-------------------------------------------------------------- > > To create a kprobe or kretprobe trace event from kernel code, the > kprobe_event_gen_cmd_start() or kretprobe_event_gen_cmd_start() > @@ -940,8 +940,8 @@ used to give the kprobe event file back and delete the event: > > ret = kprobe_event_delete("gen_kprobe_test"); > > -6.3.4 The "dynevent_cmd" low-level API > --------------------------------------- > +7.4 The "dynevent_cmd" low-level API > +------------------------------------ > > Both the in-kernel synthetic event and kprobe interfaces are built on > top of a lower-level "dynevent_cmd" interface. This interface is