Home
last modified time | relevance | path

Searched refs:tracer (Results 1 – 25 of 86) sorted by relevance

1234

/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfw_tracer.c37 static int mlx5_query_mtrc_caps(struct mlx5_fw_tracer *tracer) in mlx5_query_mtrc_caps() argument
39 u32 *string_db_base_address_out = tracer->str_db.base_address_out; in mlx5_query_mtrc_caps()
40 u32 *string_db_size_out = tracer->str_db.size_out; in mlx5_query_mtrc_caps()
41 struct mlx5_core_dev *dev = tracer->dev; in mlx5_query_mtrc_caps()
60 tracer->trc_ver = MLX5_GET(mtrc_cap, out, trc_ver); in mlx5_query_mtrc_caps()
61 tracer->str_db.first_string_trace = in mlx5_query_mtrc_caps()
63 tracer->str_db.num_string_trace = in mlx5_query_mtrc_caps()
65 tracer->str_db.num_string_db = MLX5_GET(mtrc_cap, out, num_string_db); in mlx5_query_mtrc_caps()
66 tracer->owner = !!MLX5_GET(mtrc_cap, out, trace_owner); in mlx5_query_mtrc_caps()
68 for (i = 0; i < tracer->str_db.num_string_db; i++) { in mlx5_query_mtrc_caps()
[all …]
H A Dfw_tracer_tracepoint.h44 TP_PROTO(const struct mlx5_fw_tracer *tracer, u64 trace_timestamp,
47 TP_ARGS(tracer, trace_timestamp, lost, event_id, msg),
50 __string(dev_name, dev_name(tracer->dev->device))
59 dev_name(tracer->dev->device));
H A Dfw_tracer.h188 int mlx5_fw_tracer_init(struct mlx5_fw_tracer *tracer);
189 void mlx5_fw_tracer_cleanup(struct mlx5_fw_tracer *tracer);
190 void mlx5_fw_tracer_destroy(struct mlx5_fw_tracer *tracer);
192 int mlx5_fw_tracer_get_saved_traces_objects(struct mlx5_fw_tracer *tracer,
194 int mlx5_fw_tracer_reload(struct mlx5_fw_tracer *tracer);
/OK3568_Linux_fs/kernel/security/apparmor/
H A Dipc.c77 struct aa_label *tracer, u32 request, in profile_tracee_perm() argument
80 if (profile_unconfined(tracee) || unconfined(tracer) || in profile_tracee_perm()
84 return profile_ptrace_perm(tracee, tracer, request, sa); in profile_tracee_perm()
87 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm() argument
91 if (profile_unconfined(tracer)) in profile_tracer_perm()
94 if (PROFILE_MEDIATES(tracer, AA_CLASS_PTRACE)) in profile_tracer_perm()
95 return profile_ptrace_perm(tracer, tracee, request, sa); in profile_tracer_perm()
98 if (&tracer->label == tracee) in profile_tracer_perm()
101 aad(sa)->label = &tracer->label; in profile_tracer_perm()
104 aad(sa)->error = aa_capable(&tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm()
[all …]
/OK3568_Linux_fs/kernel/security/yama/
H A Dyama_lsm.c31 struct task_struct *tracer; member
141 static int yama_ptracer_add(struct task_struct *tracer, in yama_ptracer_add() argument
151 added->tracer = tracer; in yama_ptracer_add()
179 static void yama_ptracer_del(struct task_struct *tracer, in yama_ptracer_del() argument
190 (tracer && relation->tracer == tracer)) { in yama_ptracer_del()
247 struct task_struct *tracer; in yama_task_prctl() local
249 tracer = find_get_task_by_vpid(arg2); in yama_task_prctl()
250 if (!tracer) { in yama_task_prctl()
253 rc = yama_ptracer_add(tracer, myself); in yama_task_prctl()
254 put_task_struct(tracer); in yama_task_prctl()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/ftrace/test.d/direct/
H A Dftrace-direct.tc19 tracer=$1
22 echo $tracer > current_tracer
28 echo $tracer > current_tracer
35 echo $tracer > current_tracer
41 echo $tracer > current_tracer
/OK3568_Linux_fs/kernel/tools/perf/Documentation/
H A Dperf-ftrace.txt26 --tracer=::
74 Select function tracer and set function filter on the given
82 Select function tracer and do not trace functions given by the
89 call-graph - Display kernel stack trace for function tracer.
90 irq-info - Display irq context info for function tracer.
94 Select function_graph tracer and set graph filter on the given
102 Select function_graph tracer and set graph notrace filter on the
104 for the function_graph tracer only and disables tracing for function
111 nosleep-time - Measure on-CPU time only for function_graph tracer.
115 depth=<n> - Set max depth for function graph tracer to follow.
/OK3568_Linux_fs/kernel/samples/seccomp/
H A Duser-trap.c204 pid_t worker = 0 , tracer = 0; in main() local
282 tracer = fork(); in main()
283 if (tracer < 0) { in main()
288 if (tracer == 0) { in main()
366 if (tracer > 0) in main()
367 kill(tracer, SIGKILL); in main()
/OK3568_Linux_fs/kernel/Documentation/firmware-guide/acpi/
H A Dmethod-tracing.rst77 AML tracer
102 that, as the "AML tracer" logs are implemented via ACPI_DEBUG_PRINT()
104 "AML tracer" logs.
106 The following command examples illustrate the usage of the "AML tracer"
109 a. Filter out the method start/stop "AML tracer" logs when control
117 b. Filter out the method start/stop "AML tracer" when the specified
126 c. Filter out the method start/stop "AML tracer" logs when the specified
135 d. Filter out the method/opcode start/stop "AML tracer" when the
144 e. Filter out the method/opcode start/stop "AML tracer" when the
176 used to match all "AML tracer" logs.
[all …]
/OK3568_Linux_fs/kernel/Documentation/trace/
H A Dftrace.rst21 Ftrace is an internal tracer designed to help out developers and
26 Although ftrace is typically considered the function tracer, it
100 This is used to set or display the current tracer
101 that is configured. Changing the current tracer clears
115 the tracer or 1 to enable it. Note, this only disables
134 (no tracer running, or tracing_on is zero), it will produce
149 "trace" file is static, and if the tracer is not
157 files. Options also exist to modify how a tracer
260 Have the function tracer only trace the threads whose PID are
266 traced by the function tracer as well. This option will also
[all …]
H A Dboottime-trace.rst47 Set MAX_DEPTH to maximum depth of fgraph tracer.
84 ftrace.[instance.INSTANCE.]tracer = TRACER
85 Set TRACER to current tracer on boot. (e.g. function)
167 several tracers for different purpose at once. For example, one tracer
173 tracer = "function"
177 tracer = "function"
191 tracer = function_graph
H A Dhwlat_detector.rst8 The tracer hwlat_detector is a special purpose tracer that is used to
56 (0.5s). If tracing_thresh contains zero when hwlat tracer is enabled, it will
65 back to zero if another tracer is loaded. Note, the last value in
H A Duprobetracer.rst2 Uprobe-tracer: Uprobe-based Event Tracing
13 Similar to the kprobe-event tracer, this doesn't need to be activated via
18 However unlike kprobe-event tracer, the uprobe event interface expects the
63 Several types are supported for fetch-args. Uprobe tracer will access memory
175 # tracer: nop
/OK3568_Linux_fs/kernel/kernel/trace/
H A Dtrace.h191 struct tracer;
205 struct tracer *tracer; member
344 struct tracer *current_trace;
483 struct tracer *trace;
517 struct tracer { struct
538 int (*selftest)(struct tracer *trace, argument
549 struct tracer *next; argument
723 int tracer_init(struct tracer *t, struct trace_array *tr);
793 int register_tracer(struct tracer *type);
880 extern int trace_selftest_startup_function(struct tracer *trace,
[all …]
H A Dtrace_selftest.c97 static inline void warn_failed_init_tracer(struct tracer *trace, int init_ret) in warn_failed_init_tracer()
325 static int trace_selftest_startup_dynamic_tracing(struct tracer *trace, in trace_selftest_startup_dynamic_tracing()
658 trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_function()
759 trace_selftest_startup_function_graph(struct tracer *trace, in trace_selftest_startup_function_graph()
826 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_irqsoff()
875 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptoff()
937 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptirqsoff()
1038 trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_nop()
1090 trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_wakeup()
1168 trace_selftest_startup_branch(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_branch()
H A Dtrace_irqsoff.c519 struct tracer *tracer = tr->current_trace; in irqsoff_flag_changed() local
529 return trace_keep_overwrite(tracer, mask, set); in irqsoff_flag_changed()
644 static struct tracer irqsoff_tracer __read_mostly =
694 static struct tracer preemptoff_tracer __read_mostly =
729 static struct tracer preemptirqsoff_tracer __read_mostly =
H A DKconfig111 # All tracer options should select GENERIC_TRACER. For those options that are
112 # enabled by all tracers (context switch and event tracer) they select TRACING.
113 # This allows those options to appear when no other tracer is selected. But the
174 sequence is then dynamically patched into a tracer call when
247 This special tracer records the maximum stack footprint of the
250 This tracer works by hooking into every function call that the
253 then it will not have any overhead while the stack tracer
256 To enable the stack tracer on bootup, pass in 'stacktrace'
259 The stack tracer can also be enabled or disabled via the
327 This tracer tracks the latency of the highest priority task
[all …]
H A Dtrace_sched_wakeup.c316 struct tracer *tracer = tr->current_trace; in wakeup_flag_changed() local
326 return trace_keep_overwrite(tracer, mask, set); in wakeup_flag_changed()
744 static struct tracer wakeup_tracer __read_mostly =
764 static struct tracer wakeup_rt_tracer __read_mostly =
784 static struct tracer wakeup_dl_tracer __read_mostly =
H A Dtrace.c822 static struct tracer *trace_types __read_mostly;
1109 struct tracer *tracer = tr->current_trace; in tracing_snapshot_instance_cond() local
1126 if (tracer->use_max_tr) { in tracing_snapshot_instance_cond()
1913 struct tracer *type;
1918 static int save_selftest(struct tracer *type) in save_selftest()
1931 static int run_tracer_selftest(struct tracer *type) in run_tracer_selftest()
1934 struct tracer *saved_tracer = tr->current_trace; in run_tracer_selftest()
2001 struct tracer *t, **last; in init_trace_selftests()
2045 static inline int run_tracer_selftest(struct tracer *type) in run_tracer_selftest()
2051 static void add_tracer_options(struct trace_array *tr, struct tracer *t);
[all …]
/OK3568_Linux_fs/kernel/tools/perf/
H A Dbuiltin-ftrace.c39 const char *tracer; member
612 if (write_tracing_file("current_tracer", ftrace->tracer) < 0) { in __cmd_ftrace()
613 pr_err("failed to set current_tracer to %s\n", ftrace->tracer); in __cmd_ftrace()
709 ftrace->tracer = value; in perf_ftrace_config()
868 ftrace->tracer = "function_graph"; in select_tracer()
870 ftrace->tracer = "function"; in select_tracer()
873 pr_debug("%s tracer is used\n", ftrace->tracer); in select_tracer()
880 .tracer = DEFAULT_TRACER, in cmd_ftrace()
889 OPT_STRING('t', "tracer", &ftrace.tracer, "tracer", in cmd_ftrace()
/OK3568_Linux_fs/kernel/Documentation/userspace-api/
H A Dseccomp_filter.rst132 notify a ``ptrace()``-based tracer prior to executing the system
133 call. If there is no tracer present, ``-ENOSYS`` is returned to
136 A tracer will be notified if it requests ``PTRACE_O_TRACESECCOMP``
137 using ``ptrace(PTRACE_SETOPTIONS)``. The tracer will be notified
139 the BPF program return value will be available to the tracer
142 The tracer can skip the system call by changing the syscall number
143 to -1. Alternatively, the tracer can change the system call
145 the tracer asks to skip the system call, then the system call will
146 appear to return the value that the tracer puts in the return value
149 The seccomp check will not be run again after the tracer is
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/ftrace/test.d/
H A Dfunctions13 reset_tracer() { # reset the current tracer
87 # As the initial state, ftrace will be set to nop tracer,
112 t=${i%:tracer}
115 echo "Required tracer $t is not configured."
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfw_reset.c211 struct mlx5_fw_tracer *tracer; in mlx5_fw_live_patch_event() local
216 tracer = dev->tracer; in mlx5_fw_live_patch_event()
217 if (IS_ERR_OR_NULL(tracer)) in mlx5_fw_live_patch_event()
220 if (mlx5_fw_tracer_reload(tracer)) in mlx5_fw_live_patch_event()
/OK3568_Linux_fs/kernel/kernel/
H A Dptrace.c562 static bool __ptrace_detach(struct task_struct *tracer, struct task_struct *p) in __ptrace_detach() argument
574 if (!same_thread_group(p->real_parent, tracer)) in __ptrace_detach()
576 else if (ignoring_children(tracer->sighand)) { in __ptrace_detach()
577 __wake_up_parent(p, tracer); in __ptrace_detach()
618 void exit_ptrace(struct task_struct *tracer, struct list_head *dead) in exit_ptrace() argument
622 list_for_each_entry_safe(p, n, &tracer->ptraced, ptrace_entry) { in exit_ptrace()
626 if (__ptrace_detach(tracer, p)) in exit_ptrace()
/OK3568_Linux_fs/kernel/Documentation/arm64/
H A Dmemory-tagging-extension.rst174 ``PTRACE_PEEKMTETAGS`` and ``PTRACE_POKEMTETAGS`` allow a tracer to read
183 a buffer of ``iov_len`` length in the tracer's address space.
185 The tags in the tracer's ``iov_base`` buffer are represented as one
194 - 0 - tags were copied, the tracer's ``iov_len`` was updated to the
197 tracer's space cannot be accessed or does not have valid tags.
201 - ``-EFAULT`` - fault on accessing the tracer's memory (``struct iovec``

1234