Lines Matching refs:tk
86 static nokprobe_inline bool trace_kprobe_is_return(struct trace_kprobe *tk) in trace_kprobe_is_return() argument
88 return tk->rp.handler != NULL; in trace_kprobe_is_return()
91 static nokprobe_inline const char *trace_kprobe_symbol(struct trace_kprobe *tk) in trace_kprobe_symbol() argument
93 return tk->symbol ? tk->symbol : "unknown"; in trace_kprobe_symbol()
96 static nokprobe_inline unsigned long trace_kprobe_offset(struct trace_kprobe *tk) in trace_kprobe_offset() argument
98 return tk->rp.kp.offset; in trace_kprobe_offset()
101 static nokprobe_inline bool trace_kprobe_has_gone(struct trace_kprobe *tk) in trace_kprobe_has_gone() argument
103 return !!(kprobe_gone(&tk->rp.kp)); in trace_kprobe_has_gone()
106 static nokprobe_inline bool trace_kprobe_within_module(struct trace_kprobe *tk, in trace_kprobe_within_module() argument
110 const char *name = trace_kprobe_symbol(tk); in trace_kprobe_within_module()
115 static nokprobe_inline bool trace_kprobe_module_exist(struct trace_kprobe *tk) in trace_kprobe_module_exist() argument
120 if (!tk->symbol) in trace_kprobe_module_exist()
122 p = strchr(tk->symbol, ':'); in trace_kprobe_module_exist()
127 ret = !!find_module(tk->symbol); in trace_kprobe_module_exist()
136 struct trace_kprobe *tk = to_trace_kprobe(ev); in trace_kprobe_is_busy() local
138 return trace_probe_is_enabled(&tk->tp); in trace_kprobe_is_busy()
141 static bool trace_kprobe_match_command_head(struct trace_kprobe *tk, in trace_kprobe_match_command_head() argument
149 if (!tk->symbol) in trace_kprobe_match_command_head()
150 snprintf(buf, sizeof(buf), "0x%p", tk->rp.kp.addr); in trace_kprobe_match_command_head()
151 else if (tk->rp.kp.offset) in trace_kprobe_match_command_head()
153 trace_kprobe_symbol(tk), tk->rp.kp.offset); in trace_kprobe_match_command_head()
155 snprintf(buf, sizeof(buf), "%s", trace_kprobe_symbol(tk)); in trace_kprobe_match_command_head()
160 return trace_probe_match_command_args(&tk->tp, argc, argv); in trace_kprobe_match_command_head()
166 struct trace_kprobe *tk = to_trace_kprobe(ev); in trace_kprobe_match() local
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()
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) : 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(SIZEOF_TRACE_KPROBE(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()
334 struct trace_kprobe *tk; in __disable_trace_kprobe() local
337 tk = container_of(pos, struct trace_kprobe, tp); in __disable_trace_kprobe()
338 if (!trace_kprobe_is_registered(tk)) in __disable_trace_kprobe()
340 if (trace_kprobe_is_return(tk)) in __disable_trace_kprobe()
341 disable_kretprobe(&tk->rp); in __disable_trace_kprobe()
343 disable_kprobe(&tk->rp.kp); in __disable_trace_kprobe()
355 struct trace_kprobe *tk; in enable_trace_kprobe() local
376 tk = container_of(pos, struct trace_kprobe, tp); in enable_trace_kprobe()
377 if (trace_kprobe_has_gone(tk)) in enable_trace_kprobe()
379 ret = __enable_trace_kprobe(tk); in enable_trace_kprobe()
455 static bool within_notrace_func(struct trace_kprobe *tk) in within_notrace_func() argument
457 unsigned long addr = trace_kprobe_address(tk); in within_notrace_func()
477 #define within_notrace_func(tk) (false) argument
481 static int __register_trace_kprobe(struct trace_kprobe *tk) in __register_trace_kprobe() argument
489 if (trace_kprobe_is_registered(tk)) in __register_trace_kprobe()
492 if (within_notrace_func(tk)) { in __register_trace_kprobe()
494 trace_kprobe_symbol(tk)); in __register_trace_kprobe()
498 for (i = 0; i < tk->tp.nr_args; i++) { in __register_trace_kprobe()
499 ret = traceprobe_update_arg(&tk->tp.args[i]); in __register_trace_kprobe()
505 if (trace_probe_is_enabled(&tk->tp)) in __register_trace_kprobe()
506 tk->rp.kp.flags &= ~KPROBE_FLAG_DISABLED; in __register_trace_kprobe()
508 tk->rp.kp.flags |= KPROBE_FLAG_DISABLED; in __register_trace_kprobe()
510 if (trace_kprobe_is_return(tk)) in __register_trace_kprobe()
511 ret = register_kretprobe(&tk->rp); in __register_trace_kprobe()
513 ret = register_kprobe(&tk->rp.kp); in __register_trace_kprobe()
519 static void __unregister_trace_kprobe(struct trace_kprobe *tk) in __unregister_trace_kprobe() argument
521 if (trace_kprobe_is_registered(tk)) { in __unregister_trace_kprobe()
522 if (trace_kprobe_is_return(tk)) in __unregister_trace_kprobe()
523 unregister_kretprobe(&tk->rp); in __unregister_trace_kprobe()
525 unregister_kprobe(&tk->rp.kp); in __unregister_trace_kprobe()
527 INIT_HLIST_NODE(&tk->rp.kp.hlist); in __unregister_trace_kprobe()
528 INIT_LIST_HEAD(&tk->rp.kp.list); in __unregister_trace_kprobe()
529 if (tk->rp.kp.symbol_name) in __unregister_trace_kprobe()
530 tk->rp.kp.addr = NULL; in __unregister_trace_kprobe()
535 static int unregister_trace_kprobe(struct trace_kprobe *tk) in unregister_trace_kprobe() argument
538 if (trace_probe_has_sibling(&tk->tp)) in unregister_trace_kprobe()
542 if (trace_probe_is_enabled(&tk->tp)) in unregister_trace_kprobe()
546 if (unregister_kprobe_event(tk)) in unregister_trace_kprobe()
550 __unregister_trace_kprobe(tk); in unregister_trace_kprobe()
551 dyn_event_remove(&tk->devent); in unregister_trace_kprobe()
552 trace_probe_unlink(&tk->tp); in unregister_trace_kprobe()
588 static int append_trace_kprobe(struct trace_kprobe *tk, struct trace_kprobe *to) in append_trace_kprobe() argument
592 ret = trace_probe_compare_arg_type(&tk->tp, &to->tp); in append_trace_kprobe()
599 if (trace_kprobe_has_same_kprobe(to, tk)) { in append_trace_kprobe()
606 ret = trace_probe_append(&tk->tp, &to->tp); in append_trace_kprobe()
611 ret = __register_trace_kprobe(tk); in append_trace_kprobe()
612 if (ret == -ENOENT && !trace_kprobe_module_exist(tk)) { in append_trace_kprobe()
618 trace_probe_unlink(&tk->tp); in append_trace_kprobe()
620 dyn_event_add(&tk->devent); in append_trace_kprobe()
626 static int register_trace_kprobe(struct trace_kprobe *tk) in register_trace_kprobe() argument
633 old_tk = find_trace_kprobe(trace_probe_name(&tk->tp), in register_trace_kprobe()
634 trace_probe_group_name(&tk->tp)); in register_trace_kprobe()
636 if (trace_kprobe_is_return(tk) != trace_kprobe_is_return(old_tk)) { in register_trace_kprobe()
641 ret = append_trace_kprobe(tk, old_tk); in register_trace_kprobe()
647 ret = register_kprobe_event(tk); in register_trace_kprobe()
654 ret = __register_trace_kprobe(tk); in register_trace_kprobe()
655 if (ret == -ENOENT && !trace_kprobe_module_exist(tk)) { in register_trace_kprobe()
661 unregister_kprobe_event(tk); in register_trace_kprobe()
663 dyn_event_add(&tk->devent); in register_trace_kprobe()
676 struct trace_kprobe *tk; in trace_kprobe_module_callback() local
684 for_each_trace_kprobe(tk, pos) { in trace_kprobe_module_callback()
685 if (trace_kprobe_within_module(tk, mod)) { in trace_kprobe_module_callback()
687 __unregister_trace_kprobe(tk); in trace_kprobe_module_callback()
688 ret = __register_trace_kprobe(tk); in trace_kprobe_module_callback()
691 trace_probe_name(&tk->tp), in trace_kprobe_module_callback()
739 struct trace_kprobe *tk = NULL; in trace_kprobe_create() local
857 tk = alloc_trace_kprobe(group, event, addr, symbol, offset, maxactive, in trace_kprobe_create()
859 if (IS_ERR(tk)) { in trace_kprobe_create()
860 ret = PTR_ERR(tk); in trace_kprobe_create()
876 ret = traceprobe_parse_probe_arg(&tk->tp, i, tmp, flags); in trace_kprobe_create()
882 ret = traceprobe_set_print_fmt(&tk->tp, is_return); in trace_kprobe_create()
886 ret = register_trace_kprobe(tk); in trace_kprobe_create()
906 free_trace_kprobe(tk); in trace_kprobe_create()
1090 struct trace_kprobe *tk = to_trace_kprobe(ev); in trace_kprobe_release() local
1091 int ret = unregister_trace_kprobe(tk); in trace_kprobe_release()
1094 free_trace_kprobe(tk); in trace_kprobe_release()
1100 struct trace_kprobe *tk = to_trace_kprobe(ev); in trace_kprobe_show() local
1103 seq_putc(m, trace_kprobe_is_return(tk) ? 'r' : 'p'); in trace_kprobe_show()
1104 if (trace_kprobe_is_return(tk) && tk->rp.maxactive) in trace_kprobe_show()
1105 seq_printf(m, "%d", tk->rp.maxactive); in trace_kprobe_show()
1106 seq_printf(m, ":%s/%s", trace_probe_group_name(&tk->tp), in trace_kprobe_show()
1107 trace_probe_name(&tk->tp)); in trace_kprobe_show()
1109 if (!tk->symbol) in trace_kprobe_show()
1110 seq_printf(m, " 0x%p", tk->rp.kp.addr); in trace_kprobe_show()
1111 else if (tk->rp.kp.offset) in trace_kprobe_show()
1112 seq_printf(m, " %s+%u", trace_kprobe_symbol(tk), in trace_kprobe_show()
1113 tk->rp.kp.offset); in trace_kprobe_show()
1115 seq_printf(m, " %s", trace_kprobe_symbol(tk)); in trace_kprobe_show()
1117 for (i = 0; i < tk->tp.nr_args; i++) in trace_kprobe_show()
1118 seq_printf(m, " %s=%s", tk->tp.args[i].name, tk->tp.args[i].comm); in trace_kprobe_show()
1178 struct trace_kprobe *tk; in probes_profile_seq_show() local
1183 tk = to_trace_kprobe(ev); in probes_profile_seq_show()
1185 trace_probe_name(&tk->tp), in probes_profile_seq_show()
1186 trace_kprobe_nhit(tk), in probes_profile_seq_show()
1187 tk->rp.kp.nmissed); in probes_profile_seq_show()
1373 __kprobe_trace_func(struct trace_kprobe *tk, struct pt_regs *regs, in NOKPROBE_SYMBOL()
1377 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in NOKPROBE_SYMBOL()
1390 dsize = __get_data_size(&tk->tp, regs); in NOKPROBE_SYMBOL()
1395 sizeof(*entry) + tk->tp.size + dsize, in NOKPROBE_SYMBOL()
1402 entry->ip = (unsigned long)tk->rp.kp.addr; in NOKPROBE_SYMBOL()
1403 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in NOKPROBE_SYMBOL()
1409 kprobe_trace_func(struct trace_kprobe *tk, struct pt_regs *regs) in kprobe_trace_func() argument
1413 trace_probe_for_each_link_rcu(link, &tk->tp) in kprobe_trace_func()
1414 __kprobe_trace_func(tk, regs, link->file); in kprobe_trace_func()
1420 __kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in __kretprobe_trace_func() argument
1426 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in __kretprobe_trace_func()
1438 dsize = __get_data_size(&tk->tp, regs); in __kretprobe_trace_func()
1442 sizeof(*entry) + tk->tp.size + dsize, in __kretprobe_trace_func()
1449 entry->func = (unsigned long)tk->rp.kp.addr; in __kretprobe_trace_func()
1451 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in __kretprobe_trace_func()
1457 kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in kretprobe_trace_func() argument
1462 trace_probe_for_each_link_rcu(link, &tk->tp) in kretprobe_trace_func()
1463 __kretprobe_trace_func(tk, ri, regs, link->file); in kretprobe_trace_func()
1570 kprobe_perf_func(struct trace_kprobe *tk, struct pt_regs *regs) in kprobe_perf_func() argument
1572 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in kprobe_perf_func()
1599 dsize = __get_data_size(&tk->tp, regs); in kprobe_perf_func()
1600 __size = sizeof(*entry) + tk->tp.size + dsize; in kprobe_perf_func()
1608 entry->ip = (unsigned long)tk->rp.kp.addr; in kprobe_perf_func()
1610 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in kprobe_perf_func()
1619 kretprobe_perf_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in kretprobe_perf_func() argument
1622 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in kretprobe_perf_func()
1635 dsize = __get_data_size(&tk->tp, regs); in kretprobe_perf_func()
1636 __size = sizeof(*entry) + tk->tp.size + dsize; in kretprobe_perf_func()
1644 entry->func = (unsigned long)tk->rp.kp.addr; in kretprobe_perf_func()
1646 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in kretprobe_perf_func()
1658 struct trace_kprobe *tk; in bpf_get_kprobe_info() local
1661 tk = find_trace_kprobe(pevent, group); in bpf_get_kprobe_info()
1663 tk = trace_kprobe_primary_from_call(event->tp_event); in bpf_get_kprobe_info()
1664 if (!tk) in bpf_get_kprobe_info()
1667 *fd_type = trace_kprobe_is_return(tk) ? BPF_FD_TYPE_KRETPROBE in bpf_get_kprobe_info()
1669 if (tk->symbol) { in bpf_get_kprobe_info()
1670 *symbol = tk->symbol; in bpf_get_kprobe_info()
1671 *probe_offset = tk->rp.kp.offset; in bpf_get_kprobe_info()
1676 *probe_addr = (unsigned long)tk->rp.kp.addr; in bpf_get_kprobe_info()
1716 struct trace_kprobe *tk = container_of(kp, struct trace_kprobe, rp.kp); in kprobe_dispatcher() local
1719 raw_cpu_inc(*tk->nhit); in kprobe_dispatcher()
1721 if (trace_probe_test_flag(&tk->tp, TP_FLAG_TRACE)) in kprobe_dispatcher()
1722 kprobe_trace_func(tk, regs); in kprobe_dispatcher()
1724 if (trace_probe_test_flag(&tk->tp, TP_FLAG_PROFILE)) in kprobe_dispatcher()
1725 ret = kprobe_perf_func(tk, regs); in kprobe_dispatcher()
1734 struct trace_kprobe *tk = container_of(ri->rp, struct trace_kprobe, rp); in kretprobe_dispatcher() local
1736 raw_cpu_inc(*tk->nhit); in kretprobe_dispatcher()
1738 if (trace_probe_test_flag(&tk->tp, TP_FLAG_TRACE)) in kretprobe_dispatcher()
1739 kretprobe_trace_func(tk, ri, regs); in kretprobe_dispatcher()
1741 if (trace_probe_test_flag(&tk->tp, TP_FLAG_PROFILE)) in kretprobe_dispatcher()
1742 kretprobe_perf_func(tk, ri, regs); in kretprobe_dispatcher()
1768 static inline void init_trace_event_call(struct trace_kprobe *tk) in init_trace_event_call() argument
1770 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in init_trace_event_call()
1772 if (trace_kprobe_is_return(tk)) { in init_trace_event_call()
1784 static int register_kprobe_event(struct trace_kprobe *tk) in register_kprobe_event() argument
1786 init_trace_event_call(tk); in register_kprobe_event()
1788 return trace_probe_register_event_call(&tk->tp); in register_kprobe_event()
1791 static int unregister_kprobe_event(struct trace_kprobe *tk) in unregister_kprobe_event() argument
1793 return trace_probe_unregister_event_call(&tk->tp); in unregister_kprobe_event()
1802 struct trace_kprobe *tk; in create_local_trace_kprobe() local
1813 tk = alloc_trace_kprobe(KPROBE_EVENT_SYSTEM, event, (void *)addr, func, in create_local_trace_kprobe()
1817 if (IS_ERR(tk)) { in create_local_trace_kprobe()
1819 (int)PTR_ERR(tk)); in create_local_trace_kprobe()
1820 return ERR_CAST(tk); in create_local_trace_kprobe()
1823 init_trace_event_call(tk); in create_local_trace_kprobe()
1825 if (traceprobe_set_print_fmt(&tk->tp, trace_kprobe_is_return(tk)) < 0) { in create_local_trace_kprobe()
1830 ret = __register_trace_kprobe(tk); in create_local_trace_kprobe()
1834 return trace_probe_event_call(&tk->tp); in create_local_trace_kprobe()
1836 free_trace_kprobe(tk); in create_local_trace_kprobe()
1842 struct trace_kprobe *tk; in destroy_local_trace_kprobe() local
1844 tk = trace_kprobe_primary_from_call(event_call); in destroy_local_trace_kprobe()
1845 if (unlikely(!tk)) in destroy_local_trace_kprobe()
1848 if (trace_probe_is_enabled(&tk->tp)) { in destroy_local_trace_kprobe()
1853 __unregister_trace_kprobe(tk); in destroy_local_trace_kprobe()
1855 free_trace_kprobe(tk); in destroy_local_trace_kprobe()
1863 struct trace_kprobe *tk; in enable_boot_kprobe_events() local
1867 for_each_trace_kprobe(tk, pos) { in enable_boot_kprobe_events()
1869 if (file->event_call == trace_probe_event_call(&tk->tp)) in enable_boot_kprobe_events()
1951 find_trace_probe_file(struct trace_kprobe *tk, struct trace_array *tr) in find_trace_probe_file() argument
1956 if (file->event_call == trace_probe_event_call(&tk->tp)) in find_trace_probe_file()
1970 struct trace_kprobe *tk; in kprobe_trace_self_tests_init() local
1992 tk = find_trace_kprobe("testprobe", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
1993 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
1997 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
2003 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
2014 tk = find_trace_kprobe("testprobe2", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
2015 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
2019 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
2025 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
2043 tk = find_trace_kprobe("testprobe", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
2044 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
2048 if (trace_kprobe_nhit(tk) != 1) { in kprobe_trace_self_tests_init()
2053 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
2059 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
2062 tk = find_trace_kprobe("testprobe2", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
2063 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
2067 if (trace_kprobe_nhit(tk) != 1) { in kprobe_trace_self_tests_init()
2072 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
2078 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()