Lines Matching refs:kp

95 	return tk->rp.kp.offset;  in trace_kprobe_offset()
100 return kprobe_gone(&tk->rp.kp); in trace_kprobe_has_gone()
147 snprintf(buf, sizeof(buf), "0x%p", tk->rp.kp.addr); in trace_kprobe_match_command_head()
148 else if (tk->rp.kp.offset) in trace_kprobe_match_command_head()
150 trace_kprobe_symbol(tk), tk->rp.kp.offset); in trace_kprobe_match_command_head()
183 return !(list_empty(&tk->rp.kp.list) && in trace_kprobe_is_registered()
184 hlist_unhashed(&tk->rp.kp.hlist)); in trace_kprobe_is_registered()
197 addr += tk->rp.kp.offset; in trace_kprobe_address()
199 addr = (unsigned long)tk->rp.kp.addr; in trace_kprobe_address()
220 return tk ? (kprobe_on_func_entry(tk->rp.kp.addr, in trace_kprobe_on_func_entry()
221 tk->rp.kp.addr ? NULL : tk->rp.kp.symbol_name, in trace_kprobe_on_func_entry()
222 tk->rp.kp.addr ? 0 : tk->rp.kp.offset) == 0) : false; in trace_kprobe_on_func_entry()
236 static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs);
276 tk->rp.kp.symbol_name = tk->symbol; in alloc_trace_kprobe()
277 tk->rp.kp.offset = offs; in alloc_trace_kprobe()
279 tk->rp.kp.addr = addr; in alloc_trace_kprobe()
284 tk->rp.kp.pre_handler = kprobe_dispatcher; in alloc_trace_kprobe()
287 INIT_HLIST_NODE(&tk->rp.kp.hlist); in alloc_trace_kprobe()
288 INIT_LIST_HEAD(&tk->rp.kp.list); in alloc_trace_kprobe()
322 ret = enable_kprobe(&tk->rp.kp); in __enable_trace_kprobe()
340 disable_kprobe(&tk->rp.kp); in __disable_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()
510 ret = register_kprobe(&tk->rp.kp); in __register_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()
1109 seq_printf(m, " 0x%p", tk->rp.kp.addr); in trace_kprobe_show()
1110 else if (tk->rp.kp.offset) in trace_kprobe_show()
1112 tk->rp.kp.offset); in trace_kprobe_show()
1186 tk->rp.kp.nmissed); in probes_profile_seq_show()
1401 entry->ip = (unsigned long)tk->rp.kp.addr; in NOKPROBE_SYMBOL()
1447 entry->func = (unsigned long)tk->rp.kp.addr; in __kretprobe_trace_func()
1606 entry->ip = (unsigned long)tk->rp.kp.addr; in kprobe_perf_func()
1642 entry->func = (unsigned long)tk->rp.kp.addr; in kretprobe_perf_func()
1669 *probe_offset = tk->rp.kp.offset; in bpf_get_kprobe_info()
1674 *probe_addr = (unsigned long)tk->rp.kp.addr; in bpf_get_kprobe_info()
1712 static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs) in kprobe_dispatcher() argument
1714 struct trace_kprobe *tk = container_of(kp, struct trace_kprobe, rp.kp); in kprobe_dispatcher()