Home
last modified time | relevance | path

Searched refs:ftrace (Results 1 – 25 of 165) sorted by relevance

1234567

/linux-6.15/tools/perf/
H A Dbuiltin-ftrace.c461 if (!ftrace->inherit) in set_tracing_trace_inherit()
1754 if (!ftrace.bucket_range && ftrace.min_latency) { in cmd_ftrace()
1761 if (ftrace.bucket_range && !ftrace.min_latency) { in cmd_ftrace()
1763 ftrace.min_latency = ftrace.bucket_range; in cmd_ftrace()
1765 if (!ftrace.bucket_range && ftrace.max_latency) { in cmd_ftrace()
1772 if (ftrace.bucket_range && ftrace.max_latency && in cmd_ftrace()
1773 ftrace.max_latency < ftrace.min_latency + ftrace.bucket_range) { in cmd_ftrace()
1785 ftrace.bucket_num = (ftrace.max_latency - ftrace.min_latency) / in cmd_ftrace()
1789 ftrace.max_latency = (NUM_BUCKET - 2) * ftrace.bucket_range + in cmd_ftrace()
1819 ret = evlist__create_maps(ftrace.evlist, &ftrace.target); in cmd_ftrace()
[all …]
/linux-6.15/tools/testing/selftests/ftrace/test.d/direct/
H A Dftrace-direct.tc5 rmmod ftrace-direct ||:
16 rmmod ftrace-direct
23 modprobe ftrace-direct
24 rmmod ftrace-direct
29 modprobe ftrace-direct
31 rmmod ftrace-direct
34 modprobe ftrace-direct
37 rmmod ftrace-direct
40 modprobe ftrace-direct
42 rmmod ftrace-direct
[all …]
H A Dkprobe-direct.tc6 rmmod ftrace-direct ||:
7 if ! modprobe ftrace-direct ; then
17 rmmod ftrace-direct
23 modprobe ftrace-direct
29 rmmod ftrace-direct
74 modprobe ftrace-direct-too
78 rmmod ftrace-direct-too
/linux-6.15/tools/perf/util/
H A Dbpf_ftrace.c26 if (!list_is_singular(&ftrace->filters)) { in perf_ftrace__latency_prepare_bpf()
40 skel->rodata->bucket_range = ftrace->bucket_range; in perf_ftrace__latency_prepare_bpf()
41 skel->rodata->min_latency = ftrace->min_latency; in perf_ftrace__latency_prepare_bpf()
42 skel->rodata->bucket_num = ftrace->bucket_num; in perf_ftrace__latency_prepare_bpf()
43 if (ftrace->bucket_range && ftrace->bucket_num) { in perf_ftrace__latency_prepare_bpf()
48 if (ftrace->target.cpu_list) { in perf_ftrace__latency_prepare_bpf()
54 if (target__has_task(&ftrace->target) || target__none(&ftrace->target)) { in perf_ftrace__latency_prepare_bpf()
60 skel->rodata->use_nsec = ftrace->use_nsec; in perf_ftrace__latency_prepare_bpf()
70 if (ftrace->target.cpu_list) { in perf_ftrace__latency_prepare_bpf()
82 if (target__has_task(&ftrace->target) || target__none(&ftrace->target)) { in perf_ftrace__latency_prepare_bpf()
[all …]
H A Dftrace.h48 int perf_ftrace__latency_prepare_bpf(struct perf_ftrace *ftrace);
49 int perf_ftrace__latency_start_bpf(struct perf_ftrace *ftrace);
50 int perf_ftrace__latency_stop_bpf(struct perf_ftrace *ftrace);
51 int perf_ftrace__latency_read_bpf(struct perf_ftrace *ftrace,
53 int perf_ftrace__latency_cleanup_bpf(struct perf_ftrace *ftrace);
58 perf_ftrace__latency_prepare_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_prepare_bpf()
64 perf_ftrace__latency_start_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_start_bpf()
70 perf_ftrace__latency_stop_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_stop_bpf()
76 perf_ftrace__latency_read_bpf(struct perf_ftrace *ftrace __maybe_unused, in perf_ftrace__latency_read_bpf()
84 perf_ftrace__latency_cleanup_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_cleanup_bpf()
/linux-6.15/Documentation/trace/
H A Dboottime-trace.rst62 Enable given ftrace options.
64 ftrace.[instance.INSTANCE.]tracing_on = 0|1
75 ftrace.[instance.INSTANCE.]alloc_snapshot
84 ftrace.[instance.INSTANCE.]tracer = TRACER
87 ftrace.[instance.INSTANCE.]ftrace.filters
90 ftrace.[instance.INSTANCE.]ftrace.notraces
105 ftrace.[instance.INSTANCE.]event.enable
213 ftrace.event {
250 ftrace.instance {
268 ftrace {
[all …]
H A Dindex.rst8 ftrace-design
10 ftrace
11 ftrace-uses
H A Dfprobe.rst13 feature in ftrace.
23 The fprobe is a wrapper of ftrace (+ kretprobe-like return callback) to
46 The register_fprobe_ips() enables a fprobe by ftrace-location addresses.
80 Same as ftrace, the registered callbacks will start being called some time
82 :file:`Documentation/trace/ftrace.rst`.
110 This is the ftrace address of the traced function (both entry and exit).
112 the address where the ftrace is instrumented.
143 Since the recursion safeness of the fprobe (and ftrace) is a bit different
178 which is traced by other ftrace users is called from the entry_handler.
189 counter may not work correctly, because ftrace skips the fprobe function which
H A Dftrace-uses.rst2 Using ftrace to hook to functions
15 The ftrace infrastructure was originally created to attach callbacks to the
19 how to use ftrace to implement your own function callbacks.
22 The ftrace context
41 is used to tell ftrace what function should be called as the callback
43 ftrace to handle.
46 an ftrace_ops with ftrace:
68 #include <linux/ftrace.h>
108 at the start of the function where ftrace was tracing. Otherwise it
164 The ftrace FLAGS
[all …]
/linux-6.15/samples/ftrace/
H A DMakefile3 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace-direct.o
4 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace-direct-too.o
5 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace-direct-modify.o
6 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT_MULTI) += ftrace-direct-multi.o
7 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT_MULTI) += ftrace-direct-multi-modify.o
8 obj-$(CONFIG_SAMPLE_FTRACE_OPS) += ftrace-ops.o
/linux-6.15/tools/testing/ktest/examples/bootconfigs/
H A Dboottrace.bconf1 ftrace.event {
33 ftrace.instance {
36 ftrace.filters = "user_*"
45 ftrace.filters = "kernel_*"
51 ftrace.alloc_snapshot
57 ftrace = function
/linux-6.15/drivers/hwtracing/stm/
H A Dftrace.c21 struct trace_export ftrace; member
40 struct stm_ftrace *stm = container_of(export, struct stm_ftrace, ftrace); in stm_ftrace_write()
51 sf->ftrace.write = stm_ftrace_write; in stm_ftrace_link()
52 sf->ftrace.flags = TRACE_EXPORT_FUNCTION | TRACE_EXPORT_EVENT in stm_ftrace_link()
55 return register_ftrace_export(&sf->ftrace); in stm_ftrace_link()
62 unregister_ftrace_export(&sf->ftrace); in stm_ftrace_unlink()
/linux-6.15/tools/perf/tests/shell/
H A Dftrace.sh13 output=$(mktemp /tmp/__perf_test.ftrace.XXXXXX)
32 perf ftrace -F > "${output}"
42 perf ftrace trace --graph-opts depth=5 sleep 0.1 > "${output}"
62 perf ftrace latency -T "${target_function}" sleep 0.1 > "${output}"
70 perf ftrace profile --graph-opts depth=5 sleep 0.1 > "${output}"
/linux-6.15/tools/perf/Documentation/
H A Dperf-ftrace.txt1 perf-ftrace(1)
6 perf-ftrace - simple wrapper for kernel's ftrace functionality
12 'perf ftrace' {trace|latency|profile} <command>
16 The 'perf ftrace' command provides a collection of subcommands which use
17 kernel's ftrace infrastructure.
19 'perf ftrace trace' is a simple wrapper of the ftrace. It only supports
23 'perf ftrace latency' calculates execution latency of a given function
29 The following options apply to perf ftrace.
60 OPTIONS for 'perf ftrace trace'
134 OPTIONS for 'perf ftrace latency'
[all …]
/linux-6.15/tools/testing/selftests/ftrace/test.d/trigger/
H A Dtrigger-trace-marker-synthetic.tc15 echo 'hist:keys=common_pid:ts0=common_timestamp.usecs if buf == "start"' > events/ftrace/print/trig…
16 …tamp.usecs-$ts0:onmatch(ftrace.print).latency($lat) if buf == "end"' >> events/ftrace/print/trigger
21 cnt=`grep 'hitcount: *1$' events/ftrace/print/hist | wc -l`
H A Dtrigger-trace-marker-hist.tc14 echo 'hist:keys=common_pid' > events/ftrace/print/trigger
16 grep 'hitcount: *10$' events/ftrace/print/hist > /dev/null || \
H A Dtrigger-trace-marker-synthetic-kernel.tc16 …ommon_timestamp.usecs-$ts0:onmatch(sched.sched_waking).latency($lat)' > events/ftrace/print/trigger
21 grep 'hitcount: *1$' events/ftrace/print/hist > /dev/null || \
/linux-6.15/samples/
H A DMakefile27 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace/
28 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT_MULTI) += ftrace/
29 obj-$(CONFIG_SAMPLE_FTRACE_OPS) += ftrace/
30 obj-$(CONFIG_SAMPLE_TRACE_ARRAY) += ftrace/
/linux-6.15/arch/sh/kernel/
H A DMakefile39 obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
40 obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o
41 obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
/linux-6.15/tools/testing/selftests/rcutorture/bin/
H A Dparse-console.sh188 extract_ftrace_from_console $file > $file.ftrace
189 if [ ! -s $file.ftrace ]; then
190 rm -f $file.ftrace
/linux-6.15/Documentation/features/debug/kprobes-on-ftrace/
H A Darch-support.txt2 # Feature name: kprobes-on-ftrace
4 # description: arch supports combined kprobes and ftrace live patching
/linux-6.15/arch/powerpc/kernel/trace/
H A DMakefile13 obj32-y += ftrace.o ftrace_entry.o
17 obj64-y += ftrace.o ftrace_entry.o
/linux-6.15/arch/powerpc/tools/
H A Dftrace-gen-ool-stubs.sh35 .pushsection .tramp.ftrace.text,"aw"
45 .pushsection .tramp.ftrace.init,"aw"
/linux-6.15/arch/powerpc/kernel/
H A DMakefile140 obj-$(CONFIG_KPROBES_ON_FTRACE) += kprobes-ftrace.o
185 GCOV_PROFILE_kprobes-ftrace.o := n
186 KCOV_INSTRUMENT_kprobes-ftrace.o := n
187 KCSAN_SANITIZE_kprobes-ftrace.o := n
188 UBSAN_SANITIZE_kprobes-ftrace.o := n
/linux-6.15/tools/power/pm-graph/config/
H A Dfreeze.cfg25 # output folder for html, ftrace, and dmesg. Use {date} and {time} for current values
33 # add the dmesg and ftrace log to the html output (default: false)
76 # gather detailed ftrace callgraph data on all timeline events (default: false)

1234567