Lines Matching refs:tk

85 static nokprobe_inline bool trace_kprobe_is_return(struct trace_kprobe *tk)  in trace_kprobe_is_return()  argument
87 return tk->rp.handler != NULL; in trace_kprobe_is_return()
90 static nokprobe_inline const char *trace_kprobe_symbol(struct trace_kprobe *tk) in trace_kprobe_symbol() argument
92 return tk->symbol ? tk->symbol : "unknown"; in trace_kprobe_symbol()
95 static nokprobe_inline unsigned long trace_kprobe_offset(struct trace_kprobe *tk) in trace_kprobe_offset() argument
97 return tk->rp.kp.offset; in trace_kprobe_offset()
100 static nokprobe_inline bool trace_kprobe_has_gone(struct trace_kprobe *tk) in trace_kprobe_has_gone() argument
102 return kprobe_gone(&tk->rp.kp); in trace_kprobe_has_gone()
105 static nokprobe_inline bool trace_kprobe_within_module(struct trace_kprobe *tk, in trace_kprobe_within_module() argument
109 const char *name = trace_kprobe_symbol(tk); in trace_kprobe_within_module()
114 static nokprobe_inline bool trace_kprobe_module_exist(struct trace_kprobe *tk) in trace_kprobe_module_exist() argument
119 if (!tk->symbol) in trace_kprobe_module_exist()
121 p = strchr(tk->symbol, ':'); in trace_kprobe_module_exist()
126 ret = !!find_module(tk->symbol); in trace_kprobe_module_exist()
135 struct trace_kprobe *tk = to_trace_kprobe(ev); in trace_kprobe_is_busy() local
137 return trace_probe_is_enabled(&tk->tp); in trace_kprobe_is_busy()
140 static bool trace_kprobe_match_command_head(struct trace_kprobe *tk, in trace_kprobe_match_command_head() argument
148 if (!tk->symbol) in trace_kprobe_match_command_head()
149 snprintf(buf, sizeof(buf), "0x%p", tk->rp.kp.addr); in trace_kprobe_match_command_head()
150 else if (tk->rp.kp.offset) in trace_kprobe_match_command_head()
152 trace_kprobe_symbol(tk), tk->rp.kp.offset); in trace_kprobe_match_command_head()
154 snprintf(buf, sizeof(buf), "%s", trace_kprobe_symbol(tk)); in trace_kprobe_match_command_head()
159 return trace_probe_match_command_args(&tk->tp, argc, argv); in trace_kprobe_match_command_head()
165 struct trace_kprobe *tk = to_trace_kprobe(ev); in trace_kprobe_match() local
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()
170 trace_kprobe_match_command_head(tk, argc, argv); in trace_kprobe_match()
173 static nokprobe_inline unsigned long trace_kprobe_nhit(struct trace_kprobe *tk) in trace_kprobe_nhit() argument
179 nhit += *per_cpu_ptr(tk->nhit, cpu); in trace_kprobe_nhit()
184 static nokprobe_inline bool trace_kprobe_is_registered(struct trace_kprobe *tk) in trace_kprobe_is_registered() argument
186 return !(list_empty(&tk->rp.kp.list) && in trace_kprobe_is_registered()
187 hlist_unhashed(&tk->rp.kp.hlist)); in trace_kprobe_is_registered()
192 unsigned long trace_kprobe_address(struct trace_kprobe *tk) in trace_kprobe_address() argument
196 if (tk->symbol) { in trace_kprobe_address()
198 kallsyms_lookup_name(trace_kprobe_symbol(tk)); in trace_kprobe_address()
200 addr += tk->rp.kp.offset; in trace_kprobe_address()
202 addr = (unsigned long)tk->rp.kp.addr; in trace_kprobe_address()
221 struct trace_kprobe *tk = trace_kprobe_primary_from_call(call); in trace_kprobe_on_func_entry() local
223 return tk ? (kprobe_on_func_entry(tk->rp.kp.addr, in trace_kprobe_on_func_entry()
224 tk->rp.kp.addr ? NULL : tk->rp.kp.symbol_name, in trace_kprobe_on_func_entry()
225 tk->rp.kp.addr ? 0 : tk->rp.kp.offset) == 0) : false; in trace_kprobe_on_func_entry()
230 struct trace_kprobe *tk = trace_kprobe_primary_from_call(call); in trace_kprobe_error_injectable() local
232 return tk ? within_error_injection_list(trace_kprobe_address(tk)) : in trace_kprobe_error_injectable()
236 static int register_kprobe_event(struct trace_kprobe *tk);
237 static int unregister_kprobe_event(struct trace_kprobe *tk);
243 static void free_trace_kprobe(struct trace_kprobe *tk) in free_trace_kprobe() argument
245 if (tk) { in free_trace_kprobe()
246 trace_probe_cleanup(&tk->tp); in free_trace_kprobe()
247 kfree(tk->symbol); in free_trace_kprobe()
248 free_percpu(tk->nhit); in free_trace_kprobe()
249 kfree(tk); in free_trace_kprobe()
264 struct trace_kprobe *tk; in alloc_trace_kprobe() local
267 tk = kzalloc(struct_size(tk, tp.args, nargs), GFP_KERNEL); in alloc_trace_kprobe()
268 if (!tk) in alloc_trace_kprobe()
271 tk->nhit = alloc_percpu(unsigned long); in alloc_trace_kprobe()
272 if (!tk->nhit) in alloc_trace_kprobe()
276 tk->symbol = kstrdup(symbol, GFP_KERNEL); in alloc_trace_kprobe()
277 if (!tk->symbol) in alloc_trace_kprobe()
279 tk->rp.kp.symbol_name = tk->symbol; in alloc_trace_kprobe()
280 tk->rp.kp.offset = offs; in alloc_trace_kprobe()
282 tk->rp.kp.addr = addr; in alloc_trace_kprobe()
285 tk->rp.handler = kretprobe_dispatcher; in alloc_trace_kprobe()
287 tk->rp.kp.pre_handler = kprobe_dispatcher; in alloc_trace_kprobe()
289 tk->rp.maxactive = maxactive; in alloc_trace_kprobe()
290 INIT_HLIST_NODE(&tk->rp.kp.hlist); in alloc_trace_kprobe()
291 INIT_LIST_HEAD(&tk->rp.kp.list); in alloc_trace_kprobe()
293 ret = trace_probe_init(&tk->tp, event, group, false); in alloc_trace_kprobe()
297 dyn_event_init(&tk->devent, &trace_kprobe_ops); in alloc_trace_kprobe()
298 return tk; in alloc_trace_kprobe()
300 free_trace_kprobe(tk); in alloc_trace_kprobe()
308 struct trace_kprobe *tk; in find_trace_kprobe() local
310 for_each_trace_kprobe(tk, pos) in find_trace_kprobe()
311 if (strcmp(trace_probe_name(&tk->tp), event) == 0 && in find_trace_kprobe()
312 strcmp(trace_probe_group_name(&tk->tp), group) == 0) in find_trace_kprobe()
313 return tk; in find_trace_kprobe()
317 static inline int __enable_trace_kprobe(struct trace_kprobe *tk) in __enable_trace_kprobe() argument
321 if (trace_kprobe_is_registered(tk) && !trace_kprobe_has_gone(tk)) { in __enable_trace_kprobe()
322 if (trace_kprobe_is_return(tk)) in __enable_trace_kprobe()
323 ret = enable_kretprobe(&tk->rp); in __enable_trace_kprobe()
325 ret = enable_kprobe(&tk->rp.kp); in __enable_trace_kprobe()
333 struct trace_kprobe *tk; in __disable_trace_kprobe() local
335 list_for_each_entry(tk, trace_probe_probe_list(tp), tp.list) { in __disable_trace_kprobe()
336 if (!trace_kprobe_is_registered(tk)) in __disable_trace_kprobe()
338 if (trace_kprobe_is_return(tk)) in __disable_trace_kprobe()
339 disable_kretprobe(&tk->rp); in __disable_trace_kprobe()
341 disable_kprobe(&tk->rp.kp); in __disable_trace_kprobe()
353 struct trace_kprobe *tk; in enable_trace_kprobe() local
373 list_for_each_entry(tk, trace_probe_probe_list(tp), tp.list) { in enable_trace_kprobe()
374 if (trace_kprobe_has_gone(tk)) in enable_trace_kprobe()
376 ret = __enable_trace_kprobe(tk); in enable_trace_kprobe()
452 static bool within_notrace_func(struct trace_kprobe *tk) in within_notrace_func() argument
454 unsigned long addr = trace_kprobe_address(tk); in within_notrace_func()
474 #define within_notrace_func(tk) (false) argument
478 static int __register_trace_kprobe(struct trace_kprobe *tk) in __register_trace_kprobe() argument
486 if (trace_kprobe_is_registered(tk)) in __register_trace_kprobe()
489 if (within_notrace_func(tk)) { in __register_trace_kprobe()
491 trace_kprobe_symbol(tk)); in __register_trace_kprobe()
495 for (i = 0; i < tk->tp.nr_args; i++) { in __register_trace_kprobe()
496 ret = traceprobe_update_arg(&tk->tp.args[i]); in __register_trace_kprobe()
502 if (trace_probe_is_enabled(&tk->tp)) in __register_trace_kprobe()
503 tk->rp.kp.flags &= ~KPROBE_FLAG_DISABLED; in __register_trace_kprobe()
505 tk->rp.kp.flags |= KPROBE_FLAG_DISABLED; in __register_trace_kprobe()
507 if (trace_kprobe_is_return(tk)) in __register_trace_kprobe()
508 ret = register_kretprobe(&tk->rp); in __register_trace_kprobe()
510 ret = register_kprobe(&tk->rp.kp); in __register_trace_kprobe()
516 static void __unregister_trace_kprobe(struct trace_kprobe *tk) in __unregister_trace_kprobe() argument
518 if (trace_kprobe_is_registered(tk)) { in __unregister_trace_kprobe()
519 if (trace_kprobe_is_return(tk)) in __unregister_trace_kprobe()
520 unregister_kretprobe(&tk->rp); in __unregister_trace_kprobe()
522 unregister_kprobe(&tk->rp.kp); in __unregister_trace_kprobe()
524 INIT_HLIST_NODE(&tk->rp.kp.hlist); in __unregister_trace_kprobe()
525 INIT_LIST_HEAD(&tk->rp.kp.list); in __unregister_trace_kprobe()
526 if (tk->rp.kp.symbol_name) in __unregister_trace_kprobe()
527 tk->rp.kp.addr = NULL; in __unregister_trace_kprobe()
532 static int unregister_trace_kprobe(struct trace_kprobe *tk) in unregister_trace_kprobe() argument
535 if (trace_probe_has_sibling(&tk->tp)) in unregister_trace_kprobe()
539 if (trace_probe_is_enabled(&tk->tp)) in unregister_trace_kprobe()
543 if (trace_event_dyn_busy(trace_probe_event_call(&tk->tp))) in unregister_trace_kprobe()
547 if (unregister_kprobe_event(tk)) in unregister_trace_kprobe()
551 __unregister_trace_kprobe(tk); in unregister_trace_kprobe()
552 dyn_event_remove(&tk->devent); in unregister_trace_kprobe()
553 trace_probe_unlink(&tk->tp); in unregister_trace_kprobe()
587 static int append_trace_kprobe(struct trace_kprobe *tk, struct trace_kprobe *to) in append_trace_kprobe() argument
591 ret = trace_probe_compare_arg_type(&tk->tp, &to->tp); in append_trace_kprobe()
598 if (trace_kprobe_has_same_kprobe(to, tk)) { in append_trace_kprobe()
605 ret = trace_probe_append(&tk->tp, &to->tp); in append_trace_kprobe()
610 ret = __register_trace_kprobe(tk); in append_trace_kprobe()
611 if (ret == -ENOENT && !trace_kprobe_module_exist(tk)) { in append_trace_kprobe()
617 trace_probe_unlink(&tk->tp); in append_trace_kprobe()
619 dyn_event_add(&tk->devent, trace_probe_event_call(&tk->tp)); in append_trace_kprobe()
625 static int register_trace_kprobe(struct trace_kprobe *tk) in register_trace_kprobe() argument
632 old_tk = find_trace_kprobe(trace_probe_name(&tk->tp), in register_trace_kprobe()
633 trace_probe_group_name(&tk->tp)); in register_trace_kprobe()
635 if (trace_kprobe_is_return(tk) != trace_kprobe_is_return(old_tk)) { in register_trace_kprobe()
640 ret = append_trace_kprobe(tk, old_tk); in register_trace_kprobe()
646 ret = register_kprobe_event(tk); in register_trace_kprobe()
657 ret = __register_trace_kprobe(tk); in register_trace_kprobe()
658 if (ret == -ENOENT && !trace_kprobe_module_exist(tk)) { in register_trace_kprobe()
664 unregister_kprobe_event(tk); in register_trace_kprobe()
666 dyn_event_add(&tk->devent, trace_probe_event_call(&tk->tp)); in register_trace_kprobe()
679 struct trace_kprobe *tk; in trace_kprobe_module_callback() local
687 for_each_trace_kprobe(tk, pos) { in trace_kprobe_module_callback()
688 if (trace_kprobe_within_module(tk, mod)) { in trace_kprobe_module_callback()
690 __unregister_trace_kprobe(tk); in trace_kprobe_module_callback()
691 ret = __register_trace_kprobe(tk); in trace_kprobe_module_callback()
694 trace_probe_name(&tk->tp), in trace_kprobe_module_callback()
769 struct trace_kprobe *tk = NULL; in __trace_kprobe_create() local
934 tk = alloc_trace_kprobe(group, event, addr, symbol, offset, maxactive, in __trace_kprobe_create()
936 if (IS_ERR(tk)) { in __trace_kprobe_create()
937 ret = PTR_ERR(tk); in __trace_kprobe_create()
947 ret = traceprobe_parse_probe_arg(&tk->tp, i, argv[i], &ctx); in __trace_kprobe_create()
953 ret = traceprobe_set_print_fmt(&tk->tp, ptype); in __trace_kprobe_create()
957 ret = register_trace_kprobe(tk); in __trace_kprobe_create()
979 free_trace_kprobe(tk); in __trace_kprobe_create()
1168 struct trace_kprobe *tk = to_trace_kprobe(ev); in trace_kprobe_release() local
1169 int ret = unregister_trace_kprobe(tk); in trace_kprobe_release()
1172 free_trace_kprobe(tk); in trace_kprobe_release()
1178 struct trace_kprobe *tk = to_trace_kprobe(ev); in trace_kprobe_show() local
1181 seq_putc(m, trace_kprobe_is_return(tk) ? 'r' : 'p'); in trace_kprobe_show()
1182 if (trace_kprobe_is_return(tk) && tk->rp.maxactive) in trace_kprobe_show()
1183 seq_printf(m, "%d", tk->rp.maxactive); in trace_kprobe_show()
1184 seq_printf(m, ":%s/%s", trace_probe_group_name(&tk->tp), in trace_kprobe_show()
1185 trace_probe_name(&tk->tp)); in trace_kprobe_show()
1187 if (!tk->symbol) in trace_kprobe_show()
1188 seq_printf(m, " 0x%p", tk->rp.kp.addr); in trace_kprobe_show()
1189 else if (tk->rp.kp.offset) in trace_kprobe_show()
1190 seq_printf(m, " %s+%u", trace_kprobe_symbol(tk), in trace_kprobe_show()
1191 tk->rp.kp.offset); in trace_kprobe_show()
1193 seq_printf(m, " %s", trace_kprobe_symbol(tk)); in trace_kprobe_show()
1195 for (i = 0; i < tk->tp.nr_args; i++) in trace_kprobe_show()
1196 seq_printf(m, " %s=%s", tk->tp.args[i].name, tk->tp.args[i].comm); in trace_kprobe_show()
1256 struct trace_kprobe *tk; in probes_profile_seq_show() local
1262 tk = to_trace_kprobe(ev); in probes_profile_seq_show()
1263 nmissed = trace_kprobe_is_return(tk) ? in probes_profile_seq_show()
1264 tk->rp.kp.nmissed + tk->rp.nmissed : tk->rp.kp.nmissed; in probes_profile_seq_show()
1266 trace_probe_name(&tk->tp), in probes_profile_seq_show()
1267 trace_kprobe_nhit(tk), in probes_profile_seq_show()
1344 __kprobe_trace_func(struct trace_kprobe *tk, struct pt_regs *regs, in NOKPROBE_SYMBOL()
1348 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in NOKPROBE_SYMBOL()
1357 dsize = __get_data_size(&tk->tp, regs); in NOKPROBE_SYMBOL()
1360 sizeof(*entry) + tk->tp.size + dsize); in NOKPROBE_SYMBOL()
1365 entry->ip = (unsigned long)tk->rp.kp.addr; in NOKPROBE_SYMBOL()
1366 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in NOKPROBE_SYMBOL()
1372 kprobe_trace_func(struct trace_kprobe *tk, struct pt_regs *regs) in kprobe_trace_func() argument
1376 trace_probe_for_each_link_rcu(link, &tk->tp) in kprobe_trace_func()
1377 __kprobe_trace_func(tk, regs, link->file); in kprobe_trace_func()
1383 __kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in __kretprobe_trace_func() argument
1389 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in __kretprobe_trace_func()
1397 dsize = __get_data_size(&tk->tp, regs); in __kretprobe_trace_func()
1400 sizeof(*entry) + tk->tp.size + dsize); in __kretprobe_trace_func()
1405 entry->func = (unsigned long)tk->rp.kp.addr; in __kretprobe_trace_func()
1407 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in __kretprobe_trace_func()
1413 kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in kretprobe_trace_func() argument
1418 trace_probe_for_each_link_rcu(link, &tk->tp) in kretprobe_trace_func()
1419 __kretprobe_trace_func(tk, ri, regs, link->file); in kretprobe_trace_func()
1526 kprobe_perf_func(struct trace_kprobe *tk, struct pt_regs *regs) in kprobe_perf_func() argument
1528 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in kprobe_perf_func()
1555 dsize = __get_data_size(&tk->tp, regs); in kprobe_perf_func()
1556 __size = sizeof(*entry) + tk->tp.size + dsize; in kprobe_perf_func()
1564 entry->ip = (unsigned long)tk->rp.kp.addr; in kprobe_perf_func()
1566 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in kprobe_perf_func()
1575 kretprobe_perf_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in kretprobe_perf_func() argument
1578 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in kretprobe_perf_func()
1591 dsize = __get_data_size(&tk->tp, regs); in kretprobe_perf_func()
1592 __size = sizeof(*entry) + tk->tp.size + dsize; in kretprobe_perf_func()
1600 entry->func = (unsigned long)tk->rp.kp.addr; in kretprobe_perf_func()
1602 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in kretprobe_perf_func()
1614 struct trace_kprobe *tk; in bpf_get_kprobe_info() local
1617 tk = find_trace_kprobe(pevent, group); in bpf_get_kprobe_info()
1619 tk = trace_kprobe_primary_from_call(event->tp_event); in bpf_get_kprobe_info()
1620 if (!tk) in bpf_get_kprobe_info()
1623 *fd_type = trace_kprobe_is_return(tk) ? BPF_FD_TYPE_KRETPROBE in bpf_get_kprobe_info()
1625 *probe_offset = tk->rp.kp.offset; in bpf_get_kprobe_info()
1627 (unsigned long)tk->rp.kp.addr : 0; in bpf_get_kprobe_info()
1628 *symbol = tk->symbol; in bpf_get_kprobe_info()
1667 struct trace_kprobe *tk = container_of(kp, struct trace_kprobe, rp.kp); in kprobe_dispatcher() local
1670 raw_cpu_inc(*tk->nhit); in kprobe_dispatcher()
1672 if (trace_probe_test_flag(&tk->tp, TP_FLAG_TRACE)) in kprobe_dispatcher()
1673 kprobe_trace_func(tk, regs); in kprobe_dispatcher()
1675 if (trace_probe_test_flag(&tk->tp, TP_FLAG_PROFILE)) in kprobe_dispatcher()
1676 ret = kprobe_perf_func(tk, regs); in kprobe_dispatcher()
1686 struct trace_kprobe *tk; in kretprobe_dispatcher() local
1696 tk = container_of(rp, struct trace_kprobe, rp); in kretprobe_dispatcher()
1697 raw_cpu_inc(*tk->nhit); in kretprobe_dispatcher()
1699 if (trace_probe_test_flag(&tk->tp, TP_FLAG_TRACE)) in kretprobe_dispatcher()
1700 kretprobe_trace_func(tk, ri, regs); in kretprobe_dispatcher()
1702 if (trace_probe_test_flag(&tk->tp, TP_FLAG_PROFILE)) in kretprobe_dispatcher()
1703 kretprobe_perf_func(tk, ri, regs); in kretprobe_dispatcher()
1729 static inline void init_trace_event_call(struct trace_kprobe *tk) in init_trace_event_call() argument
1731 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in init_trace_event_call()
1733 if (trace_kprobe_is_return(tk)) { in init_trace_event_call()
1745 static int register_kprobe_event(struct trace_kprobe *tk) in register_kprobe_event() argument
1747 init_trace_event_call(tk); in register_kprobe_event()
1749 return trace_probe_register_event_call(&tk->tp); in register_kprobe_event()
1752 static int unregister_kprobe_event(struct trace_kprobe *tk) in unregister_kprobe_event() argument
1754 return trace_probe_unregister_event_call(&tk->tp); in unregister_kprobe_event()
1765 struct trace_kprobe *tk; in create_local_trace_kprobe() local
1794 tk = alloc_trace_kprobe(KPROBE_EVENT_SYSTEM, event, (void *)addr, func, in create_local_trace_kprobe()
1798 if (IS_ERR(tk)) { in create_local_trace_kprobe()
1800 (int)PTR_ERR(tk)); in create_local_trace_kprobe()
1801 return ERR_CAST(tk); in create_local_trace_kprobe()
1804 init_trace_event_call(tk); in create_local_trace_kprobe()
1806 ptype = trace_kprobe_is_return(tk) ? in create_local_trace_kprobe()
1808 if (traceprobe_set_print_fmt(&tk->tp, ptype) < 0) { in create_local_trace_kprobe()
1813 ret = __register_trace_kprobe(tk); in create_local_trace_kprobe()
1817 return trace_probe_event_call(&tk->tp); in create_local_trace_kprobe()
1819 free_trace_kprobe(tk); in create_local_trace_kprobe()
1825 struct trace_kprobe *tk; in destroy_local_trace_kprobe() local
1827 tk = trace_kprobe_primary_from_call(event_call); in destroy_local_trace_kprobe()
1828 if (unlikely(!tk)) in destroy_local_trace_kprobe()
1831 if (trace_probe_is_enabled(&tk->tp)) { in destroy_local_trace_kprobe()
1836 __unregister_trace_kprobe(tk); in destroy_local_trace_kprobe()
1838 free_trace_kprobe(tk); in destroy_local_trace_kprobe()
1846 struct trace_kprobe *tk; in enable_boot_kprobe_events() local
1850 for_each_trace_kprobe(tk, pos) { in enable_boot_kprobe_events()
1852 if (file->event_call == trace_probe_event_call(&tk->tp)) in enable_boot_kprobe_events()
1925 find_trace_probe_file(struct trace_kprobe *tk, struct trace_array *tr) in find_trace_probe_file() argument
1930 if (file->event_call == trace_probe_event_call(&tk->tp)) in find_trace_probe_file()
1944 struct trace_kprobe *tk; in kprobe_trace_self_tests_init() local
1963 tk = find_trace_kprobe("testprobe", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
1964 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
1968 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
1974 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
1984 tk = find_trace_kprobe("testprobe2", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
1985 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
1989 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
1995 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
2013 tk = find_trace_kprobe("testprobe", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
2014 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
2018 if (trace_kprobe_nhit(tk) != 1) { in kprobe_trace_self_tests_init()
2023 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
2029 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
2032 tk = find_trace_kprobe("testprobe2", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
2033 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
2037 if (trace_kprobe_nhit(tk) != 1) { in kprobe_trace_self_tests_init()
2042 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
2048 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()