Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 20 of 20) sorted by relevance

/kernel/trace/
Dtrace_kprobe.c61 struct trace_probe tp; member
84 (offsetof(struct trace_kprobe, tp.args) + \
138 return trace_probe_is_enabled(&tk->tp); in trace_kprobe_is_busy()
160 return trace_probe_match_command_args(&tk->tp, argc, argv); in trace_kprobe_match_command_head()
168 return strcmp(trace_probe_name(&tk->tp), event) == 0 && in trace_kprobe_match()
169 (!system || strcmp(trace_probe_group_name(&tk->tp), system) == 0) && in trace_kprobe_match()
210 struct trace_probe *tp; in trace_kprobe_primary_from_call() local
212 tp = trace_probe_primary_from_call(call); in trace_kprobe_primary_from_call()
213 if (WARN_ON_ONCE(!tp)) in trace_kprobe_primary_from_call()
216 return container_of(tp, struct trace_kprobe, tp); in trace_kprobe_primary_from_call()
[all …]
Dtrace_uprobe.c70 struct trace_probe tp; member
93 (offsetof(struct trace_uprobe, tp.args) + \
269 struct trace_probe_event *event = tu->tp.event; in NOKPROBE_SYMBOL()
295 return trace_probe_is_enabled(&tu->tp); in trace_uprobe_is_busy()
323 return trace_probe_match_command_args(&tu->tp, argc, argv); in trace_uprobe_match_command_head()
331 return strcmp(trace_probe_name(&tu->tp), event) == 0 && in trace_uprobe_match()
332 (!system || strcmp(trace_probe_group_name(&tu->tp), system) == 0) && in trace_uprobe_match()
339 struct trace_probe *tp; in trace_uprobe_primary_from_call() local
341 tp = trace_probe_primary_from_call(call); in trace_uprobe_primary_from_call()
342 if (WARN_ON_ONCE(!tp)) in trace_uprobe_primary_from_call()
[all …]
Dtrace_probe.h249 static inline bool trace_probe_test_flag(struct trace_probe *tp, in trace_probe_test_flag() argument
252 return !!(tp->event->flags & flag); in trace_probe_test_flag()
255 static inline void trace_probe_set_flag(struct trace_probe *tp, in trace_probe_set_flag() argument
258 tp->event->flags |= flag; in trace_probe_set_flag()
261 static inline void trace_probe_clear_flag(struct trace_probe *tp, in trace_probe_clear_flag() argument
264 tp->event->flags &= ~flag; in trace_probe_clear_flag()
267 static inline bool trace_probe_is_enabled(struct trace_probe *tp) in trace_probe_is_enabled() argument
269 return trace_probe_test_flag(tp, TP_FLAG_TRACE | TP_FLAG_PROFILE); in trace_probe_is_enabled()
272 static inline const char *trace_probe_name(struct trace_probe *tp) in trace_probe_name() argument
274 return trace_event_name(&tp->event->call); in trace_probe_name()
[all …]
Dtrace_probe.c748 int traceprobe_parse_probe_arg(struct trace_probe *tp, int i, char *arg, in traceprobe_parse_probe_arg() argument
751 struct probe_arg *parg = &tp->args[i]; in traceprobe_parse_probe_arg()
755 tp->nr_args++; in traceprobe_parse_probe_arg()
780 if (traceprobe_conflict_field_name(parg->name, tp->args, i)) { in traceprobe_parse_probe_arg()
785 return traceprobe_parse_probe_arg_body(body, &tp->size, parg, flags, in traceprobe_parse_probe_arg()
841 static int __set_print_fmt(struct trace_probe *tp, char *buf, int len, in __set_print_fmt() argument
859 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
860 parg = tp->args + i; in __set_print_fmt()
876 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
877 parg = tp->args + i; in __set_print_fmt()
[all …]
Dtrace_probe_tmpl.h172 __get_data_size(struct trace_probe *tp, struct pt_regs *regs) in __get_data_size() argument
177 for (i = 0; i < tp->nr_args; i++) { in __get_data_size()
178 arg = tp->args + i; in __get_data_size()
191 store_trace_args(void *data, struct trace_probe *tp, struct pt_regs *regs, in store_trace_args() argument
196 void *dyndata = data + tp->size; in store_trace_args()
200 for (i = 0; i < tp->nr_args; i++) { in store_trace_args()
201 arg = tp->args + i; in store_trace_args()
Dbpf_trace.c44 if (!strcmp(btp->tp->name, name)) { in bpf_get_raw_tracepoint_module()
1314 if (!strcmp(btp->tp->name, name)) in bpf_get_raw_tracepoint()
1386 struct tracepoint *tp = btp->tp; in __bpf_probe_register() local
1398 return tracepoint_probe_register(tp, (void *)btp->bpf_func, prog); in __bpf_probe_register()
1408 return tracepoint_probe_unregister(btp->tp, (void *)btp->bpf_func, prog); in bpf_probe_unregister()
1433 *buf = is_tracepoint ? event->tp_event->tp->name in bpf_get_perf_event_info()
Dtrace_events_hist.c410 struct tracepoint *tp; member
1089 static void free_synth_tracepoint(struct tracepoint *tp) in free_synth_tracepoint() argument
1091 if (!tp) in free_synth_tracepoint()
1094 kfree(tp->name); in free_synth_tracepoint()
1095 kfree(tp); in free_synth_tracepoint()
1100 struct tracepoint *tp; in alloc_synth_tracepoint() local
1102 tp = kzalloc(sizeof(*tp), GFP_KERNEL); in alloc_synth_tracepoint()
1103 if (!tp) in alloc_synth_tracepoint()
1106 tp->name = kstrdup(name, GFP_KERNEL); in alloc_synth_tracepoint()
1107 if (!tp->name) { in alloc_synth_tracepoint()
[all …]
Dtrace_events.c288 return tracepoint_probe_register(call->tp, in trace_event_reg()
292 tracepoint_probe_unregister(call->tp, in trace_event_reg()
299 return tracepoint_probe_register(call->tp, in trace_event_reg()
303 tracepoint_probe_unregister(call->tp, in trace_event_reg()
/kernel/
Dtracepoint.c227 static int tracepoint_add_func(struct tracepoint *tp, in tracepoint_add_func() argument
233 if (tp->regfunc && !static_key_enabled(&tp->key)) { in tracepoint_add_func()
234 ret = tp->regfunc(); in tracepoint_add_func()
239 tp_funcs = rcu_dereference_protected(tp->funcs, in tracepoint_add_func()
253 rcu_assign_pointer(tp->funcs, tp_funcs); in tracepoint_add_func()
254 if (!static_key_enabled(&tp->key)) in tracepoint_add_func()
255 static_key_slow_inc(&tp->key); in tracepoint_add_func()
266 static int tracepoint_remove_func(struct tracepoint *tp, in tracepoint_remove_func() argument
271 tp_funcs = rcu_dereference_protected(tp->funcs, in tracepoint_remove_func()
281 if (tp->unregfunc && static_key_enabled(&tp->key)) in tracepoint_remove_func()
[all …]
Dtorture.c339 void torture_shuffle_task_register(struct task_struct *tp) in torture_shuffle_task_register() argument
343 if (WARN_ON_ONCE(tp == NULL)) in torture_shuffle_task_register()
348 stp->st_t = tp; in torture_shuffle_task_register()
776 char *f, struct task_struct **tp) in _torture_create_kthread() argument
781 *tp = kthread_run(fn, arg, "%s", s); in _torture_create_kthread()
782 if (IS_ERR(*tp)) { in _torture_create_kthread()
783 ret = PTR_ERR(*tp); in _torture_create_kthread()
785 *tp = NULL; in _torture_create_kthread()
787 torture_shuffle_task_register(*tp); in _torture_create_kthread()
795 void _torture_stop_kthread(char *m, struct task_struct **tp) in _torture_stop_kthread() argument
[all …]
Dfutex.c2854 ktime_t t, *tp = NULL; in futex_wait_restart() local
2858 tp = &t; in futex_wait_restart()
2863 restart->futex.val, tp, restart->futex.bitset); in futex_wait_restart()
3915 ktime_t t, *tp = NULL; in SYSCALL_DEFINE6() local
3932 tp = &t; in SYSCALL_DEFINE6()
3942 return do_futex(uaddr, op, val, tp, uaddr2, val2, val3); in SYSCALL_DEFINE6()
4109 ktime_t t, *tp = NULL; in SYSCALL_DEFINE6() local
4124 tp = &t; in SYSCALL_DEFINE6()
4130 return do_futex(uaddr, op, val, tp, uaddr2, val2, val3); in SYSCALL_DEFINE6()
Dsys.c2669 struct timespec64 tp; in do_sysinfo() local
2673 ktime_get_boottime_ts64(&tp); in do_sysinfo()
2674 info->uptime = tp.tv_sec + (tp.tv_nsec ? 1 : 0); in do_sysinfo()
Dmodule.c4576 struct tracepoint * const *tp) in module_layout() argument
/kernel/time/
Dposix-stubs.c60 const struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument
66 if (get_timespec64(&new_tp, tp)) in SYSCALL_DEFINE2()
72 int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime() argument
76 ktime_get_real_ts64(tp); in do_clock_gettime()
79 ktime_get_ts64(tp); in do_clock_gettime()
82 ktime_get_boottime_ts64(tp); in do_clock_gettime()
91 struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument
100 if (put_timespec64(&kernel_tp, tp)) in SYSCALL_DEFINE2()
105 SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument
116 if (put_timespec64(&rtn_tp, tp)) in SYSCALL_DEFINE2()
[all …]
Dposix-timers.c168 static int posix_clock_realtime_get(clockid_t which_clock, struct timespec64 *tp) in posix_clock_realtime_get() argument
170 ktime_get_real_ts64(tp); in posix_clock_realtime_get()
176 const struct timespec64 *tp) in posix_clock_realtime_set() argument
178 return do_sys_settimeofday64(tp, NULL); in posix_clock_realtime_set()
190 static int posix_ktime_get_ts(clockid_t which_clock, struct timespec64 *tp) in posix_ktime_get_ts() argument
192 ktime_get_ts64(tp); in posix_ktime_get_ts()
199 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw() argument
201 ktime_get_raw_ts64(tp); in posix_get_monotonic_raw()
206 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_coarse() argument
208 ktime_get_coarse_real_ts64(tp); in posix_get_realtime_coarse()
[all …]
Dposix-cpu-timers.c163 posix_cpu_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in posix_cpu_clock_getres() argument
168 tp->tv_sec = 0; in posix_cpu_clock_getres()
169 tp->tv_nsec = ((NSEC_PER_SEC + HZ - 1) / HZ); in posix_cpu_clock_getres()
176 tp->tv_nsec = 1; in posix_cpu_clock_getres()
183 posix_cpu_clock_set(const clockid_t clock, const struct timespec64 *tp) in posix_cpu_clock_set() argument
362 static int posix_cpu_clock_get(const clockid_t clock, struct timespec64 *tp) in posix_cpu_clock_get() argument
378 *tp = ns_to_timespec64(t); in posix_cpu_clock_get()
1358 struct timespec64 *tp) in process_cpu_clock_getres() argument
1360 return posix_cpu_clock_getres(PROCESS_CLOCK, tp); in process_cpu_clock_getres()
1363 struct timespec64 *tp) in process_cpu_clock_get() argument
[all …]
Dposix-timers.h6 struct timespec64 *tp);
8 const struct timespec64 *tp);
10 struct timespec64 *tp);
Dalarmtimer.c649 static int alarm_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in alarm_clock_getres() argument
654 tp->tv_sec = 0; in alarm_clock_getres()
655 tp->tv_nsec = hrtimer_resolution; in alarm_clock_getres()
666 static int alarm_clock_get(clockid_t which_clock, struct timespec64 *tp) in alarm_clock_get() argument
673 *tp = ktime_to_timespec64(base->gettime()); in alarm_clock_get()
/kernel/debug/kdb/
Dkdb_main.c918 kdbtab_t *tp; in kdb_parse() local
1009 for_each_kdbcmd(tp, i) { in kdb_parse()
1010 if (tp->cmd_name) { in kdb_parse()
1016 if (tp->cmd_minlen in kdb_parse()
1017 && (strlen(argv[0]) <= tp->cmd_minlen)) { in kdb_parse()
1019 tp->cmd_name, in kdb_parse()
1020 tp->cmd_minlen) == 0) { in kdb_parse()
1025 if (strcmp(argv[0], tp->cmd_name) == 0) in kdb_parse()
1036 for_each_kdbcmd(tp, i) { in kdb_parse()
1037 if (tp->cmd_name) { in kdb_parse()
[all …]
/kernel/bpf/
Dsyscall.c2809 btp->tp->name, 0, 0); in bpf_task_fd_query()