/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | fw_tracer.c | 36 static int mlx5_query_mtrc_caps(struct mlx5_fw_tracer *tracer) in mlx5_query_mtrc_caps() argument 38 u32 *string_db_base_address_out = tracer->str_db.base_address_out; in mlx5_query_mtrc_caps() 39 u32 *string_db_size_out = tracer->str_db.size_out; in mlx5_query_mtrc_caps() 40 struct mlx5_core_dev *dev = tracer->dev; in mlx5_query_mtrc_caps() 59 tracer->trc_ver = MLX5_GET(mtrc_cap, out, trc_ver); in mlx5_query_mtrc_caps() 60 tracer->str_db.first_string_trace = in mlx5_query_mtrc_caps() 62 tracer->str_db.num_string_trace = in mlx5_query_mtrc_caps() 64 tracer->str_db.num_string_db = MLX5_GET(mtrc_cap, out, num_string_db); in mlx5_query_mtrc_caps() 65 tracer->owner = !!MLX5_GET(mtrc_cap, out, trace_owner); in mlx5_query_mtrc_caps() 67 for (i = 0; i < tracer->str_db.num_string_db; i++) { in mlx5_query_mtrc_caps() [all …]
|
D | fw_tracer_tracepoint.h | 44 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->pdev->dev)) 58 __assign_str(dev_name, dev_name(&tracer->dev->pdev->dev));
|
D | fw_tracer.h | 170 int mlx5_fw_tracer_init(struct mlx5_fw_tracer *tracer); 171 void mlx5_fw_tracer_cleanup(struct mlx5_fw_tracer *tracer); 172 void mlx5_fw_tracer_destroy(struct mlx5_fw_tracer *tracer);
|
/Linux-v4.19/security/apparmor/ |
D | ipc.c | 83 struct aa_label *tracer, u32 request, in profile_tracee_perm() argument 86 if (profile_unconfined(tracee) || unconfined(tracer) || in profile_tracee_perm() 90 return profile_ptrace_perm(tracee, tracer, request, sa); in profile_tracee_perm() 93 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm() argument 97 if (profile_unconfined(tracer)) in profile_tracer_perm() 100 if (PROFILE_MEDIATES(tracer, AA_CLASS_PTRACE)) in profile_tracer_perm() 101 return profile_ptrace_perm(tracer, tracee, request, sa); in profile_tracer_perm() 104 if (&tracer->label == tracee) in profile_tracer_perm() 107 aad(sa)->label = &tracer->label; in profile_tracer_perm() 110 aad(sa)->error = aa_capable(&tracer->label, CAP_SYS_PTRACE, 1); in profile_tracer_perm() [all …]
|
D | lsm.c | 114 struct aa_label *tracer, *tracee; in apparmor_ptrace_access_check() local 117 tracer = begin_current_label_crit_section(); in apparmor_ptrace_access_check() 119 error = aa_may_ptrace(tracer, tracee, in apparmor_ptrace_access_check() 123 end_current_label_crit_section(tracer); in apparmor_ptrace_access_check() 130 struct aa_label *tracer, *tracee; in apparmor_ptrace_traceme() local 134 tracer = aa_get_task_label(parent); in apparmor_ptrace_traceme() 135 error = aa_may_ptrace(tracer, tracee, AA_PTRACE_TRACE); in apparmor_ptrace_traceme() 136 aa_put_label(tracer); in apparmor_ptrace_traceme()
|
/Linux-v4.19/security/yama/ |
D | yama_lsm.c | 35 struct task_struct *tracer; member 145 static int yama_ptracer_add(struct task_struct *tracer, in yama_ptracer_add() argument 155 added->tracer = tracer; in yama_ptracer_add() 183 static void yama_ptracer_del(struct task_struct *tracer, in yama_ptracer_del() argument 194 (tracer && relation->tracer == tracer)) { in yama_ptracer_del() 251 struct task_struct *tracer; in yama_task_prctl() local 253 tracer = find_get_task_by_vpid(arg2); in yama_task_prctl() 254 if (!tracer) { in yama_task_prctl() 257 rc = yama_ptracer_add(tracer, myself); in yama_task_prctl() 258 put_task_struct(tracer); in yama_task_prctl() [all …]
|
/Linux-v4.19/kernel/trace/ |
D | trace.h | 174 struct tracer; 188 struct tracer *tracer; member 250 struct tracer *current_trace; 381 struct tracer *trace; 415 struct tracer { struct 436 int (*selftest)(struct tracer *trace, argument 447 struct tracer *next; argument 589 int tracer_init(struct tracer *t, struct trace_array *tr); 656 int register_tracer(struct tracer *type); 734 extern int trace_selftest_startup_function(struct tracer *trace, [all …]
|
D | trace_selftest.c | 97 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() 653 trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_function() 749 trace_selftest_startup_function_graph(struct tracer *trace, in trace_selftest_startup_function_graph() 814 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_irqsoff() 863 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptoff() 925 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptirqsoff() 1026 trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_nop() 1078 trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_wakeup() 1156 trace_selftest_startup_branch(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_branch()
|
D | trace_irqsoff.c | 518 struct tracer *tracer = tr->current_trace; in irqsoff_flag_changed() local 528 return trace_keep_overwrite(tracer, mask, set); in irqsoff_flag_changed() 637 static struct tracer irqsoff_tracer __read_mostly = 687 static struct tracer preemptoff_tracer __read_mostly = 722 static struct tracer preemptirqsoff_tracer __read_mostly =
|
D | Kconfig | 99 # All tracer options should select GENERIC_TRACER. For those options that are 100 # enabled by all tracers (context switch and event tracer) they select TRACING. 101 # This allows those options to appear when no other tracer is selected. But the 153 sequence is then dynamically patched into a tracer call when 244 This tracer tracks the latency of the highest priority task 251 This tracer, when enabled will create one or more kernel threads, 256 time, this tracer will detect it. This is useful for testing 273 When the tracer is not running, it has no affect on the system, 275 periodically non responsive. Do not run this tracer on a 278 To enable this tracer, echo in "hwlat" into the current_tracer [all …]
|
D | trace_sched_wakeup.c | 188 struct tracer *tracer = tr->current_trace; in wakeup_flag_changed() local 198 return trace_keep_overwrite(tracer, mask, set); in wakeup_flag_changed() 750 static struct tracer wakeup_tracer __read_mostly = 770 static struct tracer wakeup_rt_tracer __read_mostly = 790 static struct tracer wakeup_dl_tracer __read_mostly =
|
D | trace.c | 622 static struct tracer *trace_types __read_mostly; 899 struct tracer *tracer = tr->current_trace; in tracing_snapshot_instance() local 916 if (tracer->use_max_tr) { in tracing_snapshot_instance() 1449 struct tracer *type; 1454 static int save_selftest(struct tracer *type) in save_selftest() 1467 static int run_tracer_selftest(struct tracer *type) in run_tracer_selftest() 1470 struct tracer *saved_tracer = tr->current_trace; in run_tracer_selftest() 1537 struct tracer *t, **last; in init_trace_selftests() 1575 static inline int run_tracer_selftest(struct tracer *type) in run_tracer_selftest() 1581 static void add_tracer_options(struct trace_array *tr, struct tracer *t); [all …]
|
D | trace_nop.c | 88 struct tracer nop_trace __read_mostly =
|
/Linux-v4.19/Documentation/acpi/ |
D | method-tracing.txt | 61 B. AML tracer 84 that, as the "AML tracer" logs are implemented via ACPI_DEBUG_PRINT() 86 "AML tracer" logs. 88 The following command examples illustrate the usage of the "AML tracer" 90 a. Filter out the method start/stop "AML tracer" logs when control 96 b. Filter out the method start/stop "AML tracer" when the specified 103 c. Filter out the method start/stop "AML tracer" logs when the specified 110 d. Filter out the method/opcode start/stop "AML tracer" when the 117 e. Filter out the method/opcode start/stop "AML tracer" when the 143 used to match all "AML tracer" logs. [all …]
|
/Linux-v4.19/Documentation/trace/ |
D | ftrace.rst | 21 Ftrace is an internal tracer designed to help out developers and 26 Although ftrace is typically considered the function tracer, it 97 This is used to set or display the current tracer 111 the tracer or 1 to enable it. Note, this only disables 140 "trace" file is static, and if the tracer is not 149 files. Options also exist to modify how a tracer 245 Have the function tracer only trace the threads whose PID are 251 traced by the function tracer as well. This option will also 268 tracer to only trace these functions and the functions that 326 tracer, or if configured, the function graph tracer. It will [all …]
|
D | hwlat_detector.rst | 8 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
|
D | uprobetracer.rst | 2 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 54 Several types are supported for fetch-args. Uprobe tracer will access memory 162 # tracer: nop
|
/Linux-v4.19/tools/perf/ |
D | builtin-ftrace.c | 33 const char *tracer; member 330 if (write_tracing_file("current_tracer", ftrace->tracer) < 0) { in __cmd_ftrace() 331 pr_err("failed to set current_tracer to %s\n", ftrace->tracer); in __cmd_ftrace() 406 ftrace->tracer = value; in perf_ftrace_config() 444 .tracer = DEFAULT_TRACER, in cmd_ftrace() 453 OPT_STRING('t', "tracer", &ftrace.tracer, "tracer", in cmd_ftrace()
|
/Linux-v4.19/tools/perf/Documentation/ |
D | perf-ftrace.txt | 26 --tracer=:: 68 This is useful for the function_graph tracer only and enables 76 Like -G option, this is useful for the function_graph tracer only 83 Set max depth for function graph tracer to follow
|
/Linux-v4.19/Documentation/userspace-api/ |
D | seccomp_filter.rst | 127 notify a ``ptrace()``-based tracer prior to executing the system 128 call. If there is no tracer present, ``-ENOSYS`` is returned to 131 A tracer will be notified if it requests ``PTRACE_O_TRACESECCOM``P 132 using ``ptrace(PTRACE_SETOPTIONS)``. The tracer will be notified 134 the BPF program return value will be available to the tracer 137 The tracer can skip the system call by changing the syscall number 138 to -1. Alternatively, the tracer can change the system call 140 the tracer asks to skip the system call, then the system call will 141 appear to return the value that the tracer puts in the return value 144 The seccomp check will not be run again after the tracer is [all …]
|
/Linux-v4.19/tools/testing/selftests/ftrace/test.d/ |
D | functions | 14 reset_tracer() { # reset the current tracer 85 # As the initial state, ftrace will be set to nop tracer, 93 echo > set_event_pid # event tracer is always on
|
/Linux-v4.19/security/apparmor/include/ |
D | ipc.h | 36 int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee,
|
/Linux-v4.19/kernel/ |
D | ptrace.c | 504 static bool __ptrace_detach(struct task_struct *tracer, struct task_struct *p) in __ptrace_detach() argument 516 if (!same_thread_group(p->real_parent, tracer)) in __ptrace_detach() 518 else if (ignoring_children(tracer->sighand)) { in __ptrace_detach() 519 __wake_up_parent(p, tracer); in __ptrace_detach() 560 void exit_ptrace(struct task_struct *tracer, struct list_head *dead) in exit_ptrace() argument 564 list_for_each_entry_safe(p, n, &tracer->ptraced, ptrace_entry) { in exit_ptrace() 568 if (__ptrace_detach(tracer, p)) in exit_ptrace()
|
/Linux-v4.19/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 1412 pid_t tracer) in teardown_trace_fixture() argument 1414 if (tracer) { in teardown_trace_fixture() 1420 ASSERT_EQ(0, kill(tracer, SIGUSR1)); in teardown_trace_fixture() 1421 ASSERT_EQ(tracer, waitpid(tracer, &status, 0)); in teardown_trace_fixture() 1456 pid_t tracer; in FIXTURE_DATA() local 1482 self->tracer = setup_trace_fixture(_metadata, tracer_poke, in FIXTURE_SETUP() 1488 teardown_trace_fixture(_metadata, self->tracer); in FIXTURE_TEARDOWN() 1739 pid_t tracer, mytid, mypid, parent; in FIXTURE_DATA() local 1778 self->tracer = setup_trace_fixture(_metadata, tracer_syscall, NULL, in FIXTURE_SETUP() 1784 teardown_trace_fixture(_metadata, self->tracer); in FIXTURE_TEARDOWN() [all …]
|
/Linux-v4.19/arch/arc/kernel/ |
D | entry.S | 177 ; clobbered them (since they are in scratch regs). The tracer could also 316 ; tracer might call PEEKUSR(CALLEE reg) 328 ; a tracing signal, tracer could have done a POKEUSR(CALLEE reg)
|