Home
last modified time | relevance | path

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

12

/kernel/trace/
Dtrace_uprobe.c66 struct trace_probe tp; member
281 return trace_probe_is_enabled(&tu->tp); in trace_uprobe_is_busy()
309 return trace_probe_match_command_args(&tu->tp, argc, argv); in trace_uprobe_match_command_head()
318 strcmp(trace_probe_name(&tu->tp), event) == 0) && in trace_uprobe_match()
319 (!system || strcmp(trace_probe_group_name(&tu->tp), system) == 0) && in trace_uprobe_match()
326 struct trace_probe *tp; in trace_uprobe_primary_from_call() local
328 tp = trace_probe_primary_from_call(call); in trace_uprobe_primary_from_call()
329 if (WARN_ON_ONCE(!tp)) in trace_uprobe_primary_from_call()
332 return container_of(tp, struct trace_uprobe, tp); in trace_uprobe_primary_from_call()
344 tu = kzalloc(struct_size(tu, tp.args, nargs), GFP_KERNEL); in alloc_trace_uprobe()
[all …]
Dtrace_kprobe.c63 struct trace_probe tp; member
137 return trace_probe_is_enabled(&tk->tp); in trace_kprobe_is_busy()
159 return trace_probe_match_command_args(&tk->tp, argc, argv); in trace_kprobe_match_command_head()
168 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()
246 trace_probe_cleanup(&tk->tp); in free_trace_kprobe()
[all …]
Dtrace_probe.h260 static inline bool trace_probe_test_flag(struct trace_probe *tp, in trace_probe_test_flag() argument
263 return !!(tp->event->flags & flag); in trace_probe_test_flag()
266 static inline void trace_probe_set_flag(struct trace_probe *tp, in trace_probe_set_flag() argument
269 tp->event->flags |= flag; in trace_probe_set_flag()
272 static inline void trace_probe_clear_flag(struct trace_probe *tp, in trace_probe_clear_flag() argument
275 tp->event->flags &= ~flag; in trace_probe_clear_flag()
278 static inline bool trace_probe_is_enabled(struct trace_probe *tp) in trace_probe_is_enabled() argument
280 return trace_probe_test_flag(tp, TP_FLAG_TRACE | TP_FLAG_PROFILE); in trace_probe_is_enabled()
283 static inline const char *trace_probe_name(struct trace_probe *tp) in trace_probe_name() argument
285 return trace_event_name(&tp->event->call); in trace_probe_name()
[all …]
Dtrace_eprobe.c36 struct trace_probe tp; member
50 trace_probe_cleanup(&ep->tp); in trace_event_probe_cleanup()
74 seq_printf(m, "e:%s/%s", trace_probe_group_name(&ep->tp), in eprobe_dyn_event_show()
75 trace_probe_name(&ep->tp)); in eprobe_dyn_event_show()
78 for (i = 0; i < ep->tp.nr_args; i++) in eprobe_dyn_event_show()
79 seq_printf(m, " %s=%s", ep->tp.args[i].name, ep->tp.args[i].comm); in eprobe_dyn_event_show()
88 if (trace_probe_has_sibling(&ep->tp)) in unregister_trace_eprobe()
92 if (trace_probe_is_enabled(&ep->tp)) in unregister_trace_eprobe()
96 if (trace_probe_unregister_event_call(&ep->tp)) in unregister_trace_eprobe()
101 trace_probe_unlink(&ep->tp); in unregister_trace_eprobe()
[all …]
Dtrace_probe.c797 int traceprobe_parse_probe_arg(struct trace_probe *tp, int i, const char *arg, in traceprobe_parse_probe_arg() argument
800 struct probe_arg *parg = &tp->args[i]; in traceprobe_parse_probe_arg()
804 tp->nr_args++; in traceprobe_parse_probe_arg()
829 if (traceprobe_conflict_field_name(parg->name, tp->args, i)) { in traceprobe_parse_probe_arg()
834 return traceprobe_parse_probe_arg_body(body, &tp->size, parg, flags, in traceprobe_parse_probe_arg()
890 static int __set_print_fmt(struct trace_probe *tp, char *buf, int len, in __set_print_fmt() argument
918 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
919 parg = tp->args + i; in __set_print_fmt()
935 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
936 parg = tp->args + i; in __set_print_fmt()
[all …]
Dtrace_probe_tmpl.h215 __get_data_size(struct trace_probe *tp, struct pt_regs *regs) in __get_data_size() argument
220 for (i = 0; i < tp->nr_args; i++) { in __get_data_size()
221 arg = tp->args + i; in __get_data_size()
234 store_trace_args(void *data, struct trace_probe *tp, void *rec, in store_trace_args() argument
239 void *dyndata = data + tp->size; in store_trace_args()
243 for (i = 0; i < tp->nr_args; i++) { in store_trace_args()
244 arg = tp->args + i; in store_trace_args()
Dtrace_events_synth.c830 static void free_synth_tracepoint(struct tracepoint *tp) in free_synth_tracepoint() argument
832 if (!tp) in free_synth_tracepoint()
835 kfree(tp->name); in free_synth_tracepoint()
836 kfree(tp); in free_synth_tracepoint()
841 struct tracepoint *tp; in alloc_synth_tracepoint() local
843 tp = kzalloc(sizeof(*tp), GFP_KERNEL); in alloc_synth_tracepoint()
844 if (!tp) in alloc_synth_tracepoint()
847 tp->name = kstrdup(name, GFP_KERNEL); in alloc_synth_tracepoint()
848 if (!tp->name) { in alloc_synth_tracepoint()
849 kfree(tp); in alloc_synth_tracepoint()
[all …]
Dtrace_events_user.c987 struct tracepoint *tp = &user->tracepoint; in update_reg_page_for() local
990 if (atomic_read(&tp->key.enabled) > 0) { in update_reg_page_for()
996 probe_func_ptr = rcu_dereference_sched(tp->funcs); in update_reg_page_for()
1039 ret = tracepoint_probe_register(call->tp, in user_event_reg()
1047 tracepoint_probe_unregister(call->tp, in user_event_reg()
1054 ret = tracepoint_probe_register(call->tp, in user_event_reg()
1062 tracepoint_probe_unregister(call->tp, in user_event_reg()
1327 user->call.tp = &user->tracepoint; in user_event_parse()
1397 struct tracepoint *tp; in user_events_write_core() local
1427 tp = &user->tracepoint; in user_events_write_core()
[all …]
Dtrace_synth.h35 struct tracepoint *tp; member
Dbpf_trace.c61 if (!strcmp(btp->tp->name, name)) { in bpf_get_raw_tracepoint_module()
2247 if (!strcmp(btp->tp->name, name)) in bpf_get_raw_tracepoint()
2326 struct tracepoint *tp = btp->tp; in __bpf_probe_register() local
2338 return tracepoint_probe_register_may_exist(tp, (void *)btp->bpf_func, in __bpf_probe_register()
2349 return tracepoint_probe_unregister(btp->tp, (void *)btp->bpf_func, prog); in bpf_probe_unregister()
2374 *buf = is_tracepoint ? event->tp_event->tp->name in bpf_get_perf_event_info()
/kernel/
Dtracepoint.c308 static void tracepoint_update_call(struct tracepoint *tp, struct tracepoint_func *tp_funcs) in tracepoint_update_call() argument
310 void *func = tp->iterator; in tracepoint_update_call()
313 if (!tp->static_call_key) in tracepoint_update_call()
317 __static_call_update(tp->static_call_key, tp->static_call_tramp, func); in tracepoint_update_call()
323 static int tracepoint_add_func(struct tracepoint *tp, in tracepoint_add_func() argument
330 if (tp->regfunc && !static_key_enabled(&tp->key)) { in tracepoint_add_func()
331 ret = tp->regfunc(); in tracepoint_add_func()
336 tp_funcs = rcu_dereference_protected(tp->funcs, in tracepoint_add_func()
358 tracepoint_update_call(tp, tp_funcs); in tracepoint_add_func()
360 rcu_assign_pointer(tp->funcs, tp_funcs); in tracepoint_add_func()
[all …]
Dtorture.c483 void torture_shuffle_task_register(struct task_struct *tp) in torture_shuffle_task_register() argument
487 if (WARN_ON_ONCE(tp == NULL)) in torture_shuffle_task_register()
492 stp->st_t = tp; in torture_shuffle_task_register()
929 char *f, struct task_struct **tp) in _torture_create_kthread() argument
934 *tp = kthread_create(fn, arg, "%s", s); in _torture_create_kthread()
935 if (IS_ERR(*tp)) { in _torture_create_kthread()
936 ret = PTR_ERR(*tp); in _torture_create_kthread()
938 *tp = NULL; in _torture_create_kthread()
941 wake_up_process(*tp); // Process is sleeping, so ordering provided. in _torture_create_kthread()
942 torture_shuffle_task_register(*tp); in _torture_create_kthread()
[all …]
Dsys.c2673 struct timespec64 tp; in do_sysinfo() local
2677 ktime_get_boottime_ts64(&tp); in do_sysinfo()
2678 timens_add_boottime(&tp); in do_sysinfo()
2679 info->uptime = tp.tv_sec + (tp.tv_nsec ? 1 : 0); in do_sysinfo()
/kernel/time/
Dposix-stubs.c61 const struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument
67 if (get_timespec64(&new_tp, tp)) in SYSCALL_DEFINE2()
73 static int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime() argument
77 ktime_get_real_ts64(tp); in do_clock_gettime()
80 ktime_get_ts64(tp); in do_clock_gettime()
81 timens_add_monotonic(tp); in do_clock_gettime()
84 ktime_get_boottime_ts64(tp); in do_clock_gettime()
85 timens_add_boottime(tp); in do_clock_gettime()
95 struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument
104 if (put_timespec64(&kernel_tp, tp)) in SYSCALL_DEFINE2()
[all …]
Dposix-timers.c170 static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_timespec() argument
172 ktime_get_real_ts64(tp); in posix_get_realtime_timespec()
183 const struct timespec64 *tp) in posix_clock_realtime_set() argument
185 return do_sys_settimeofday64(tp, NULL); in posix_clock_realtime_set()
197 static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_timespec() argument
199 ktime_get_ts64(tp); in posix_get_monotonic_timespec()
200 timens_add_monotonic(tp); in posix_get_monotonic_timespec()
212 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw() argument
214 ktime_get_raw_ts64(tp); in posix_get_monotonic_raw()
215 timens_add_monotonic(tp); in posix_get_monotonic_raw()
[all …]
Dnamespace.c367 struct timespec64 tp; in proc_timens_set_offset() local
385 ktime_get_ts64(&tp); in proc_timens_set_offset()
388 ktime_get_boottime_ts64(&tp); in proc_timens_set_offset()
401 tp = timespec64_add(tp, off->val); in proc_timens_set_offset()
406 if (tp.tv_sec < 0 || tp.tv_sec > KTIME_SEC_MAX / 2) in proc_timens_set_offset()
Dposix-timers.h6 struct timespec64 *tp);
8 const struct timespec64 *tp);
11 struct timespec64 *tp);
Dposix-cpu-timers.c160 posix_cpu_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in posix_cpu_clock_getres() argument
165 tp->tv_sec = 0; in posix_cpu_clock_getres()
166 tp->tv_nsec = ((NSEC_PER_SEC + HZ - 1) / HZ); in posix_cpu_clock_getres()
173 tp->tv_nsec = 1; in posix_cpu_clock_getres()
180 posix_cpu_clock_set(const clockid_t clock, const struct timespec64 *tp) in posix_cpu_clock_set() argument
359 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()
1634 struct timespec64 *tp) in process_cpu_clock_getres() argument
1636 return posix_cpu_clock_getres(PROCESS_CLOCK, tp); in process_cpu_clock_getres()
1639 struct timespec64 *tp) in process_cpu_clock_get() argument
[all …]
Dalarmtimer.c48 void (*get_timespec)(struct timespec64 *tp);
677 static int alarm_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in alarm_clock_getres() argument
682 tp->tv_sec = 0; in alarm_clock_getres()
683 tp->tv_nsec = hrtimer_resolution; in alarm_clock_getres()
694 static int alarm_clock_get_timespec(clockid_t which_clock, struct timespec64 *tp) in alarm_clock_get_timespec() argument
701 base->get_timespec(tp); in alarm_clock_get_timespec()
920 static void get_boottime_timespec(struct timespec64 *tp) in get_boottime_timespec() argument
922 ktime_get_boottime_ts64(tp); in get_boottime_timespec()
923 timens_add_boottime(tp); in get_boottime_timespec()
/kernel/futex/
Dsyscalls.c171 ktime_t t, *tp = NULL; in SYSCALL_DEFINE6() local
182 tp = &t; in SYSCALL_DEFINE6()
185 return do_futex(uaddr, op, val, tp, uaddr2, (unsigned long)utime, val3); in SYSCALL_DEFINE6()
366 ktime_t t, *tp = NULL; in SYSCALL_DEFINE6() local
375 tp = &t; in SYSCALL_DEFINE6()
378 return do_futex(uaddr, op, val, tp, uaddr2, (unsigned long)utime, val3); in SYSCALL_DEFINE6()
Dwaitwake.c706 ktime_t t, *tp = NULL; in futex_wait_restart() local
710 tp = &t; in futex_wait_restart()
715 restart->futex.val, tp, restart->futex.bitset); in futex_wait_restart()
/kernel/debug/kdb/
Dkdb_main.c974 kdbtab_t *tp; in kdb_parse() local
1065 list_for_each_entry(tp, &kdb_cmds_head, list_node) { in kdb_parse()
1070 if (tp->minlen && (strlen(argv[0]) <= tp->minlen) && in kdb_parse()
1071 (strncmp(argv[0], tp->name, tp->minlen) == 0)) in kdb_parse()
1074 if (strcmp(argv[0], tp->name) == 0) in kdb_parse()
1083 if (list_entry_is_head(tp, &kdb_cmds_head, list_node)) { in kdb_parse()
1084 list_for_each_entry(tp, &kdb_cmds_head, list_node) { in kdb_parse()
1085 if (strncmp(argv[0], tp->name, strlen(tp->name)) == 0) in kdb_parse()
1090 if (!list_entry_is_head(tp, &kdb_cmds_head, list_node)) { in kdb_parse()
1093 if (!kdb_check_flags(tp->flags, kdb_cmd_enabled, argc <= 1)) in kdb_parse()
[all …]
/kernel/kcsan/
Dkcsan_test.c1575 static void register_tracepoints(struct tracepoint *tp, void *ignore) in register_tracepoints() argument
1578 if (!strcmp(tp->name, "console")) in register_tracepoints()
1579 WARN_ON(tracepoint_probe_register(tp, probe_console, NULL)); in register_tracepoints()
1583 static void unregister_tracepoints(struct tracepoint *tp, void *ignore) in unregister_tracepoints() argument
1585 if (!strcmp(tp->name, "console")) in unregister_tracepoints()
1586 tracepoint_probe_unregister(tp, probe_console, NULL); in unregister_tracepoints()
/kernel/module/
Dversion.c98 struct tracepoint * const *tp) in module_layout() argument
Dinternal.h283 struct kernel_symbol *ks, struct tracepoint * const *tp);

12