Lines Matching refs:tk
87 static nokprobe_inline bool trace_kprobe_is_return(struct trace_kprobe *tk) in trace_kprobe_is_return() argument
89 return tk->rp.handler != NULL; in trace_kprobe_is_return()
92 static nokprobe_inline const char *trace_kprobe_symbol(struct trace_kprobe *tk) in trace_kprobe_symbol() argument
94 return tk->symbol ? tk->symbol : "unknown"; in trace_kprobe_symbol()
97 static nokprobe_inline unsigned long trace_kprobe_offset(struct trace_kprobe *tk) in trace_kprobe_offset() argument
99 return tk->rp.kp.offset; in trace_kprobe_offset()
102 static nokprobe_inline bool trace_kprobe_has_gone(struct trace_kprobe *tk) in trace_kprobe_has_gone() argument
104 return !!(kprobe_gone(&tk->rp.kp)); in trace_kprobe_has_gone()
107 static nokprobe_inline bool trace_kprobe_within_module(struct trace_kprobe *tk, in trace_kprobe_within_module() argument
111 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); 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()
438 static bool within_notrace_func(struct trace_kprobe *tk) in within_notrace_func() argument
442 addr = trace_kprobe_address(tk); in within_notrace_func()
456 #define within_notrace_func(tk) (false) argument
460 static int __register_trace_kprobe(struct trace_kprobe *tk) in __register_trace_kprobe() argument
468 if (trace_kprobe_is_registered(tk)) in __register_trace_kprobe()
471 if (within_notrace_func(tk)) { in __register_trace_kprobe()
473 trace_kprobe_symbol(tk)); in __register_trace_kprobe()
477 for (i = 0; i < tk->tp.nr_args; i++) { in __register_trace_kprobe()
478 ret = traceprobe_update_arg(&tk->tp.args[i]); in __register_trace_kprobe()
484 if (trace_probe_is_enabled(&tk->tp)) in __register_trace_kprobe()
485 tk->rp.kp.flags &= ~KPROBE_FLAG_DISABLED; in __register_trace_kprobe()
487 tk->rp.kp.flags |= KPROBE_FLAG_DISABLED; in __register_trace_kprobe()
489 if (trace_kprobe_is_return(tk)) in __register_trace_kprobe()
490 ret = register_kretprobe(&tk->rp); in __register_trace_kprobe()
492 ret = register_kprobe(&tk->rp.kp); in __register_trace_kprobe()
498 static void __unregister_trace_kprobe(struct trace_kprobe *tk) in __unregister_trace_kprobe() argument
500 if (trace_kprobe_is_registered(tk)) { in __unregister_trace_kprobe()
501 if (trace_kprobe_is_return(tk)) in __unregister_trace_kprobe()
502 unregister_kretprobe(&tk->rp); in __unregister_trace_kprobe()
504 unregister_kprobe(&tk->rp.kp); in __unregister_trace_kprobe()
506 INIT_HLIST_NODE(&tk->rp.kp.hlist); in __unregister_trace_kprobe()
507 INIT_LIST_HEAD(&tk->rp.kp.list); in __unregister_trace_kprobe()
508 if (tk->rp.kp.symbol_name) in __unregister_trace_kprobe()
509 tk->rp.kp.addr = NULL; in __unregister_trace_kprobe()
514 static int unregister_trace_kprobe(struct trace_kprobe *tk) in unregister_trace_kprobe() argument
517 if (trace_probe_has_sibling(&tk->tp)) in unregister_trace_kprobe()
521 if (trace_probe_is_enabled(&tk->tp)) in unregister_trace_kprobe()
525 if (unregister_kprobe_event(tk)) in unregister_trace_kprobe()
529 __unregister_trace_kprobe(tk); in unregister_trace_kprobe()
530 dyn_event_remove(&tk->devent); in unregister_trace_kprobe()
531 trace_probe_unlink(&tk->tp); in unregister_trace_kprobe()
567 static int append_trace_kprobe(struct trace_kprobe *tk, struct trace_kprobe *to) in append_trace_kprobe() argument
571 ret = trace_probe_compare_arg_type(&tk->tp, &to->tp); in append_trace_kprobe()
578 if (trace_kprobe_has_same_kprobe(to, tk)) { in append_trace_kprobe()
585 ret = trace_probe_append(&tk->tp, &to->tp); in append_trace_kprobe()
590 ret = __register_trace_kprobe(tk); in append_trace_kprobe()
591 if (ret == -ENOENT && !trace_kprobe_module_exist(tk)) { in append_trace_kprobe()
597 trace_probe_unlink(&tk->tp); in append_trace_kprobe()
599 dyn_event_add(&tk->devent); in append_trace_kprobe()
605 static int register_trace_kprobe(struct trace_kprobe *tk) in register_trace_kprobe() argument
612 old_tk = find_trace_kprobe(trace_probe_name(&tk->tp), in register_trace_kprobe()
613 trace_probe_group_name(&tk->tp)); in register_trace_kprobe()
615 if (trace_kprobe_is_return(tk) != trace_kprobe_is_return(old_tk)) { in register_trace_kprobe()
620 ret = append_trace_kprobe(tk, old_tk); in register_trace_kprobe()
626 ret = register_kprobe_event(tk); in register_trace_kprobe()
633 ret = __register_trace_kprobe(tk); in register_trace_kprobe()
634 if (ret == -ENOENT && !trace_kprobe_module_exist(tk)) { in register_trace_kprobe()
640 unregister_kprobe_event(tk); in register_trace_kprobe()
642 dyn_event_add(&tk->devent); in register_trace_kprobe()
655 struct trace_kprobe *tk; in trace_kprobe_module_callback() local
663 for_each_trace_kprobe(tk, pos) { in trace_kprobe_module_callback()
664 if (trace_kprobe_within_module(tk, mod)) { in trace_kprobe_module_callback()
666 __unregister_trace_kprobe(tk); in trace_kprobe_module_callback()
667 ret = __register_trace_kprobe(tk); in trace_kprobe_module_callback()
670 trace_probe_name(&tk->tp), in trace_kprobe_module_callback()
715 struct trace_kprobe *tk = NULL; in trace_kprobe_create() local
820 tk = alloc_trace_kprobe(group, event, addr, symbol, offset, maxactive, in trace_kprobe_create()
822 if (IS_ERR(tk)) { in trace_kprobe_create()
823 ret = PTR_ERR(tk); in trace_kprobe_create()
839 ret = traceprobe_parse_probe_arg(&tk->tp, i, tmp, flags); in trace_kprobe_create()
845 ret = traceprobe_set_print_fmt(&tk->tp, is_return); in trace_kprobe_create()
849 ret = register_trace_kprobe(tk); in trace_kprobe_create()
869 free_trace_kprobe(tk); in trace_kprobe_create()
886 struct trace_kprobe *tk = to_trace_kprobe(ev); in trace_kprobe_release() local
887 int ret = unregister_trace_kprobe(tk); in trace_kprobe_release()
890 free_trace_kprobe(tk); in trace_kprobe_release()
896 struct trace_kprobe *tk = to_trace_kprobe(ev); in trace_kprobe_show() local
899 seq_putc(m, trace_kprobe_is_return(tk) ? 'r' : 'p'); in trace_kprobe_show()
900 seq_printf(m, ":%s/%s", trace_probe_group_name(&tk->tp), in trace_kprobe_show()
901 trace_probe_name(&tk->tp)); in trace_kprobe_show()
903 if (!tk->symbol) in trace_kprobe_show()
904 seq_printf(m, " 0x%p", tk->rp.kp.addr); in trace_kprobe_show()
905 else if (tk->rp.kp.offset) in trace_kprobe_show()
906 seq_printf(m, " %s+%u", trace_kprobe_symbol(tk), in trace_kprobe_show()
907 tk->rp.kp.offset); in trace_kprobe_show()
909 seq_printf(m, " %s", trace_kprobe_symbol(tk)); in trace_kprobe_show()
911 for (i = 0; i < tk->tp.nr_args; i++) in trace_kprobe_show()
912 seq_printf(m, " %s=%s", tk->tp.args[i].name, tk->tp.args[i].comm); in trace_kprobe_show()
972 struct trace_kprobe *tk; in probes_profile_seq_show() local
977 tk = to_trace_kprobe(ev); in probes_profile_seq_show()
979 trace_probe_name(&tk->tp), in probes_profile_seq_show()
980 trace_kprobe_nhit(tk), in probes_profile_seq_show()
981 tk->rp.kp.nmissed); in probes_profile_seq_show()
1153 __kprobe_trace_func(struct trace_kprobe *tk, struct pt_regs *regs, in NOKPROBE_SYMBOL()
1161 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in NOKPROBE_SYMBOL()
1171 dsize = __get_data_size(&tk->tp, regs); in NOKPROBE_SYMBOL()
1172 size = sizeof(*entry) + tk->tp.size + dsize; in NOKPROBE_SYMBOL()
1181 entry->ip = (unsigned long)tk->rp.kp.addr; in NOKPROBE_SYMBOL()
1182 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in NOKPROBE_SYMBOL()
1189 kprobe_trace_func(struct trace_kprobe *tk, struct pt_regs *regs) in kprobe_trace_func() argument
1193 trace_probe_for_each_link_rcu(link, &tk->tp) in kprobe_trace_func()
1194 __kprobe_trace_func(tk, regs, link->file); in kprobe_trace_func()
1200 __kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in __kretprobe_trace_func() argument
1209 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in __kretprobe_trace_func()
1219 dsize = __get_data_size(&tk->tp, regs); in __kretprobe_trace_func()
1220 size = sizeof(*entry) + tk->tp.size + dsize; in __kretprobe_trace_func()
1229 entry->func = (unsigned long)tk->rp.kp.addr; in __kretprobe_trace_func()
1231 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in __kretprobe_trace_func()
1238 kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in kretprobe_trace_func() argument
1243 trace_probe_for_each_link_rcu(link, &tk->tp) in kretprobe_trace_func()
1244 __kretprobe_trace_func(tk, ri, regs, link->file); in kretprobe_trace_func()
1351 kprobe_perf_func(struct trace_kprobe *tk, struct pt_regs *regs) in kprobe_perf_func() argument
1353 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in kprobe_perf_func()
1380 dsize = __get_data_size(&tk->tp, regs); in kprobe_perf_func()
1381 __size = sizeof(*entry) + tk->tp.size + dsize; in kprobe_perf_func()
1389 entry->ip = (unsigned long)tk->rp.kp.addr; in kprobe_perf_func()
1391 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in kprobe_perf_func()
1400 kretprobe_perf_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in kretprobe_perf_func() argument
1403 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in kretprobe_perf_func()
1416 dsize = __get_data_size(&tk->tp, regs); in kretprobe_perf_func()
1417 __size = sizeof(*entry) + tk->tp.size + dsize; in kretprobe_perf_func()
1425 entry->func = (unsigned long)tk->rp.kp.addr; in kretprobe_perf_func()
1427 store_trace_args(&entry[1], &tk->tp, regs, sizeof(*entry), dsize); in kretprobe_perf_func()
1439 struct trace_kprobe *tk; in bpf_get_kprobe_info() local
1442 tk = find_trace_kprobe(pevent, group); in bpf_get_kprobe_info()
1444 tk = event->tp_event->data; in bpf_get_kprobe_info()
1445 if (!tk) in bpf_get_kprobe_info()
1448 *fd_type = trace_kprobe_is_return(tk) ? BPF_FD_TYPE_KRETPROBE in bpf_get_kprobe_info()
1450 if (tk->symbol) { in bpf_get_kprobe_info()
1451 *symbol = tk->symbol; in bpf_get_kprobe_info()
1452 *probe_offset = tk->rp.kp.offset; in bpf_get_kprobe_info()
1457 *probe_addr = (unsigned long)tk->rp.kp.addr; in bpf_get_kprobe_info()
1497 struct trace_kprobe *tk = container_of(kp, struct trace_kprobe, rp.kp); in kprobe_dispatcher() local
1500 raw_cpu_inc(*tk->nhit); in kprobe_dispatcher()
1502 if (trace_probe_test_flag(&tk->tp, TP_FLAG_TRACE)) in kprobe_dispatcher()
1503 kprobe_trace_func(tk, regs); in kprobe_dispatcher()
1505 if (trace_probe_test_flag(&tk->tp, TP_FLAG_PROFILE)) in kprobe_dispatcher()
1506 ret = kprobe_perf_func(tk, regs); in kprobe_dispatcher()
1515 struct trace_kprobe *tk = container_of(ri->rp, struct trace_kprobe, rp); in kretprobe_dispatcher() local
1517 raw_cpu_inc(*tk->nhit); in kretprobe_dispatcher()
1519 if (trace_probe_test_flag(&tk->tp, TP_FLAG_TRACE)) in kretprobe_dispatcher()
1520 kretprobe_trace_func(tk, ri, regs); in kretprobe_dispatcher()
1522 if (trace_probe_test_flag(&tk->tp, TP_FLAG_PROFILE)) in kretprobe_dispatcher()
1523 kretprobe_perf_func(tk, ri, regs); in kretprobe_dispatcher()
1537 static inline void init_trace_event_call(struct trace_kprobe *tk) in init_trace_event_call() argument
1539 struct trace_event_call *call = trace_probe_event_call(&tk->tp); in init_trace_event_call()
1541 if (trace_kprobe_is_return(tk)) { in init_trace_event_call()
1553 static int register_kprobe_event(struct trace_kprobe *tk) in register_kprobe_event() argument
1555 init_trace_event_call(tk); in register_kprobe_event()
1557 return trace_probe_register_event_call(&tk->tp); in register_kprobe_event()
1560 static int unregister_kprobe_event(struct trace_kprobe *tk) in unregister_kprobe_event() argument
1562 return trace_probe_unregister_event_call(&tk->tp); in unregister_kprobe_event()
1571 struct trace_kprobe *tk; in create_local_trace_kprobe() local
1582 tk = alloc_trace_kprobe(KPROBE_EVENT_SYSTEM, event, (void *)addr, func, in create_local_trace_kprobe()
1586 if (IS_ERR(tk)) { in create_local_trace_kprobe()
1588 (int)PTR_ERR(tk)); in create_local_trace_kprobe()
1589 return ERR_CAST(tk); in create_local_trace_kprobe()
1592 init_trace_event_call(tk); in create_local_trace_kprobe()
1594 if (traceprobe_set_print_fmt(&tk->tp, trace_kprobe_is_return(tk)) < 0) { in create_local_trace_kprobe()
1599 ret = __register_trace_kprobe(tk); in create_local_trace_kprobe()
1603 return trace_probe_event_call(&tk->tp); in create_local_trace_kprobe()
1605 free_trace_kprobe(tk); in create_local_trace_kprobe()
1611 struct trace_kprobe *tk; in destroy_local_trace_kprobe() local
1613 tk = trace_kprobe_primary_from_call(event_call); in destroy_local_trace_kprobe()
1614 if (unlikely(!tk)) in destroy_local_trace_kprobe()
1617 if (trace_probe_is_enabled(&tk->tp)) { in destroy_local_trace_kprobe()
1622 __unregister_trace_kprobe(tk); in destroy_local_trace_kprobe()
1624 free_trace_kprobe(tk); in destroy_local_trace_kprobe()
1632 struct trace_kprobe *tk; in enable_boot_kprobe_events() local
1636 for_each_trace_kprobe(tk, pos) { in enable_boot_kprobe_events()
1638 if (file->event_call == trace_probe_event_call(&tk->tp)) in enable_boot_kprobe_events()
1709 find_trace_probe_file(struct trace_kprobe *tk, struct trace_array *tr) in find_trace_probe_file() argument
1714 if (file->event_call == trace_probe_event_call(&tk->tp)) in find_trace_probe_file()
1728 struct trace_kprobe *tk; in kprobe_trace_self_tests_init() local
1750 tk = find_trace_kprobe("testprobe", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
1751 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
1755 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
1761 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
1772 tk = find_trace_kprobe("testprobe2", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
1773 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
1777 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
1783 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
1801 tk = find_trace_kprobe("testprobe", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
1802 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
1806 if (trace_kprobe_nhit(tk) != 1) { in kprobe_trace_self_tests_init()
1811 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
1817 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()
1820 tk = find_trace_kprobe("testprobe2", KPROBE_EVENT_SYSTEM); in kprobe_trace_self_tests_init()
1821 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init()
1825 if (trace_kprobe_nhit(tk) != 1) { in kprobe_trace_self_tests_init()
1830 file = find_trace_probe_file(tk, top_trace_array()); in kprobe_trace_self_tests_init()
1836 trace_probe_event_call(&tk->tp), file); in kprobe_trace_self_tests_init()