Home
last modified time | relevance | path

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

1234

/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfw_tracer.c38 static int mlx5_query_mtrc_caps(struct mlx5_fw_tracer *tracer) in mlx5_query_mtrc_caps() argument
40 u32 *string_db_base_address_out = tracer->str_db.base_address_out; in mlx5_query_mtrc_caps()
41 u32 *string_db_size_out = tracer->str_db.size_out; in mlx5_query_mtrc_caps()
42 struct mlx5_core_dev *dev = tracer->dev; in mlx5_query_mtrc_caps()
61 tracer->trc_ver = MLX5_GET(mtrc_cap, out, trc_ver); in mlx5_query_mtrc_caps()
62 tracer->str_db.first_string_trace = in mlx5_query_mtrc_caps()
64 tracer->str_db.num_string_trace = in mlx5_query_mtrc_caps()
66 tracer->str_db.num_string_db = MLX5_GET(mtrc_cap, out, num_string_db); in mlx5_query_mtrc_caps()
67 tracer->owner = !!MLX5_GET(mtrc_cap, out, trace_owner); in mlx5_query_mtrc_caps()
68 tracer->str_db.loaded = false; in mlx5_query_mtrc_caps()
[all …]
H A Dfw_tracer.h198 int mlx5_fw_tracer_init(struct mlx5_fw_tracer *tracer);
199 void mlx5_fw_tracer_cleanup(struct mlx5_fw_tracer *tracer);
200 void mlx5_fw_tracer_destroy(struct mlx5_fw_tracer *tracer);
202 int mlx5_fw_tracer_get_saved_traces_objects(struct mlx5_fw_tracer *tracer,
204 int mlx5_fw_tracer_reload(struct mlx5_fw_tracer *tracer);
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dftrace.c24 void (*destructor)(struct test_ftracer *tracer);
147 static int setup_ftrace_instance(struct test_ftracer *tracer, const char *name) in setup_ftrace_instance() argument
155 tracer->instance_path = mkdtemp(tmp); in setup_ftrace_instance()
156 if (!tracer->instance_path) { in setup_ftrace_instance()
164 static void remove_ftrace_instance(struct test_ftracer *tracer) in remove_ftrace_instance() argument
166 if (rmdir(tracer->instance_path)) in remove_ftrace_instance()
168 tracer->instance_path); in remove_ftrace_instance()
169 free(tracer->instance_path); in remove_ftrace_instance()
174 struct test_ftracer *tracer = arg; in tracer_cleanup() local
176 fclose(tracer->trace_pipe); in tracer_cleanup()
[all …]
H A Dftrace-tcp.c479 static void check_free_events(struct test_ftracer *tracer) in check_free_events() argument
489 nr = tracer_get_savedlines_nr(tracer); in check_free_events()
490 lines = tracer_get_savedlines(tracer); in check_free_events()
501 static int setup_tcp_trace_events(struct test_ftracer *tracer) in setup_tcp_trace_events() argument
519 ret = setup_trace_event(tracer, event_name, filter); in setup_tcp_trace_events()
529 static void aolib_tracer_destroy(struct test_ftracer *tracer) in aolib_tracer_destroy() argument
531 check_free_events(tracer); in aolib_tracer_destroy()
/linux/security/yama/
H A Dyama_lsm.c32 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()
243 struct task_struct *tracer; in yama_task_prctl() local
245 tracer = find_get_task_by_vpid(arg2); in yama_task_prctl()
246 if (!tracer) { in yama_task_prctl()
249 rc = yama_ptracer_add(tracer, myself); in yama_task_prctl()
250 put_task_struct(tracer); in yama_task_prctl()
[all …]
/linux/security/apparmor/
H A Dtask.c245 struct aa_label *tracer, u32 request, in profile_tracee_perm() argument
248 if (profile_unconfined(tracee) || unconfined(tracer) || in profile_tracee_perm()
252 return profile_ptrace_perm(cred, tracee, tracer, request, ad); in profile_tracee_perm()
256 struct aa_profile *tracer, in profile_tracer_perm() argument
260 if (profile_unconfined(tracer)) in profile_tracer_perm()
263 if (label_mediates(&tracer->label, AA_CLASS_PTRACE)) in profile_tracer_perm()
264 return profile_ptrace_perm(cred, tracer, tracee, request, ad); in profile_tracer_perm()
267 if (&tracer->label == tracee) in profile_tracer_perm()
270 ad->subj_label = &tracer->label; in profile_tracer_perm()
273 ad->error = aa_capable(cred, &tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm()
[all …]
/linux/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
/linux/Documentation/tools/rtla/
H A Dcommon_timerlat_description.txt1 The **rtla timerlat** tool is an interface for the *timerlat* tracer. The
2 *timerlat* tracer dispatches a kernel thread per-cpu. These threads
7 The *timerlat* tracer outputs information in two ways. It periodically
12 The **rtla timerlat** tool sets the options of the *timerlat* tracer
15 BPF program attached to the *timerlat* tracer. If either BPF or
H A Dcommon_osnoise_description.txt1 The **rtla osnoise** tool is an interface for the *osnoise* tracer. The
2 *osnoise* tracer dispatches a kernel thread per-cpu. These threads read the
5 The *osnoise*'s tracer threads take note of the delta between each time
7 At the end of each period, the *osnoise* tracer displays a summary of
H A Dcommon_options.txt3 Set the |tool| tracer to run the sample threads in the cpu-list.
5 By default, the |tool| tracer runs the sample threads on all CPUs.
42 Set scheduling parameters to the |tool| tracer threads, the format to set the priority are:
49tracer threads keep their default priority. For rtla user threads, it is set to SCHED_FIFO with pr…
53 …Set a *cgroup* to the tracer's threads. If the **-C** option is passed without arguments, the trac…
99 --on-threshold shell,command="grep ipi_send |tracer|\_trace.txt"
102 This will save a trace with the default filename "|tracer|\_trace.txt", print its
H A Dcommon_osnoise_options.txt3 .. |tracer| replace:: osnoise
16 Set the *osnoise* tracer period in microseconds.
20 Set the *osnoise* tracer runtime in microseconds.
/linux/tools/perf/Documentation/
H A Dperf-ftrace.txt64 --tracer=::
87 Select function tracer and set function filter on the given
95 Select function tracer and do not trace functions given by the
103 - call-graph - Display kernel stack trace for function tracer.
104 - irq-info - Display irq context info for function tracer.
108 Select function_graph tracer and set graph filter on the given
116 Select function_graph tracer and set graph notrace filter on the
118 for the function_graph tracer only and disables tracing for function
130 - nosleep-time - Measure on-CPU time only for function_graph tracer.
134 - depth=<n> - Set max depth for function graph tracer to follow.
[all …]
/linux/Documentation/trace/
H A Dosnoise-tracer.rst28 The osnoise tracer leverages the hwlat_detector by running a
33 osnoise tracer also saves an interference counter for each source of
39 source of interference. At the end of the period, the osnoise tracer
57 # tracer: osnoise
77 tracer prints a message at the end of each period for each CPU that is
83 by the osnoise tracer during the associated runtime.
98 The tracer has a set of options inside the osnoise directory, they are:
122 the osnoise tracer. These options are:
127 - PANIC_ON_STOP: call panic() if the tracer stops. This option serves to
132 allowing only NMIs and hardware-related noise, like hwlat tracer.
[all …]
H A Dtimerlat-tracer.rst2 Timerlat tracer
5 The timerlat tracer aims to help the preemptive kernel developers to
7 the tracer sets a periodic timer that wakes up a thread. The thread then
26 # tracer: timerlat
46 The tracer creates a per-cpu kernel thread with real-time priority
65 The timerlat tracer is built on top of osnoise tracer.
111 the values reported by the timerlat tracer (timerlat_latency)
114 The art below illustrates a CPU timeline and how the timerlat tracer
193 - timerlat tracer is enable
207 scheduled and report the thread latency via tracer - as for the kernel
[all …]
/linux/samples/seccomp/
H A Duser-trap.c208 pid_t worker = 0 , tracer = 0; in main() local
286 tracer = fork(); in main()
287 if (tracer < 0) { in main()
292 if (tracer == 0) { in main()
370 if (tracer > 0) in main()
371 kill(tracer, SIGKILL); in main()
/linux/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 …]
/linux/tools/testing/ktest/examples/bootconfigs/
H A Dtracing.bconf2 tracer = function_graph;
26 tracer = function;
H A Dboottrace.bconf35 tracer = "function"
44 tracer = "function"
/linux/kernel/trace/
H A Dtrace_selftest.c98 static inline void warn_failed_init_tracer(struct tracer *trace, int init_ret) in warn_failed_init_tracer()
357 static int trace_selftest_startup_dynamic_tracing(struct tracer *trace, in trace_selftest_startup_dynamic_tracing()
692 trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_function()
1062 trace_selftest_startup_function_graph(struct tracer *trace, in trace_selftest_startup_function_graph()
1196 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_irqsoff()
1245 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptoff()
1307 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptirqsoff()
1408 trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_nop()
1460 trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_wakeup()
1538 trace_selftest_startup_branch(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_branch()
H A Dtrace_irqsoff.c541 struct tracer *tracer = tr->current_trace; in irqsoff_flag_changed() local
551 return trace_keep_overwrite(tracer, mask, set); in irqsoff_flag_changed()
662 static struct tracer irqsoff_tracer __read_mostly =
708 static struct tracer preemptoff_tracer __read_mostly =
743 static struct tracer preemptirqsoff_tracer __read_mostly =
/linux/tools/tracing/rtla/src/
H A Dcommon.c277 * the timerlat tracer. in top_main_loop()
288 retval = enable_tracer_by_name(trace_inst->inst, ops->tracer); in top_main_loop()
290 err_msg("Failed to enable %s tracer\n", ops->tracer); in top_main_loop()
313 tool->record = osnoise_init_trace_tool(ops->tracer); in hist_main_loop()
381 printf("%s hit stop tracing\n", ops->tracer);
H A Dcommon.h137 const char *tracer;
174 struct osnoise_tool *osnoise_init_trace_tool(const char *tracer);
134 const char *tracer; global() member
/linux/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 …]
/linux/tools/testing/selftests/amd-pstate/
H A Dgitsource.sh62 rm -rf results/tracer-gitsource*
85 $TRACER -n tracer-gitsource-$1-$2 -i $TRACER_INTERVAL > /dev/null 2>&1 &
104 …awk '{print $5}' results/tracer-gitsource-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_GIT-d…
108 …awk '{print $7}' results/tracer-gitsource-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_GIT-f…
112 …awk '{print $11}' results/tracer-gitsource-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_GIT-…
H A Dtbench.sh57 rm -rf results/tracer-tbench*
67 $TRACER -n tracer-tbench-$1-$2 -i $TRACER_INTERVAL > /dev/null 2>&1 &
86 …awk '{print $5}' results/tracer-tbench-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_TBENCH-d…
90 …awk '{print $7}' results/tracer-tbench-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_TBENCH-f…
94 …awk '{print $11}' results/tracer-tbench-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_TBENCH-…

1234