/linux-6.1.9/tools/perf/ |
D | builtin-ftrace.c | 223 static void reset_tracing_options(struct perf_ftrace *ftrace __maybe_unused) in reset_tracing_options() 235 static int reset_tracing_files(struct perf_ftrace *ftrace __maybe_unused) in reset_tracing_files() 256 reset_tracing_options(ftrace); in reset_tracing_files() 260 static int set_tracing_pid(struct perf_ftrace *ftrace) in set_tracing_pid() argument 265 if (target__has_cpu(&ftrace->target)) in set_tracing_pid() 268 for (i = 0; i < perf_thread_map__nr(ftrace->evlist->core.threads); i++) { in set_tracing_pid() 270 perf_thread_map__pid(ftrace->evlist->core.threads, i)); in set_tracing_pid() 302 static int set_tracing_cpu(struct perf_ftrace *ftrace) in set_tracing_cpu() argument 304 struct perf_cpu_map *cpumap = ftrace->evlist->core.user_requested_cpus; in set_tracing_cpu() 306 if (!target__has_cpu(&ftrace->target)) in set_tracing_cpu() [all …]
|
/linux-6.1.9/tools/testing/selftests/ftrace/test.d/direct/ |
D | ftrace-direct.tc | 5 rmmod ftrace-direct ||: 6 if ! modprobe ftrace-direct ; then 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 [all …]
|
D | kprobe-direct.tc | 6 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.1.9/tools/perf/util/ |
D | bpf_ftrace.c | 19 int perf_ftrace__latency_prepare_bpf(struct perf_ftrace *ftrace) in perf_ftrace__latency_prepare_bpf() argument 25 if (!list_is_singular(&ftrace->filters)) { in perf_ftrace__latency_prepare_bpf() 27 list_empty(&ftrace->filters) ? "No" : "Too many"); in perf_ftrace__latency_prepare_bpf() 31 func = list_first_entry(&ftrace->filters, struct filter_entry, list); in perf_ftrace__latency_prepare_bpf() 40 if (ftrace->target.cpu_list) { in perf_ftrace__latency_prepare_bpf() 41 ncpus = perf_cpu_map__nr(ftrace->evlist->core.user_requested_cpus); in perf_ftrace__latency_prepare_bpf() 45 if (target__has_task(&ftrace->target) || target__none(&ftrace->target)) { in perf_ftrace__latency_prepare_bpf() 46 ntasks = perf_thread_map__nr(ftrace->evlist->core.threads); in perf_ftrace__latency_prepare_bpf() 58 if (ftrace->target.cpu_list) { in perf_ftrace__latency_prepare_bpf() 66 cpu = perf_cpu_map__cpu(ftrace->evlist->core.user_requested_cpus, i).cpu; in perf_ftrace__latency_prepare_bpf() [all …]
|
D | ftrace.h | 40 int perf_ftrace__latency_prepare_bpf(struct perf_ftrace *ftrace); 41 int perf_ftrace__latency_start_bpf(struct perf_ftrace *ftrace); 42 int perf_ftrace__latency_stop_bpf(struct perf_ftrace *ftrace); 43 int perf_ftrace__latency_read_bpf(struct perf_ftrace *ftrace, 45 int perf_ftrace__latency_cleanup_bpf(struct perf_ftrace *ftrace); 50 perf_ftrace__latency_prepare_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_prepare_bpf() 56 perf_ftrace__latency_start_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_start_bpf() 62 perf_ftrace__latency_stop_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_stop_bpf() 68 perf_ftrace__latency_read_bpf(struct perf_ftrace *ftrace __maybe_unused, in perf_ftrace__latency_read_bpf() 75 perf_ftrace__latency_cleanup_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_cleanup_bpf()
|
/linux-6.1.9/Documentation/trace/ |
D | boottime-trace.rst | 13 device initialization with full features of ftrace including per-event 23 boot config file [1]_. All options are under "ftrace." or "kernel." 40 Dump ftrace on Oops. If MODE = 1 or omitted, dump trace buffer 59 These options can be used for each instance including global ftrace node. 61 ftrace.[instance.INSTANCE.]options = OPT1[, OPT2[...]] 62 Enable given ftrace options. 64 ftrace.[instance.INSTANCE.]tracing_on = 0|1 68 ftrace.[instance.INSTANCE.]trace_clock = CLOCK 69 Set given CLOCK to ftrace's trace_clock. 71 ftrace.[instance.INSTANCE.]buffer_size = SIZE [all …]
|
D | index.rst | 8 ftrace-design 10 ftrace 11 ftrace-uses
|
D | fprobe.rst | 12 Fprobe is a function entry/exit probe mechanism based on ftrace. 13 Instead of using ftrace full feature, if you only want to attach callbacks 22 The fprobe is a wrapper of ftrace (+ kretprobe-like return callback) to 45 The register_fprobe_ips() enables a fprobe by ftrace-location addresses. 79 Same as ftrace, the registered callbacks will start being called some time 81 :file:`Documentation/trace/ftrace.rst`. 105 This is the ftrace address of the traced function (both entry and exit). 107 the address where the ftrace is instrumented. 119 Since the recursion safeness of the fprobe (and ftrace) is a bit different 154 which is traced by other ftrace users is called from the entry_handler. [all …]
|
D | ftrace-uses.rst | 2 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.1.9/samples/ftrace/ |
D | Makefile | 3 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
|
/linux-6.1.9/drivers/hwtracing/stm/ |
D | ftrace.c | 21 struct trace_export ftrace; member 39 struct stm_ftrace *stm = container_of(export, struct stm_ftrace, ftrace); in stm_ftrace_write() 50 sf->ftrace.write = stm_ftrace_write; in stm_ftrace_link() 51 sf->ftrace.flags = TRACE_EXPORT_FUNCTION | TRACE_EXPORT_EVENT in stm_ftrace_link() 54 return register_ftrace_export(&sf->ftrace); in stm_ftrace_link() 61 unregister_ftrace_export(&sf->ftrace); in stm_ftrace_unlink()
|
/linux-6.1.9/tools/testing/ktest/examples/bootconfigs/ |
D | boottrace.bconf | 1 ftrace.event { 33 ftrace.instance { 36 ftrace.filters = "user_*" 45 ftrace.filters = "kernel_*" 51 ftrace.alloc_snapshot 57 ftrace = function
|
/linux-6.1.9/tools/perf/Documentation/ |
D | perf-ftrace.txt | 1 perf-ftrace(1) 6 perf-ftrace - simple wrapper for kernel's ftrace functionality 12 'perf ftrace' {trace|latency} <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 26 The following options apply to perf ftrace. 57 OPTIONS for 'perf ftrace trace' 128 OPTIONS for 'perf ftrace latency' [all …]
|
/linux-6.1.9/tools/testing/selftests/ftrace/test.d/trigger/ |
D | trigger-trace-marker-synthetic.tc | 15 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`
|
D | trigger-trace-marker-hist.tc | 14 echo 'hist:keys=common_pid' > events/ftrace/print/trigger 16 grep 'hitcount: *10$' events/ftrace/print/hist > /dev/null || \
|
D | trigger-trace-marker-synthetic-kernel.tc | 16 …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.1.9/tools/lib/traceevent/Documentation/ |
D | libtraceevent-parse_event.txt | 48 buf = read_file("/sys/kernel/tracing/events/ftrace/print/format", &size); 49 if (tep_parse_event(tep, buf, size, "ftrace") != 0) { 50 /* Failed to parse the ftrace print format */ 53 if (tep_parse_format(tep, &event, buf, size, "ftrace") != 0) { 54 /* Failed to parse the ftrace print format */
|
/linux-6.1.9/samples/ |
D | Makefile | 25 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace/ 26 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT_MULTI) += ftrace/ 27 obj-$(CONFIG_SAMPLE_TRACE_ARRAY) += ftrace/
|
/linux-6.1.9/arch/sh/kernel/ |
D | Makefile | 41 obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o 42 obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o 43 obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
|
/linux-6.1.9/Documentation/features/debug/kprobes-on-ftrace/ |
D | arch-support.txt | 2 # Feature name: kprobes-on-ftrace 4 # description: arch supports combined kprobes and ftrace live patching
|
/linux-6.1.9/tools/bootconfig/scripts/ |
D | bconf2ftrace.sh | 66 . `dirname $0`/ftrace.sh 258 set_array_of ${instance}.ftrace.filters \ 260 set_array_of ${instance}.ftrace.notrace \
|
/linux-6.1.9/tools/power/pm-graph/config/ |
D | freeze.cfg | 25 # 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)
|
D | standby.cfg | 25 # 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)
|
/linux-6.1.9/Documentation/livepatch/ |
D | livepatch.rst | 43 Most of these problems are solved by using the dynamic ftrace framework as 44 a base. A Kprobe is registered as a ftrace handler when the function entry 46 a live patch is called with the help of a custom ftrace handler. But there are 327 ftrace handler is registered\ [#]_. This stage is indicated by a value of '1' 336 Note that functions might be patched multiple times. The ftrace handler 339 The right implementation is selected by the ftrace handler, see 356 the ftrace handler is unregistered and the struct klp_ops is 378 patch are removed from the corresponding struct klp_ops. The ftrace handler 415 Livepatch is based on the dynamic ftrace. In particular, functions 416 implementing ftrace or the livepatch ftrace handler could not be [all …]
|
/linux-6.1.9/arch/parisc/kernel/ |
D | Makefile | 35 obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o 36 obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
|