Home
last modified time | relevance | path

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

123456

/linux/tools/perf/
H A Dbuiltin-ftrace.c295 static void reset_tracing_options(struct perf_ftrace *ftrace __maybe_unused) in reset_tracing_options()
312 static int reset_tracing_files(struct perf_ftrace *ftrace __maybe_unused) in reset_tracing_files()
333 reset_tracing_options(ftrace); in reset_tracing_files()
370 static int set_tracing_pid(struct perf_ftrace *ftrace) in set_tracing_pid() argument
375 if (target__has_cpu(&ftrace->target)) in set_tracing_pid()
378 for (i = 0; i < perf_thread_map__nr(ftrace->evlist->core.threads); i++) { in set_tracing_pid()
380 perf_thread_map__pid(ftrace->evlist->core.threads, i)); in set_tracing_pid()
412 static int set_tracing_cpu(struct perf_ftrace *ftrace) in set_tracing_cpu() argument
414 struct perf_cpu_map *cpumap = ftrace->evlist->core.user_requested_cpus; in set_tracing_cpu()
416 if (!target__has_cpu(&ftrace->target)) in set_tracing_cpu()
[all …]
/linux/tools/testing/selftests/ftrace/test.d/direct/
H A Dftrace-direct.tc5 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 …]
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/tools/perf/util/
H A Dbpf_ftrace.c22 int perf_ftrace__latency_prepare_bpf(struct perf_ftrace *ftrace) in perf_ftrace__latency_prepare_bpf() argument
28 if (!list_empty(&ftrace->filters)) { in perf_ftrace__latency_prepare_bpf()
29 if (!list_is_singular(&ftrace->filters)) { in perf_ftrace__latency_prepare_bpf()
33 func = list_first_entry(&ftrace->filters, struct filter_entry, list); in perf_ftrace__latency_prepare_bpf()
38 list_for_each(pos, &ftrace->event_pair) in perf_ftrace__latency_prepare_bpf()
53 skel->rodata->bucket_range = ftrace->bucket_range; in perf_ftrace__latency_prepare_bpf()
54 skel->rodata->min_latency = ftrace->min_latency; in perf_ftrace__latency_prepare_bpf()
55 skel->rodata->bucket_num = ftrace->bucket_num; in perf_ftrace__latency_prepare_bpf()
56 if (ftrace->bucket_range && ftrace->bucket_num) { in perf_ftrace__latency_prepare_bpf()
57 bpf_map__set_max_entries(skel->maps.latency, ftrace->bucket_num); in perf_ftrace__latency_prepare_bpf()
[all …]
H A Dftrace.h53 int perf_ftrace__latency_prepare_bpf(struct perf_ftrace *ftrace);
54 int perf_ftrace__latency_start_bpf(struct perf_ftrace *ftrace);
55 int perf_ftrace__latency_stop_bpf(struct perf_ftrace *ftrace);
56 int perf_ftrace__latency_read_bpf(struct perf_ftrace *ftrace,
58 int perf_ftrace__latency_cleanup_bpf(struct perf_ftrace *ftrace);
63 perf_ftrace__latency_prepare_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_prepare_bpf()
69 perf_ftrace__latency_start_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_start_bpf()
75 perf_ftrace__latency_stop_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_stop_bpf()
81 perf_ftrace__latency_read_bpf(struct perf_ftrace *ftrace __maybe_unused, in perf_ftrace__latency_read_bpf()
89 perf_ftrace__latency_cleanup_bpf(struct perf_ftrace *ftrace __maybe_unused) in perf_ftrace__latency_cleanup_bpf()
/linux/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/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/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/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
26 'perf ftrace profile' show a execution profile for each function including
29 The following options apply to perf ftrace.
60 OPTIONS for 'perf ftrace trace'
[all …]
/linux/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/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/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/Documentation/trace/
H A Dindex.rst33 ftrace
34 ftrace-design
35 ftrace-uses
/linux/tools/testing/selftests/rcutorture/bin/
H A Dparse-console.sh187 # don't create $file.ftrace. Otherwise output the results to $file.ftrace
188 extract_ftrace_from_console $file > $file.ftrace
189 if [ ! -s $file.ftrace ]; then
190 rm -f $file.ftrace
/linux/Documentation/livepatch/
H A Dlivepatch.rst43 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/Documentation/arch/riscv/
H A Dcmodx.rst16 Dynamic ftrace
19 Essentially, dynamic ftrace directs the control flow by inserting a function
25 RISC-V ftrace. Kernel preemption makes things even worse as it allows the old
28 In order to get rid of stop_machine() and run dynamic ftrace with full kernel
35 By fixing down the first instruction, AUIPC, the range of the ftrace trampoline
/linux/arch/powerpc/kernel/
H A DMakefile140 obj-$(CONFIG_KPROBES_ON_FTRACE) += kprobes-ftrace.o
183 GCOV_PROFILE_kprobes-ftrace.o := n
184 KCOV_INSTRUMENT_kprobes-ftrace.o := n
185 KCSAN_SANITIZE_kprobes-ftrace.o := n
186 UBSAN_SANITIZE_kprobes-ftrace.o := n
/linux/kernel/trace/
H A DKconfig27 See Documentation/trace/ftrace-design.rst
32 See Documentation/trace/ftrace-design.rst
45 See Documentation/trace/ftrace-design.rst
81 but does not want them included in the ftrace locations.
92 See Documentation/trace/ftrace-design.rst
114 of ftrace locations.
227 Enable developer to setup ftrace subsystem via supplemental
274 See Documentation/trace/ftrace.rst
306 compile time, a table is made of all the locations that ftrace
366 This option enables kernel function probe (fprobe) based on ftrace.
[all …]
/linux/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)
H A Dstandby.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)
/linux/tools/bootconfig/scripts/
H A Dbconf2ftrace.sh66 . `dirname $0`/ftrace.sh
258 set_array_of ${instance}.ftrace.filters \
260 set_array_of ${instance}.ftrace.notrace \
/linux/tools/power/pm-graph/
H A DREADME52 and will capture dmesg and ftrace data. This data is transformed into a set of
106 patch must be applied to enable ftrace data:
141 files in subdirectory: suspend-mmddyy-HHMMSS. The ftrace file can
146 raw ftrace output: <hostname>_<mode>_ftrace.txt
269 dmesg and ftrace logs. This will require a significant amount of time if
284 Each test subfolder contains the dmesg/ftrace logs and/or the html timeline
361 # Add Logs: add the dmesg and ftrace log to the html output (def: false)
391 # Callgraph: gather ftrace callgraph data on all timeline events (def: false)
547 to set them in ftrace. It will then print out success or fail for you.
559 is ftrace supported: YES
[all …]
/linux/tools/testing/selftests/ftrace/
H A DREADME3 This is a collection of testcases for ftrace tracing feature in the Linux
4 kernel. Since ftrace exports interfaces via the debugfs, we just need
7 Running the ftrace testcases

123456