Home
last modified time | relevance | path

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

/linux-4.1.27/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()
184 struct task_struct *tracer; in yama_task_prctl() local
187 tracer = find_task_by_vpid(arg2); in yama_task_prctl()
188 if (tracer) in yama_task_prctl()
189 get_task_struct(tracer); in yama_task_prctl()
194 if (tracer) { in yama_task_prctl()
[all …]
/linux-4.1.27/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.1.27/kernel/trace/
Dtrace.h161 struct tracer;
219 struct tracer *current_trace;
356 struct tracer { struct
377 int (*selftest)(struct tracer *trace, argument
388 struct tracer *next; argument
532 int tracer_init(struct tracer *t, struct trace_array *tr);
593 int register_tracer(struct tracer *type);
665 extern int trace_selftest_startup_function(struct tracer *trace,
667 extern int trace_selftest_startup_function_graph(struct tracer *trace,
669 extern int trace_selftest_startup_irqsoff(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.c569 struct tracer *tracer = tr->current_trace; in irqsoff_flag_changed() local
574 return trace_keep_overwrite(tracer, mask, set); in irqsoff_flag_changed()
659 static struct tracer irqsoff_tracer __read_mostly =
693 static struct tracer preemptoff_tracer __read_mostly =
729 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.c176 struct tracer *tracer = tr->current_trace; in wakeup_flag_changed() local
181 return trace_keep_overwrite(tracer, mask, set); in wakeup_flag_changed()
733 static struct tracer wakeup_tracer __read_mostly =
755 static struct tracer wakeup_rt_tracer __read_mostly =
777 static struct tracer wakeup_dl_tracer __read_mostly =
Dtrace_nop.c87 struct tracer nop_trace __read_mostly =
Dtrace.c382 static struct tracer *trace_types __read_mostly;
615 struct tracer *tracer = tr->current_trace; in tracing_snapshot() local
632 if (tracer->use_max_tr) { in tracing_snapshot()
1141 static int run_tracer_selftest(struct tracer *type) in run_tracer_selftest()
1144 struct tracer *saved_tracer = tr->current_trace; in run_tracer_selftest()
1200 static inline int run_tracer_selftest(struct tracer *type) in run_tracer_selftest()
1212 int register_tracer(struct tracer *type) in register_tracer()
1214 struct tracer *t; in register_tracer()
2607 struct tracer *type = iter->trace; in print_trace_header()
3248 trace_ok_for_array(struct tracer *t, struct trace_array *tr) in trace_ok_for_array()
[all …]
Dtrace_branch.c23 static struct tracer branch_trace;
182 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.c1382 static struct tracer graph_trace __tracer_data = {
Dblktrace.c1429 static struct tracer blk_tracer __read_mostly = {
/linux-4.1.27/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.1.27/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.1.27/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.
210 with the function graph tracer (See the section
245 tracer, or if enabled, the function graph tracer. It will
247 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.1.27/tools/testing/selftests/ftrace/test.d/
Dfunctions14 reset_tracer() { # reset the current tracer
/linux-4.1.27/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.1.27/fs/proc/
Darray.c140 struct task_struct *tracer; in task_state() local
149 tracer = ptrace_parent(p); in task_state()
150 if (tracer) in task_state()
151 tpid = task_pid_nr_ns(tracer, ns); in task_state()
/linux-4.1.27/include/linux/
Dftrace_event.h14 struct tracer;
80 struct tracer *trace;
Dptrace.h55 extern void exit_ptrace(struct task_struct *tracer, struct list_head *dead);
/linux-4.1.27/fs/pstore/
DKconfig35 bool "Persistent function tracer"
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
DKconfig45 bool "Atheros 5xxx tracer"
/linux-4.1.27/arch/arc/kernel/
Dentry.S445 ; clobbered them (since they are in scratch regs). The tracer could also
591 ; tracer might call PEEKUSR(CALLEE reg)
603 ; a tracing signal, tracer could have done a POKEUSR(CALLEE reg)
/linux-4.1.27/fs/f2fs/
DKconfig76 bool "F2FS IO tracer"
/linux-4.1.27/arch/x86/
DMakefile_32.cpu51 # tracer assumptions. For i686, generic, core2 this is set by the
DKconfig.debug183 Add a simple leak tracer to the IOMMU code. This is useful when you
/linux-4.1.27/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.1.27/security/smack/
Dsmack_lsm.c374 static int smk_ptrace_rule_check(struct task_struct *tracer, in smk_ptrace_rule_check() argument
385 smk_ad_setfield_u_tsk(&ad, tracer); in smk_ptrace_rule_check()
390 tsp = __task_cred(tracer)->security; in smk_ptrace_rule_check()
734 struct task_struct *tracer; in smack_bprm_set_creds() local
738 tracer = ptrace_parent(current); in smack_bprm_set_creds()
739 if (likely(tracer != NULL)) in smack_bprm_set_creds()
740 rc = smk_ptrace_rule_check(tracer, in smack_bprm_set_creds()
/linux-4.1.27/security/selinux/
Dhooks.c2278 struct task_struct *tracer; in selinux_bprm_set_creds() local
2283 tracer = ptrace_parent(current); in selinux_bprm_set_creds()
2284 if (likely(tracer != NULL)) { in selinux_bprm_set_creds()
2285 sec = __task_cred(tracer)->security; in selinux_bprm_set_creds()
5596 struct task_struct *tracer; in selinux_setprocattr() local
5705 tracer = ptrace_parent(p); in selinux_setprocattr()
5706 if (tracer) in selinux_setprocattr()
5707 ptsid = task_sid(tracer); in selinux_setprocattr()
5710 if (tracer) { in selinux_setprocattr()
/linux-4.1.27/arch/
DKconfig84 If function tracer is enabled and the arch supports full
230 For example the kprobes-based event tracer needs this API.
/linux-4.1.27/tools/perf/Documentation/
Dperf-probe.txt150 …h fixed index (e.g. array[1], var->array[0], var->pointer[2]), or kprobe-tracer argument format (e…
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-bus-coresight-devices-etm3x140 Depending on the tracer's version, can also hold threshold for
/linux-4.1.27/tools/perf/
Ddesign.txt145 tracer is available, and event_id values can be obtained from
/linux-4.1.27/Documentation/
Dkernel-parameters.txt1147 ftrace=[tracer]
1148 [FTRACE] will set and start the specified tracer
1161 tracer at boot up. function-list is a comma separated
1174 by the function graph tracer at boot up.
3453 Enabled the stack tracer on boot up.
3456 [FTRACE] Limit the functions that the stack tracer
3652 [FTRACE] Enable or disable tracer options at boot.
/linux-4.1.27/Documentation/vm/
Dtranshuge.txt253 tracer to record how long was spent in __alloc_pages_nodemask and
/linux-4.1.27/Documentation/sound/alsa/
DHD-Audio.txt618 # tracer: nop