@@ -527,8 +527,8 @@ The following commands are supported:
527
527
528
528
See Documentation/trace/histogram.rst for details and examples.
529
529
530
- 6.3 In-kernel trace event API
531
- -----------------------------
530
+ 7. In-kernel trace event API
531
+ ============================
532
532
533
533
In most cases, the command-line interface to trace events is more than
534
534
sufficient. Sometimes, however, applications might find the need for
@@ -560,8 +560,8 @@ following:
560
560
- tracing synthetic events from in-kernel code
561
561
- the low-level "dynevent_cmd" API
562
562
563
- 6.3 .1 Dyamically creating synthetic event definitions
564
- -----------------------------------------------------
563
+ 7 .1 Dyamically creating synthetic event definitions
564
+ ---------------------------------------------------
565
565
566
566
There are a couple ways to create a new synthetic event from a kernel
567
567
module or other kernel code.
@@ -666,8 +666,8 @@ registered by calling the synth_event_gen_cmd_end() function::
666
666
At this point, the event object is ready to be used for tracing new
667
667
events.
668
668
669
- 6.3.3 Tracing synthetic events from in-kernel code
670
- --------------------------------------------------
669
+ 7.2 Tracing synthetic events from in-kernel code
670
+ ------------------------------------------------
671
671
672
672
To trace a synthetic event, there are several options. The first
673
673
option is to trace the event in one call, using synth_event_trace()
@@ -678,8 +678,8 @@ synth_event_trace_start() and synth_event_trace_end() along with
678
678
synth_event_add_next_val() or synth_event_add_val() to add the values
679
679
piecewise.
680
680
681
- 6.3.3 .1 Tracing a synthetic event all at once
682
- ---------------------------------------------
681
+ 7.2 .1 Tracing a synthetic event all at once
682
+ -------------------------------------------
683
683
684
684
To trace a synthetic event all at once, the synth_event_trace() or
685
685
synth_event_trace_array() functions can be used.
@@ -780,8 +780,8 @@ remove the event::
780
780
781
781
ret = synth_event_delete("schedtest");
782
782
783
- 6.3.3.1 Tracing a synthetic event piecewise
784
- -------------------------------------------
783
+ 7.2.2 Tracing a synthetic event piecewise
784
+ -----------------------------------------
785
785
786
786
To trace a synthetic using the piecewise method described above, the
787
787
synth_event_trace_start() function is used to 'open' the synthetic
@@ -864,8 +864,8 @@ Note that synth_event_trace_end() must be called at the end regardless
864
864
of whether any of the add calls failed (say due to a bad field name
865
865
being passed in).
866
866
867
- 6.3.4 Dyamically creating kprobe and kretprobe event definitions
868
- ----------------------------------------------------------------
867
+ 7.3 Dyamically creating kprobe and kretprobe event definitions
868
+ --------------------------------------------------------------
869
869
870
870
To create a kprobe or kretprobe trace event from kernel code, the
871
871
kprobe_event_gen_cmd_start() or kretprobe_event_gen_cmd_start()
@@ -941,8 +941,8 @@ used to give the kprobe event file back and delete the event::
941
941
942
942
ret = kprobe_event_delete("gen_kprobe_test");
943
943
944
- 6.3 .4 The "dynevent_cmd" low-level API
945
- --------------------------------------
944
+ 7 .4 The "dynevent_cmd" low-level API
945
+ ------------------------------------
946
946
947
947
Both the in-kernel synthetic event and kprobe interfaces are built on
948
948
top of a lower-level "dynevent_cmd" interface. This interface is
0 commit comments