Home
last modified time | relevance | path

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

12345678910>>...15

/kernel/linux/linux-6.6/Documentation/trace/
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 …]
/kernel/linux/linux-5.10/Documentation/trace/
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 …]
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-ftrace.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * builtin-ftrace.c
22 #include <subcmd/parse-options.h>
32 #include "util/parse-sublevel-options.h"
80 workload_exec_errno = info->si_value.sival_int; in ftrace__workload_exec_failed_signal()
87 int fd, ret = -1; in __write_tracing_file()
88 ssize_t size = strlen(val); in __write_tracing_file() local
96 return -1; in __write_tracing_file()
118 val_copy[size] = '\n'; in __write_tracing_file()
120 if (write(fd, val_copy, size + 1) == size + 1) in __write_tracing_file()
[all …]
/kernel/linux/linux-6.6/tools/perf/
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 …]
/kernel/linux/linux-5.10/tools/bootconfig/scripts/
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 …]
/kernel/linux/linux-6.6/tools/perf/Documentation/
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 …]
/kernel/linux/linux-6.6/tools/bootconfig/scripts/
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 …]
/kernel/linux/linux-6.6/tools/power/pm-graph/
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 …]
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 …]
/kernel/linux/linux-5.10/tools/power/pm-graph/
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 …]
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 …]
/kernel/linux/linux-5.10/tools/lib/traceevent/plugins/
Dplugin_function.c1 // SPDX-License-Identifier: LGPL-2.1
9 #include "event-parse.h"
10 #include "event-utils.h"
11 #include "trace-seq.h"
14 int size; member
18 static int cpus = -1;
26 .plugin_alias = "ftrace",
32 .plugin_alias = "ftrace",
39 .plugin_alias = "ftrace",
60 if (pos < stack->size) in add_child()
[all …]
/kernel/linux/linux-5.10/tools/perf/Documentation/
Dperf-ftrace.txt1 perf-ftrace(1)
5 ----
6 perf-ftrace - simple wrapper for kernel's ftrace functionality
10 --------
12 'perf ftrace' <command>
15 -----------
16 The 'perf ftrace' command is a simple wrapper of kernel's ftrace
20 The following options apply to perf ftrace.
23 -------
25 -t::
[all …]
/kernel/linux/linux-5.10/tools/lib/traceevent/Documentation/
Dlibtraceevent-parse_event.txt5 ----
6 tep_parse_event, tep_parse_format - Parse the event format information
9 --------
11 --
12 *#include <event-parse.h>*
16 --
19 -----------
33 ------------
38 -------
40 --
[all …]
/kernel/linux/linux-6.6/kernel/trace/
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 …]
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 …]
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 …]
/kernel/linux/linux-6.6/arch/s390/include/asm/
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. */
/kernel/linux/linux-5.10/kernel/trace/
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 __array_desc(type, container, item, size) type item[size]; argument
75 /* force compile-time check on F_printk() */ \
88 .size = sizeof(_type), .align = __alignof__(_type), \
95 .size = sizeof(_type), .align = 1, \
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
16 See Documentation/trace/ftrace-design.rst
21 See Documentation/trace/ftrace-design.rst
26 See Documentation/trace/ftrace-design.rst
37 See Documentation/trace/ftrace-design.rst
42 See Documentation/trace/ftrace-design.rst
47 Arch supports the gcc options -pg with -mfentry
52 Arch supports the gcc options -pg with -mrecord-mcount and -nop-mcount
126 menuconfig FTRACE config
132 if FTRACE
[all …]
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>
87 /* ftrace_enabled is a method to turn ftrace on or off */
100 if (!(ops->flags & FTRACE_OPS_FL_PID) || !ops->private) in ftrace_pids_enabled()
103 tr = ops->private; in ftrace_pids_enabled()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/reserved-memory/
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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dxdp_bpf2bpf.c1 // SPDX-License-Identifier: GPL-2.0
13 static void on_sample(void *ctx, int cpu, void *data, __u32 size) in on_sample() argument
19 if (CHECK(size < sizeof(pkt_v4) + sizeof(*meta), in on_sample()
20 "check_size", "size %u < %zu\n", in on_sample()
21 size, sizeof(pkt_v4) + sizeof(*meta))) in on_sample()
24 if (CHECK(meta->ifindex != if_nametoindex("lo"), "check_meta_ifindex", in on_sample()
25 "meta->ifindex = %d\n", meta->ifindex)) in on_sample()
28 if (CHECK(meta->pkt_len != sizeof(pkt_v4), "check_meta_pkt_len", in on_sample()
29 "meta->pkt_len = %zd\n", sizeof(pkt_v4))) in on_sample()
41 __u32 duration = 0, retval, size; in test_xdp_bpf2bpf() local
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/reserved-memory/
Dramoops.txt5 recovered after a reboot. This is a child-node of "/reserved-memory", and
10 as kernel log messages, or for optional ECC error-correction data. The total
11 size of these optional buffers must fit in the reserved region.
14 records. These records have a configurable size, with a size of 0 indicating
17 At least one of "record-size", "console-size", "ftrace-size", or "pmsg-size"
18 must be set non-zero, but are otherwise optional as listed below.
23 - compatible: must be "ramoops"
25 - reg: region of memory that is preserved between reboots
30 - ecc-size: enables ECC support and specifies ECC buffer size in bytes
33 - record-size: maximum size in bytes of each kmsg dump.
[all …]
/kernel/linux/linux-6.6/include/linux/
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 …]

12345678910>>...15