Home
last modified time | relevance | path

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

1234

/linux/Documentation/trace/
H A 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 …]
H A 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*
H A 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
H A 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
/linux/Documentation/bpf/
H A 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/include/linux/
H A Dtracepoint-defs.h39 struct tracepoint { struct
53 typedef struct tracepoint * const tracepoint_ptr_t; argument
57 struct tracepoint *tp;
88 extern struct tracepoint __tracepoint_##tp
94 # define tracepoint_enabled(tracepoint) false argument
H A Dtracepoint.h25 struct tracepoint;
37 tracepoint_probe_register(struct tracepoint *tp, void *probe, void *data);
39 tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, void *data,
42 tracepoint_probe_register_prio_may_exist(struct tracepoint *tp, void *probe, void *data,
45 tracepoint_probe_unregister(struct tracepoint *tp, void *probe, void *data);
47 tracepoint_probe_register_may_exist(struct tracepoint *tp, void *probe, in tracepoint_probe_register_may_exist()
54 for_each_kernel_tracepoint(void (*fct)(struct tracepoint *tp, void *priv),
66 void for_each_module_tracepoint(void (*fct)(struct tracepoint *,
70 void (*fct)(struct tracepoint *,
89 void for_each_module_tracepoint(void (*fct)(struct tracepoint *, in for_each_module_tracepoint() argument
[all …]
/linux/Documentation/trace/postprocess/
H A 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") {
H A 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/kernel/
H A Dtracepoint.c109 static inline void release_probes(struct tracepoint *tp, struct tracepoint_func *old) in release_probes()
262 static void tracepoint_update_call(struct tracepoint *tp, struct tracepoint_func *tp_funcs) in tracepoint_update_call()
277 static int tracepoint_add_func(struct tracepoint *tp, in tracepoint_add_func()
350 static int tracepoint_remove_func(struct tracepoint *tp, in tracepoint_remove_func()
425 int tracepoint_probe_register_prio_may_exist(struct tracepoint *tp, void *probe, in tracepoint_probe_register_prio_may_exist()
454 int tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, in tracepoint_probe_register_prio()
482 int tracepoint_probe_register(struct tracepoint *tp, void *probe, void *data) in tracepoint_probe_register()
496 int tracepoint_probe_unregister(struct tracepoint *tp, void *probe, void *data) in tracepoint_probe_unregister()
512 void (*fct)(struct tracepoint *tp, void *priv), in for_each_tracepoint_range()
588 static void tp_module_going_check_quiescent(struct tracepoint *tp, void *priv) in tp_module_going_check_quiescent()
[all …]
/linux/tools/bpf/bpftool/Documentation/
H A 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/tools/perf/python/
H A Dtracepoint.py11 setproctitle.setproctitle("tracepoint.py")
8 class tracepoint(perf.evsel): global() class
/linux/scripts/
H A DMakefile14 hostprogs-always-$(CONFIG_TRACEPOINTS) += tracepoint-update
17 tracepoint-update-objs := tracepoint-update.o elf-parse.o
H A D.gitignore14 /tracepoint-update
/linux/Documentation/trace/rv/
H A 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/kernel/trace/
H A Dtrace_fprobe.c51 struct tracepoint *tpoint;
61 struct tracepoint *tpoint = tuser->tpoint; in tracepoint_user_register()
97 static struct tracepoint_user *__tracepoint_user_init(const char *name, struct tracepoint *tpoint) in DEFINE_FREE()
124 static struct tracepoint *find_tracepoint(const char *tp_name,
136 struct tracepoint *tpoint; in tracepoint_user_find_get()
985 struct tracepoint *tpoint;
989 static void __find_tracepoint_module_cb(struct tracepoint *tp, struct module *mod, void *priv) in __find_tracepoint_module_cb()
1006 static void __find_tracepoint_cb(struct tracepoint *tp, void *priv) in __find_tracepoint_cb()
1019 static struct tracepoint *find_tracepoint(const char *tp_name, in find_tracepoint()
1042 static struct tracepoint *find_tracepoint_in_module(struct module *mod, in find_tracepoint_in_module()
[all …]
H A Dtrace_synth.h35 struct tracepoint *tp;
/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
H A 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/tools/testing/selftests/bpf/prog_tests/
H A Dfill_link_info.c84 ASSERT_EQ(info.perf_event.tracepoint.name_len, strlen(TP_NAME) + 1, in verify_perf_link_info()
86 if (!info.perf_event.tracepoint.tp_name) { in verify_perf_link_info()
87 info.perf_event.tracepoint.tp_name = ptr_to_u64(&buf); in verify_perf_link_info()
88 info.perf_event.tracepoint.name_len = sizeof(buf); in verify_perf_link_info()
92 ASSERT_EQ(info.perf_event.tracepoint.cookie, PERF_EVENT_COOKIE, "tracepoint_cookie"); in verify_perf_link_info()
94 err = strncmp(u64_to_ptr(info.perf_event.tracepoint.tp_name), TP_NAME, in verify_perf_link_info()
/linux/tools/testing/selftests/ublk/trace/
H A Dcount_ios_per_tid.bt6 tracepoint:block:block_rq_complete
H A Dseq_io.bt9 tracepoint:block:block_rq_complete
/linux/samples/trace_events/
H A Dtrace_custom_sched.c38 static void fct(struct tracepoint *tp, void *priv) in fct()
/linux/rust/kernel/
H A Dtracepoint.rs25 $crate::bindings::tracepoint,
/linux/tools/perf/tests/shell/
H A Dtrace+probe_vfs_getname.sh23 …evts="$(echo "$(perf list tracepoint 2>/dev/null | grep -E 'syscalls:sys_enter_open(at)? ' | sed -…
/linux/tools/perf/Documentation/
H A 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 };

1234