Home
last modified time | relevance | path

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

/linux-4.4.14/security/yama/
Dyama_lsm.c31 struct task_struct *tracer; member
74 static int yama_ptracer_add(struct task_struct *tracer, in yama_ptracer_add() argument
84 added->tracer = tracer; in yama_ptracer_add()
112 static void yama_ptracer_del(struct task_struct *tracer, in yama_ptracer_del() argument
123 (tracer && relation->tracer == tracer)) { in yama_ptracer_del()
180 struct task_struct *tracer; in yama_task_prctl() local
183 tracer = find_task_by_vpid(arg2); in yama_task_prctl()
184 if (tracer) in yama_task_prctl()
185 get_task_struct(tracer); in yama_task_prctl()
190 if (tracer) { in yama_task_prctl()
[all …]
/linux-4.4.14/security/apparmor/
Dipc.c63 int aa_may_ptrace(struct aa_profile *tracer, struct aa_profile *tracee, in aa_may_ptrace() argument
71 if (unconfined(tracer) || tracer == tracee) in aa_may_ptrace()
74 return aa_capable(tracer, CAP_SYS_PTRACE, 1); in aa_may_ptrace()
85 int aa_ptrace(struct task_struct *tracer, struct task_struct *tracee, in aa_ptrace() argument
97 struct aa_profile *tracer_p = aa_get_task_profile(tracer); in aa_ptrace()
Ddomain.c62 struct task_struct *tracer; in may_change_ptraced_domain() local
67 tracer = ptrace_parent(current); in may_change_ptraced_domain()
68 if (tracer) in may_change_ptraced_domain()
70 tracerp = aa_get_task_profile(tracer); in may_change_ptraced_domain()
73 if (!tracer || unconfined(tracerp)) in may_change_ptraced_domain()
/linux-4.4.14/kernel/trace/
Dtrace.h160 struct tracer;
174 struct tracer *tracer; member
234 struct tracer *current_trace;
381 struct tracer { struct
402 int (*selftest)(struct tracer *trace, argument
413 struct tracer *next; argument
557 int tracer_init(struct tracer *t, struct trace_array *tr);
618 int register_tracer(struct tracer *type);
672 extern int trace_selftest_startup_function(struct tracer *trace,
674 extern int trace_selftest_startup_function_graph(struct tracer *trace,
[all …]
Dtrace_selftest.c95 static inline void warn_failed_init_tracer(struct tracer *trace, int init_ret) in warn_failed_init_tracer()
323 static int trace_selftest_startup_dynamic_tracing(struct tracer *trace, in trace_selftest_startup_dynamic_tracing()
651 trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_function()
747 trace_selftest_startup_function_graph(struct tracer *trace, in trace_selftest_startup_function_graph()
812 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_irqsoff()
861 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptoff()
923 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptirqsoff()
1024 trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_nop()
1076 trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_wakeup()
1154 trace_selftest_startup_sched_switch(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_sched_switch()
[all …]
Dtrace_irqsoff.c578 struct tracer *tracer = tr->current_trace; in irqsoff_flag_changed() local
588 return trace_keep_overwrite(tracer, mask, set); in irqsoff_flag_changed()
673 static struct tracer irqsoff_tracer __read_mostly =
705 static struct tracer preemptoff_tracer __read_mostly =
739 static struct tracer preemptirqsoff_tracer __read_mostly =
DKconfig89 # All tracer options should select GENERIC_TRACER. For those options that are
90 # enabled by all tracers (context switch and event tracer) they select TRACING.
91 # This allows those options to appear when no other tracer is selected. But the
145 sequence is then dynamically patched into a tracer call when
221 This tracer tracks the latency of the highest priority task
229 This tracer hooks to various trace points in the kernel,
231 want to trace. It also includes the sched_switch tracer plugin.
239 Basic tracer to catch the syscall entry and exit events.
304 This tracer profiles all likely and unlikely macros
316 This tracer profiles all branch conditions. Every if ()
[all …]
Dtrace_sched_wakeup.c187 struct tracer *tracer = tr->current_trace; in wakeup_flag_changed() local
197 return trace_keep_overwrite(tracer, mask, set); in wakeup_flag_changed()
737 static struct tracer wakeup_tracer __read_mostly =
757 static struct tracer wakeup_rt_tracer __read_mostly =
777 static struct tracer wakeup_dl_tracer __read_mostly =
Dtrace.c393 static struct tracer *trace_types __read_mostly;
644 struct tracer *tracer = tr->current_trace; in tracing_snapshot() local
661 if (tracer->use_max_tr) { in tracing_snapshot()
1155 static int run_tracer_selftest(struct tracer *type) in run_tracer_selftest()
1158 struct tracer *saved_tracer = tr->current_trace; in run_tracer_selftest()
1214 static inline int run_tracer_selftest(struct tracer *type) in run_tracer_selftest()
1220 static void add_tracer_options(struct trace_array *tr, struct tracer *t);
1230 int __init register_tracer(struct tracer *type) in register_tracer()
1232 struct tracer *t; in register_tracer()
2604 struct tracer *type = iter->trace; in print_trace_header()
[all …]
Dtrace_nop.c87 struct tracer nop_trace __read_mostly =
Dtrace_branch.c23 static struct tracer branch_trace;
171 static struct tracer branch_trace __read_mostly =
Dtrace_mmiotrace.c279 static struct tracer mmio_tracer __read_mostly =
Dtrace_functions.c249 static struct tracer function_trace __tracer_data =
Dtrace_functions_graph.c1395 static struct tracer graph_trace __tracer_data = {
Dblktrace.c1421 static struct tracer blk_tracer __read_mostly = {
/linux-4.4.14/security/apparmor/include/
Dipc.h22 int aa_may_ptrace(struct aa_profile *tracer, struct aa_profile *tracee,
25 int aa_ptrace(struct task_struct *tracer, struct task_struct *tracee,
/linux-4.4.14/Documentation/acpi/
Dmethod-tracing.txt61 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-4.4.14/Documentation/prctl/
Dseccomp_filter.txt119 notify a ptrace()-based tracer prior to executing the system
120 call. If there is no tracer present, -ENOSYS is returned to
123 A tracer will be notified if it requests PTRACE_O_TRACESECCOMP
124 using ptrace(PTRACE_SETOPTIONS). The tracer will be notified
126 the BPF program return value will be available to the tracer
129 The tracer can skip the system call by changing the syscall number
130 to -1. Alternatively, the tracer can change the system call
132 the tracer asks to skip the system call, then the system call will
133 appear to return the value that the tracer puts in the return value
136 The seccomp check will not be run again after the tracer is
[all …]
/linux-4.4.14/Documentation/trace/
Dftrace.txt16 Ftrace is an internal tracer designed to help out developers and
21 Although ftrace is typically considered the function tracer, it
77 This is used to set or display the current tracer
91 the tracer or 1 to enable it. Note, this only disables
110 "trace" file is static, and if the tracer is not
118 files. Options also exist to modify how a tracer
205 Have the function tracer only trace a single thread.
216 with the function graph tracer (See the section
251 tracer, or if enabled, the function graph tracer. It will
253 and if run with the function graph tracer, it will also keep
[all …]
Duprobetracer.txt1 Uprobe-tracer: Uprobe-based Event Tracing
12 Similar to the kprobe-event tracer, this doesn't need to be activated via
17 However unlike kprobe-event tracer, the uprobe event interface expects the
50 Several types are supported for fetch-args. Uprobe tracer will access memory
148 # tracer: nop
Dftrace-design.txt1 function tracer guts
58 mcount(), the arguments mcount() will pass to the tracer are:
63 optimizing for the default case of no tracer will help the smooth running of
323 will be patched to call ftrace_caller(). Second, since we only have one tracer
325 specific tracer in question. That is the point of the ftrace_call label.
351 The last function is used to do runtime patching of the active tracer. This
Dkprobetrace.txt17 Similar to the events tracer, this doesn't need to be activated via
54 Several types are supported for fetch-args. Kprobe tracer will access memory
157 # tracer: nop
/linux-4.4.14/tools/testing/selftests/ftrace/test.d/
Dfunctions14 reset_tracer() { # reset the current tracer
/linux-4.4.14/kernel/
Dptrace.c455 static bool __ptrace_detach(struct task_struct *tracer, struct task_struct *p) in __ptrace_detach() argument
467 if (!same_thread_group(p->real_parent, tracer)) in __ptrace_detach()
469 else if (ignoring_children(tracer->sighand)) { in __ptrace_detach()
470 __wake_up_parent(p, tracer); in __ptrace_detach()
512 void exit_ptrace(struct task_struct *tracer, struct list_head *dead) in exit_ptrace() argument
516 list_for_each_entry_safe(p, n, &tracer->ptraced, ptrace_entry) { in exit_ptrace()
520 if (__ptrace_detach(tracer, p)) in exit_ptrace()
/linux-4.4.14/arch/arc/kernel/
Dentry.S183 ; clobbered them (since they are in scratch regs). The tracer could also
324 ; tracer might call PEEKUSR(CALLEE reg)
336 ; a tracing signal, tracer could have done a POKEUSR(CALLEE reg)
/linux-4.4.14/tools/testing/selftests/seccomp/
Dseccomp_bpf.c1024 void tracer(struct __test_metadata *_metadata, int fd, pid_t tracee, in tracer() function
1098 tracer(_metadata, pipefd[1], tracee, func, args); in setup_trace_fixture()
1109 pid_t tracer) in teardown_trace_fixture() argument
1111 if (tracer) { in teardown_trace_fixture()
1117 ASSERT_EQ(0, kill(tracer, SIGUSR1)); in teardown_trace_fixture()
1118 ASSERT_EQ(tracer, waitpid(tracer, &status, 0)); in teardown_trace_fixture()
1153 pid_t tracer; in FIXTURE_DATA() local
1179 self->tracer = setup_trace_fixture(_metadata, tracer_poke, in FIXTURE_SETUP()
1185 teardown_trace_fixture(_metadata, self->tracer); in FIXTURE_TEARDOWN()
1358 pid_t tracer, mytid, mypid, parent; in FIXTURE_DATA() local
[all …]
/linux-4.4.14/fs/proc/
Darray.c148 struct task_struct *tracer; in task_state() local
157 tracer = ptrace_parent(p); in task_state()
158 if (tracer) in task_state()
159 tpid = task_pid_nr_ns(tracer, ns); in task_state()
/linux-4.4.14/include/linux/
Dtrace_events.h14 struct tracer;
80 struct tracer *trace;
Dptrace.h56 extern void exit_ptrace(struct task_struct *tracer, struct list_head *dead);
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
DKconfig44 bool "Atheros 5xxx tracer"
/linux-4.4.14/fs/pstore/
DKconfig35 bool "Persistent function tracer"
/linux-4.4.14/drivers/hwtracing/coresight/
DKconfig67 This driver provides support for the ETM4.x tracer module, tracing the
/linux-4.4.14/arch/x86/
DMakefile_32.cpu51 # tracer assumptions. For i686, generic, core2 this is set by the
DKconfig.debug216 Add a simple leak tracer to the IOMMU code. This is useful when you
/linux-4.4.14/fs/f2fs/
DKconfig95 bool "F2FS IO tracer"
/linux-4.4.14/scripts/
Danalyze_suspend.py874 def setTracerType(self, tracer): argument
875 self.tracertype = tracer
876 if(tracer == 'function_graph'):
879 elif(tracer == 'nop'):
882 doError('Invalid tracer format: [%s]' % tracer, False)
1084 tracer = m.group('t')
1085 testrun[testidx].setTracerType(tracer)
1317 tracer = m.group('t')
1318 testrun.setTracerType(tracer)
/linux-4.4.14/security/smack/
Dsmack_lsm.c418 static int smk_ptrace_rule_check(struct task_struct *tracer, in smk_ptrace_rule_check() argument
429 smk_ad_setfield_u_tsk(&ad, tracer); in smk_ptrace_rule_check()
434 tsp = __task_cred(tracer)->security; in smk_ptrace_rule_check()
921 struct task_struct *tracer; in smack_bprm_set_creds() local
925 tracer = ptrace_parent(current); in smack_bprm_set_creds()
926 if (likely(tracer != NULL)) in smack_bprm_set_creds()
927 rc = smk_ptrace_rule_check(tracer, in smack_bprm_set_creds()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-bus-coresight-devices-etm3x133 Depending on the tracer's version, can also hold threshold for
252 Description: (RO) Holds the cpu number this tracer is affined to.
/linux-4.4.14/security/selinux/
Dhooks.c2290 struct task_struct *tracer; in selinux_bprm_set_creds() local
2295 tracer = ptrace_parent(current); in selinux_bprm_set_creds()
2296 if (likely(tracer != NULL)) { in selinux_bprm_set_creds()
2297 sec = __task_cred(tracer)->security; in selinux_bprm_set_creds()
5610 struct task_struct *tracer; in selinux_setprocattr() local
5719 tracer = ptrace_parent(p); in selinux_setprocattr()
5720 if (tracer) in selinux_setprocattr()
5721 ptsid = task_sid(tracer); in selinux_setprocattr()
5724 if (tracer) { in selinux_setprocattr()
/linux-4.4.14/arch/
DKconfig93 If function tracer is enabled and the arch supports full
242 For example the kprobes-based event tracer needs this API.
/linux-4.4.14/tools/perf/Documentation/
Dperf-probe.txt157 …h fixed index (e.g. array[1], var->array[0], var->pointer[2]), or kprobe-tracer argument format (e…
/linux-4.4.14/tools/perf/
Ddesign.txt145 tracer is available, and event_id values can be obtained from
/linux-4.4.14/Documentation/
Dkernel-parameters.txt1202 ftrace=[tracer]
1203 [FTRACE] will set and start the specified tracer
1216 tracer at boot up. function-list is a comma separated
1229 by the function graph tracer at boot up.
3573 Enabled the stack tracer on boot up.
3576 [FTRACE] Limit the functions that the stack tracer
3772 [FTRACE] Enable or disable tracer options at boot.
/linux-4.4.14/Documentation/vm/
Dtranshuge.txt263 tracer to record how long was spent in __alloc_pages_nodemask and
/linux-4.4.14/Documentation/sound/alsa/
DHD-Audio.txt618 # tracer: nop