Home
last modified time | relevance | path

Searched +full:ftrace +full:- +full:size (Results 1 – 25 of 226) sorted by relevance

12345678910

/openbmc/linux/Documentation/trace/
H A Dboottime-trace.rst1 .. SPDX-License-Identifier: GPL-2.0
4 Boot-time tracing
12 Boot-time tracing allows users to trace boot-time process including
13 device initialization with full features of ftrace including per-event
14 filter and actions, histograms, kprobe-events and synthetic-events,
23 boot config file [1]_. All options are under "ftrace." or "kernel."
27 .. [1] See :ref:`Documentation/admin-guide/bootconfig.rst <bootconfig>`
28 .. [2] See :ref:`Documentation/admin-guide/kernel-parameters.rst <kernelparameters>`
30 Ftrace Global Options
31 ---------------------
[all …]
H A Dftrace-design.rst12 ------------
20 ftrace.txt file.
23 their kernel should make it all the way to dynamic ftrace support.
27 -------------
29 Ftrace relies on these features being implemented:
30 - STACKTRACE_SUPPORT - implement save_stack_trace()
31 - TRACE_IRQFLAGS_SUPPORT - implement include/asm/irqflags.h
35 --------------------
43 $ echo 'main(){}' | gcc -x c -S -o - - -pg | grep mcount
56 be (semi-)relevant.
[all …]
H A Duser_events.rst2 user_events: User-based Event Tracing
8 --------
10 that can be viewed via existing tools, such as ftrace and perf.
18 tools that can read trace_events (such as ftrace and perf). The registration
31 -----------
39 /* Input: Size of the user_reg structure being used */
40 __u32 size;
45 /* Input: Enable size in bytes at address */
63 + size: This must be set to sizeof(struct user_reg).
68 + enable_size: The size of the value specified by enable_addr.
[all …]
H A Dftrace.rst2 ftrace - Function Tracer
13 - Written for: 2.6.28-rc2
14 - Updated for: 3.10
15 - Updated for: 4.13 - Copyright 2017 VMware Inc. Steven Rostedt
16 - Converted to rst format - Changbin Du <changbin.du@intel.com>
19 ------------
21 Ftrace is an internal tracer designed to help out developers and
24 performance issues that take place outside of user-space.
26 Although ftrace is typically considered the function tracer, it
32 One of the most common uses of ftrace is the event tracing.
[all …]
/openbmc/linux/tools/perf/
H A Dbuiltin-ftrace.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * builtin-ftrace.c
24 #include <subcmd/parse-options.h>
33 #include "util/ftrace.h"
35 #include "util/parse-sublevel-options.h"
58 workload_exec_errno = info->si_value.sival_int; in ftrace__workload_exec_failed_signal()
65 int fd, ret = -1; in __write_tracing_file()
66 ssize_t size = strlen(val); in __write_tracing_file() local
74 return -1; in __write_tracing_file()
96 val_copy[size] = '\n'; in __write_tracing_file()
[all …]
/openbmc/linux/tools/bootconfig/scripts/
H A Dbconf2ftrace.sh2 # SPDX-License-Identifier: GPL-2.0-only
5 echo "Ftrace boottime trace test tool"
6 echo "Usage: $0 [--apply|--init] [--debug] BOOTCONFIG-FILE"
7 echo " --apply: Test actual apply to tracefs (need sudo)"
8 echo " --init: Initialize ftrace before applying (imply --apply)"
12 [ $# -eq 0 ] && usage
20 "--debug")
22 "--apply")
24 "--init")
28 [ ! -f $1 ] && usage
[all …]
/openbmc/linux/tools/perf/Documentation/
H A Dperf-ftrace.txt1 perf-ftrace(1)
5 ----
6 perf-ftrace - simple wrapper for kernel's ftrace functionality
10 --------
12 'perf ftrace' {trace|latency} <command>
15 -----------
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
[all …]
/openbmc/linux/tools/power/pm-graph/
H A Dsleepgraph.83 sleepgraph \- Suspend/Resume timing analysis
13 suspend and capture dmesg and ftrace data until resume is complete.
21 Generates output files in subdirectory: suspend-yymmdd-HHMMSS
24 raw ftrace file : <hostname>_<mode>_ftrace.txt
27 \fB-h\fR
30 \fB-v\fR
33 \fB-verbose\fR
36 \fB-config \fIfile\fR
39 \fB-m \fImode\fR
42 \fB-o \fIname\fR
[all …]
H A Dbootgraph.83 bootgraph \- Kernel boot timing analysis
21 The tool can also augment the timeline with ftrace data on custom target
24 Generates output files in subdirectory: boot-yymmdd-HHMMSS
27 raw ftrace file : <hostname>_boot_ftrace.txt
30 \fB-h\fR
33 \fB-v\fR
36 \fB-addlogs\fR
40 \fB-result \fIfile\fR
43 \fB-o \fIname\fR
47 e.g. boot-{hostname}-{date}-{time}
[all …]
/openbmc/u-boot/lib/
H A Dtrace.c1 // SPDX-License-Identifier: GPL-2.0+
26 * of the function from gd->relocaddr
31 struct trace_call *ftrace; /* The function call records */ member
32 ulong ftrace_size; /* Num. of ftrace records we have space for */
33 ulong ftrace_count; /* Num. of ftrace records written */
49 offset -= (uintptr_t)&_init; in func_ptr_to_num()
51 if (gd->flags & GD_FLG_RELOC) in func_ptr_to_num()
52 offset -= gd->relocaddr; in func_ptr_to_num()
54 offset -= CONFIG_SYS_TEXT_BASE; in func_ptr_to_num()
62 if (hdr->depth > hdr->depth_limit) { in add_ftrace()
[all …]
/openbmc/linux/kernel/trace/
H A Dfprobe.c1 // SPDX-License-Identifier: GPL-2.0
3 * fprobe - Simple ftrace probe wrapper for function entry.
35 if (fp->exit_handler) { in __fprobe_handler()
36 rh = rethook_try_get(fp->rethook); in __fprobe_handler()
38 fp->nmissed++; in __fprobe_handler()
42 fpr->entry_ip = ip; in __fprobe_handler()
43 fpr->entry_parent_ip = parent_ip; in __fprobe_handler()
44 if (fp->entry_data_size) in __fprobe_handler()
45 entry_data = fpr->data; in __fprobe_handler()
48 if (fp->entry_handler) in __fprobe_handler()
[all …]
H A Dtrace_export.c1 // SPDX-License-Identifier: GPL-2.0
3 * trace_export.c - export basic ftrace utilities to user space
11 #include <linux/ftrace.h>
25 #define TRACE_SYSTEM ftrace
28 * The FTRACE_ENTRY_REG macro allows ftrace entry to define register
52 #define __array(type, item, size) type item[size]; argument
55 #define __stack_array(type, item, size, field) __array(type, item, size) argument
58 #define __array_desc(type, container, item, size) type item[size]; argument
78 /* force compile-time check on F_printk() */ \
91 .size = sizeof(_type), .align = __alignof__(_type), \
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
21 API, which will be used by other function-entry hooking
27 See Documentation/trace/ftrace-design.rst
32 See Documentation/trace/ftrace-design.rst
40 See Documentation/trace/ftrace-design.rst
64 but does not want them included in the ftrace locations.
69 See Documentation/trace/ftrace-design.rst
74 See Documentation/trace/ftrace-design.rst
79 Arch supports the gcc options -pg with -mfentry
84 Arch supports the gcc options -pg with -mrecord-mcount and -nop-mcount
[all …]
H A Dtrace_boot.c1 // SPDX-License-Identifier: GPL-2.0
4 * Tracing kernel boot-time
11 #include <linux/ftrace.h>
32 /* Common ftrace options */ in trace_boot_set_instance_options()
63 pr_err("Buffer size is too small: %s\n", p); in trace_boot_set_instance_options()
133 return -ENOTSUPP; in trace_boot_add_kprobe_event()
170 return -ENOTSUPP; in trace_boot_add_synth_event()
182 return -ENOSPC; in append_printf()
185 ret = vsnprintf(*bufp, end - *bufp, fmt, args); in append_printf()
186 if (ret < end - *bufp) { in append_printf()
[all …]
H A Dftrace.c1 // SPDX-License-Identifier: GPL-2.0
3 * Infrastructure for profiling code inserted by 'gcc -pg'.
5 * Copyright (C) 2007-2008 Steven Rostedt <srostedt@redhat.com>
6 * Copyright (C) 2004-2008 Ingo Molnar <mingo@redhat.com>
8 * Originally ported from the -rt patch by:
13 * Copyright (C) 2004-2006 Ingo Molnar
29 #include <linux/ftrace.h>
93 /* ftrace_enabled is a method to turn ftrace on or off */
106 if (!(ops->flags & FTRACE_OPS_FL_PID) || !ops->private) in ftrace_pids_enabled()
109 tr = ops->private; in ftrace_pids_enabled()
[all …]
/openbmc/u-boot/doc/
H A DREADME.trace1 # SPDX-License-Identifier: GPL-2.0+
5 Tracing in U-Boot
8 U-Boot supports a simple tracing feature which allows a record of excecution
14 --------
16 The trace feature uses GCC's instrument-functions feature to trace all
23 resembles that emitted by Linux's ftrace feature, so can be visually
27 Quick-start using Sandbox
28 -------------------------
30 Sandbox is a build of U-Boot that can run under Linux so it is a convenient
43 Build sandbox U-Boot with tracing enabled:
[all …]
/openbmc/linux/arch/s390/include/asm/
H A Dmodule.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <asm-generic/module.h>
23 /* Size of the got. */
25 /* Size of the plt. */
32 /* Start of memory reserved for ftrace hotpatch trampolines. */
34 /* End of memory reserved for ftrace hotpatch trampolines. */
36 /* Next unused ftrace hotpatch trampoline slot. */
/openbmc/linux/Documentation/devicetree/bindings/reserved-memory/
H A Dramoops.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/reserved-memory/ramoops.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 recovered after a reboot. This is a child-node of "/reserved-memory", and
16 as kernel log messages, or for optional ECC error-correction data. The total
17 size of these optional buffers must fit in the reserved region.
20 records. These records have a configurable size, with a size of 0 indicating
23 At least one of "record-size", "console-size", "ftrace-size", or "pmsg-size"
24 must be set non-zero, but are otherwise optional as listed below.
[all …]
/openbmc/linux/tools/power/pm-graph/config/
H A Dexample.cfg9 # sudo ./sleepgraph.py -config config/example.cfg
14 # ---- General Options ----
25 # output folder for html, ftrace, and dmesg. Use {date} and {time} for current values
26 output-dir: suspend-{hostname}-{date}-{time}
33 # add the dmesg and ftrace log to the html output (default: false)
49 # Enable/disable runtime suspend for all devices, restore all after test (default: no-action)
53 # Switch the display on/off for the test using xset (default: no-action)
57 # Print the status of the test run in the given file (default: no-action)
64 # ---- Advanced Options ----
103 callloop-maxgap: 0.0001
[all …]
/openbmc/linux/include/linux/
H A Dfprobe.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Simple ftrace probe wrapper */
7 #include <linux/ftrace.h>
11 * struct fprobe - ftrace based probe.
16 * @entry_data_size: The private data storage size.
45 /* This fprobe is soft-disabled. */
56 return (fp) ? fp->flags & FPROBE_FL_DISABLED : false; in fprobe_disabled()
61 return (fp) ? fp->flags & FPROBE_FL_KPROBE_SHARED : false; in fprobe_shared_with_kprobes()
73 return -EOPNOTSUPP; in register_fprobe()
77 return -EOPNOTSUPP; in register_fprobe_ips()
[all …]
H A Dtrace.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 * The trace export - an export of Ftrace output. The trace_export
12 * an addition to the current only output of Ftrace - i.e. ring buffer.
18 * next - pointer to the next trace_export
19 * write - copy traces which have been delt with ->commit() to
21 * flags - which ftrace to be exported
37 * trace_array_puts - write a constant string into the trace buffer.
43 str ? __trace_array_puts(tr, _THIS_IP_, str, strlen(str)) : -1; \
46 const char *str, int size);
66 return -EINVAL; in register_ftrace_export()
[all …]
/openbmc/qemu/docs/devel/
H A Dtracing.rst19 $ qemu --trace "memory_region_ops_*" ...
21 …19585@1608130130.441188:memory_region_ops_read cpu 0 mr 0x562fdfbb3820 addr 0x3cc value 0x67 size 1
22 …585@1608130130.441190:memory_region_ops_write cpu 0 mr 0x562fdfbd2f00 addr 0x3d4 value 0x70e size 2
25 ``./configure --enable-trace-backends=BACKENDS`` was not explicitly specified.
27 Multiple patterns can be specified by repeating the ``--trace`` option::
29 $ qemu --trace "kvm_*" --trace "virtio_*" ...
32 file to avoid long command-line options::
36 $ qemu --trace events=/tmp/events ...
41 Sub-directory setup
42 -------------------
[all …]
/openbmc/linux/Documentation/admin-guide/
H A Dpstore-blk.rst1 .. SPDX-License-Identifier: GPL-2.0
7 ------------
10 block device and non-block device before the system crashes. You can get
13 mount -t pstore pstore /sys/fs/pstore
17 ---------------------
27 Configurations for driver are all about block device and non-block device,
31 -----------------------
51 #. /dev/<disk_name><decimal> represents the device number of partition - device
53 #. /dev/<disk_name>p<decimal> - same as the above; this form is used when disk
60 #. PARTUUID=00112233-4455-6677-8899-AABBCCDDEEFF represents the unique id of
[all …]
/openbmc/linux/tools/testing/selftests/rcutorture/bin/
H A Dkvm-recheck-rcuscale-ftrace.sh2 # SPDX-License-Identifier: GPL-2.0+
5 # looking for ftrace data. Exits with 0 if data was found, analyzed, and
6 # printed. Intended to be invoked from kvm-recheck-rcuscale.sh after
9 # Usage: kvm-recheck-rcuscale-ftrace.sh resdir
18 if test "`grep -c 'rcu_exp_grace_period.*start' < $i/console.log`" -lt 100
23 sed -e 's/^\[[^]]*]//' < $i/console.log |
25 sed -e 's/us : / : /' |
26 tr -d '\015' |
39 curgpdur = $3 - starttime;
60 print "No ftrace records found???"
[all …]
/openbmc/linux/arch/x86/kernel/
H A Dftrace.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2007-2008 Steven Rostedt <srostedt@redhat.com>
18 #include <linux/ftrace.h>
32 #include <asm/ftrace.h>
34 #include <asm/text-patching.h>
46 * ftrace has it set to "read/write". in ftrace_arch_code_modify_prepare()
93 return -EFAULT; in ftrace_verify_code()
100 return -EINVAL; in ftrace_verify_code()
129 unsigned long ip = rec->ip; in ftrace_make_nop()
147 * x86 overrides ftrace_replace_code -- this function will never be used in ftrace_make_nop()
[all …]

12345678910