Home
last modified time | relevance | path

Searched refs:tracepoint (Results 1 – 25 of 87) sorted by relevance

1234

/linux-6.12.1/Documentation/trace/
Dtracepoints.rst16 A tracepoint placed in code provides a hook to call a function (probe)
17 that you can provide at runtime. A tracepoint can be "on" (a probe is
18 connected to it) or "off" (no probe is attached). When a tracepoint is
22 and adds a data structure in a separate section). When a tracepoint
23 is "on", the function you provide is called each time the tracepoint
26 the tracepoint site).
30 whose prototypes are described in a tracepoint declaration placed in a
40 - A tracepoint definition, placed in a header file.
41 - The tracepoint statement, in C code.
43 In order to use tracepoints, you should include linux/tracepoint.h.
[all …]
Dfprobetrace.rst16 This document also covers tracepoint probe events (tprobe) since this
17 is also works only on the tracepoint entry. User can trace a part of
18 tracepoint argument, or the tracepoint without trace-event, which is
21 As same as other dynamic events, fprobe events and tracepoint probe
30 t[:[GRP2/][EVENT2]] TRACEPOINT [FETCHARGS] : Probe on tracepoint
45 entry or tracepoint.) (\*1)
83 BTF (BPF Type Format) argument allows user to trace function and tracepoint
114 is expanded to all function arguments of the function or the tracepoint. ::
188 Also, here is an example of tracepoint events on ``sched_switch`` tracepoint.
209 the other hand, the ``sched_switch`` tracepoint probe event shows *raw*
Devents-nmi.rst13 You might want to use this tracepoint if you suspect that your
19 and this tracepoint will allow you to drill down and get some
Duser_events.rst98 tracepoint name will be in the new format of "name.unique_id" vs the older
99 format of "name". A tracepoint will be created for each unique pair of name
101 they will use the same tracepoint. If yet another process uses the same name,
103 tracepoint with a new unique id. Recording programs need to scan tracefs for
105 recording. The system name of the tracepoint will also use "user_events_multi"
108 a hex string. Recording programs should ensure the tracepoint name starts with
127 In addition if the USER_EVENT_REG_MULTI_FORMAT flag is used the tracepoint name
Dindex.rst9 tracepoint-analysis
/linux-6.12.1/include/linux/
Dtracepoint-defs.h32 struct tracepoint { struct
47 typedef struct tracepoint * const tracepoint_ptr_t; argument
51 struct tracepoint *tp;
82 extern struct tracepoint __tracepoint_##tp
88 # define tracepoint_enabled(tracepoint) false argument
Dtracepoint.h24 struct tracepoint;
38 tracepoint_probe_register(struct tracepoint *tp, void *probe, void *data);
40 tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, void *data,
43 tracepoint_probe_register_prio_may_exist(struct tracepoint *tp, void *probe, void *data,
46 tracepoint_probe_unregister(struct tracepoint *tp, void *probe, void *data);
48 tracepoint_probe_register_may_exist(struct tracepoint *tp, void *probe, in tracepoint_probe_register_may_exist()
55 for_each_kernel_tracepoint(void (*fct)(struct tracepoint *tp, void *priv),
67 void for_each_module_tracepoint(void (*fct)(struct tracepoint *,
71 void (*fct)(struct tracepoint *,
90 void for_each_module_tracepoint(void (*fct)(struct tracepoint *, in for_each_module_tracepoint() argument
[all …]
/linux-6.12.1/Documentation/bpf/
Dredirect.rst45 sudo bpftrace -e 'tracepoint:xdp:* { @cnt[probe] = count(); }'
49 @cnt[tracepoint:xdp:mem_connect]: 18
50 @cnt[tracepoint:xdp:mem_disconnect]: 18
51 @cnt[tracepoint:xdp:xdp_exception]: 19605
52 @cnt[tracepoint:xdp:xdp_devmap_xmit]: 1393604
53 @cnt[tracepoint:xdp:xdp_redirect]: 22292200
64 'tracepoint:xdp:xdp_redirect*_err {@redir_errno[-args->err] = count();}
65 tracepoint:xdp:xdp_devmap_xmit {@devmap_errno[-args->err] = count();}'
/linux-6.12.1/Documentation/trace/postprocess/
Dtrace-pagealloc-postprocess.pl189 my $tracepoint;
198 $tracepoint = $4;
224 if ($tracepoint eq "mm_page_alloc") {
226 } elsif ($tracepoint eq "mm_page_free") {
228 } elsif ($tracepoint eq "mm_page_free_batched") {
230 } elsif ($tracepoint eq "mm_page_pcpu_drain") {
233 } elsif ($tracepoint eq "mm_page_alloc_zone_locked") {
236 } elsif ($tracepoint eq "mm_page_alloc_extfrag") {
279 $tracepoint ne "mm_page_pcpu_drain") {
287 $tracepoint ne "mm_page_alloc_zone_locked") {
Dtrace-vmscan-postprocess.pl270 my $tracepoint;
280 $tracepoint = $5;
303 if ($tracepoint eq "mm_vmscan_direct_reclaim_begin") {
318 } elsif ($tracepoint eq "mm_vmscan_direct_reclaim_end") {
330 } elsif ($tracepoint eq "mm_vmscan_kswapd_wake") {
350 } elsif ($tracepoint eq "mm_vmscan_kswapd_sleep") {
362 } elsif ($tracepoint eq "mm_vmscan_wakeup_kswapd") {
374 } elsif ($tracepoint eq "mm_vmscan_lru_isolate") {
395 } elsif ($tracepoint eq "mm_vmscan_lru_shrink_inactive") {
416 } elsif ($tracepoint eq "mm_vmscan_writepage") {
/linux-6.12.1/tools/bpf/bpftool/Documentation/
Dbpftool-perf.rst33 List all raw_tracepoint, tracepoint, kprobe attachment in the system.
37 The attachment point for raw_tracepoint/tracepoint is the trace probe name.
58 pid 21767 fd 5: prog_id 8 tracepoint sys_enter_nanosleep
68 {"pid":21767,"fd":5,"prog_id":8,"fd_type":"tracepoint","tracepoint":"sys_enter_nanosleep"}, \
/linux-6.12.1/kernel/
Dtracepoint.c308 static void tracepoint_update_call(struct tracepoint *tp, struct tracepoint_func *tp_funcs) in tracepoint_update_call()
323 static int tracepoint_add_func(struct tracepoint *tp, in tracepoint_add_func()
396 static int tracepoint_remove_func(struct tracepoint *tp, in tracepoint_remove_func()
472 int tracepoint_probe_register_prio_may_exist(struct tracepoint *tp, void *probe, in tracepoint_probe_register_prio_may_exist()
501 int tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, in tracepoint_probe_register_prio()
529 int tracepoint_probe_register(struct tracepoint *tp, void *probe, void *data) in tracepoint_probe_register()
543 int tracepoint_probe_unregister(struct tracepoint *tp, void *probe, void *data) in tracepoint_probe_unregister()
559 void (*fct)(struct tracepoint *tp, void *priv), in for_each_tracepoint_range()
635 static void tp_module_going_check_quiescent(struct tracepoint *tp, void *priv) in tp_module_going_check_quiescent()
746 void (*fct)(struct tracepoint *tp, in for_each_tracepoint_in_module()
[all …]
/linux-6.12.1/tools/perf/python/
Dtracepoint.py8 class tracepoint(perf.evsel): class
10 config = perf.tracepoint(sys, name)
18 tp = tracepoint("sched", "sched_switch")
/linux-6.12.1/Documentation/trace/rv/
Dda_monitor_instrumentation.rst39 rv_attach_trace_probe("wip", /* XXX: tracepoint */, handle_preempt_disable);
40 rv_attach_trace_probe("wip", /* XXX: tracepoint */, handle_preempt_enable);
41 rv_attach_trace_probe("wip", /* XXX: tracepoint */, handle_sched_waking);
156 rv_attach_trace_probe("wip", /* XXX: tracepoint */, handle_preempt_enable);
157 rv_attach_trace_probe("wip", /* XXX: tracepoint */, handle_sched_waking);
158 rv_attach_trace_probe("wip", /* XXX: tracepoint */, handle_preempt_disable);
/linux-6.12.1/Documentation/bpf/libbpf/
Dprogram_types.rst16 format of ``extras`` depends on the program type, e.g. ``SEC("tracepoint/<category>/<name>")``
180 | | | ``tracepoint
227 .. [#rawtp] The ``raw_tp`` attach format is ``raw_tracepoint[.w]/<tracepoint>``.
234 .. [#tp] The ``tracepoint`` attach format is ``tracepoint/<category>/<name>``.
/linux-6.12.1/kernel/trace/
Dtrace_fprobe.c48 struct tracepoint *tpoint;
388 struct tracepoint *tpoint, in alloc_trace_fprobe()
680 struct tracepoint *tpoint = tf->tpoint; in __regsiter_tracepoint_fprobe()
882 struct tracepoint *tpoint;
886 static void __find_tracepoint_module_cb(struct tracepoint *tp, struct module *mod, void *priv) in __find_tracepoint_module_cb()
902 static void __find_tracepoint_cb(struct tracepoint *tp, void *priv) in __find_tracepoint_cb()
917 static struct tracepoint *find_tracepoint(const char *tp_name, in find_tracepoint()
945 static struct tracepoint *find_tracepoint_in_module(struct module *mod, in find_tracepoint_in_module()
961 struct tracepoint *tpoint; in __tracepoint_probe_module_cb()
1077 struct tracepoint *tpoint = NULL; in __trace_fprobe_create()
Dtrace_synth.h35 struct tracepoint *tp;
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh46 local tracepoint=$1
49 perf record -q -e $tracepoint $cmd
55 local tracepoint=$1
58 perf record -a -q -e $tracepoint sleep $seconds
64 local tracepoint=$1
67 return `echo $perf_output | grep "$tracepoint:" | wc -l`
72 local tracepoint=$1
75 __tp_hit_count $tracepoint
84 local tracepoint=$1
86 __tp_hit_count $tracepoint
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dfill_link_info.c83 ASSERT_EQ(info.perf_event.tracepoint.name_len, strlen(TP_NAME) + 1, in verify_perf_link_info()
85 if (!info.perf_event.tracepoint.tp_name) { in verify_perf_link_info()
86 info.perf_event.tracepoint.tp_name = ptr_to_u64(&buf); in verify_perf_link_info()
87 info.perf_event.tracepoint.name_len = sizeof(buf); in verify_perf_link_info()
91 ASSERT_EQ(info.perf_event.tracepoint.cookie, PERF_EVENT_COOKIE, "tracepoint_cookie"); in verify_perf_link_info()
93 err = strncmp(u64_to_ptr(info.perf_event.tracepoint.tp_name), TP_NAME, in verify_perf_link_info()
/linux-6.12.1/samples/trace_events/
Dtrace_custom_sched.c38 static void fct(struct tracepoint *tp, void *priv) in fct()
/linux-6.12.1/tools/bpf/bpftool/
Dlink.c389 u64_to_ptr(info->perf_event.tracepoint.tp_name)); in show_perf_event_tracepoint_json()
390 jsonw_uint_field(wtr, "cookie", info->perf_event.tracepoint.cookie); in show_perf_event_tracepoint_json()
832 buf = u64_to_ptr(info->perf_event.tracepoint.tp_name); in show_perf_event_tracepoint_plain()
837 if (info->perf_event.tracepoint.cookie) in show_perf_event_tracepoint_plain()
838 printf("cookie %llu ", info->perf_event.tracepoint.cookie); in show_perf_event_tracepoint_plain()
1065 if (!info.perf_event.tracepoint.tp_name) { in do_show_link()
1066 info.perf_event.tracepoint.tp_name = ptr_to_u64(&buf); in do_show_link()
1067 info.perf_event.tracepoint.name_len = sizeof(buf); in do_show_link()
/linux-6.12.1/tools/perf/Documentation/
Dsecurity.txt52 + tracepoint
148 >= 0: Disallow raw and ftrace function tracepoint access
178 class perf_event { cpu kernel open read tracepoint write };
182 allow unconfined_t self:perf_event { cpu kernel open read tracepoint write };
Dperf-evlist.txt40 Show tracepoint field names.
/linux-6.12.1/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
DMakefile46 tracepoint.o
/linux-6.12.1/kernel/module/
Dversion.c98 struct tracepoint * const *tp) in module_layout()

1234