• Home
  • Raw
  • Download

Lines Matching refs:rp

59 	struct kretprobe	rp;	/* Use rp.kp for kprobe use */  member
86 return tk->rp.handler != NULL; in trace_kprobe_is_return()
96 return tk->rp.kp.offset; in trace_kprobe_offset()
101 return !!(kprobe_gone(&tk->rp.kp)); in trace_kprobe_has_gone()
148 snprintf(buf, sizeof(buf), "0x%p", tk->rp.kp.addr); in trace_kprobe_match_command_head()
149 else if (tk->rp.kp.offset) in trace_kprobe_match_command_head()
151 trace_kprobe_symbol(tk), tk->rp.kp.offset); in trace_kprobe_match_command_head()
184 return !(list_empty(&tk->rp.kp.list) && in trace_kprobe_is_registered()
185 hlist_unhashed(&tk->rp.kp.hlist)); in trace_kprobe_is_registered()
198 addr += tk->rp.kp.offset; in trace_kprobe_address()
200 addr = (unsigned long)tk->rp.kp.addr; in trace_kprobe_address()
221 return tk ? (kprobe_on_func_entry(tk->rp.kp.addr, in trace_kprobe_on_func_entry()
222 tk->rp.kp.addr ? NULL : tk->rp.kp.symbol_name, in trace_kprobe_on_func_entry()
223 tk->rp.kp.addr ? 0 : tk->rp.kp.offset) == 0) : false; in trace_kprobe_on_func_entry()
277 tk->rp.kp.symbol_name = tk->symbol; in alloc_trace_kprobe()
278 tk->rp.kp.offset = offs; in alloc_trace_kprobe()
280 tk->rp.kp.addr = addr; in alloc_trace_kprobe()
283 tk->rp.handler = kretprobe_dispatcher; in alloc_trace_kprobe()
285 tk->rp.kp.pre_handler = kprobe_dispatcher; in alloc_trace_kprobe()
287 tk->rp.maxactive = maxactive; in alloc_trace_kprobe()
288 INIT_HLIST_NODE(&tk->rp.kp.hlist); in alloc_trace_kprobe()
289 INIT_LIST_HEAD(&tk->rp.kp.list); in alloc_trace_kprobe()
321 ret = enable_kretprobe(&tk->rp); in __enable_trace_kprobe()
323 ret = enable_kprobe(&tk->rp.kp); in __enable_trace_kprobe()
339 disable_kretprobe(&tk->rp); in __disable_trace_kprobe()
341 disable_kprobe(&tk->rp.kp); in __disable_trace_kprobe()
504 tk->rp.kp.flags &= ~KPROBE_FLAG_DISABLED; in __register_trace_kprobe()
506 tk->rp.kp.flags |= KPROBE_FLAG_DISABLED; in __register_trace_kprobe()
509 ret = register_kretprobe(&tk->rp); in __register_trace_kprobe()
511 ret = register_kprobe(&tk->rp.kp); in __register_trace_kprobe()
521 unregister_kretprobe(&tk->rp); in __unregister_trace_kprobe()
523 unregister_kprobe(&tk->rp.kp); in __unregister_trace_kprobe()
525 INIT_HLIST_NODE(&tk->rp.kp.hlist); in __unregister_trace_kprobe()
526 INIT_LIST_HEAD(&tk->rp.kp.list); in __unregister_trace_kprobe()
527 if (tk->rp.kp.symbol_name) in __unregister_trace_kprobe()
528 tk->rp.kp.addr = NULL; in __unregister_trace_kprobe()
1161 if (trace_kprobe_is_return(tk) && tk->rp.maxactive) in trace_kprobe_show()
1162 seq_printf(m, "%d", tk->rp.maxactive); in trace_kprobe_show()
1167 seq_printf(m, " 0x%p", tk->rp.kp.addr); in trace_kprobe_show()
1168 else if (tk->rp.kp.offset) in trace_kprobe_show()
1170 tk->rp.kp.offset); in trace_kprobe_show()
1243 tk->rp.kp.nmissed + tk->rp.nmissed : tk->rp.kp.nmissed; in probes_profile_seq_show()
1411 entry->ip = (unsigned long)tk->rp.kp.addr; in NOKPROBE_SYMBOL()
1457 entry->func = (unsigned long)tk->rp.kp.addr; in __kretprobe_trace_func()
1616 entry->ip = (unsigned long)tk->rp.kp.addr; in kprobe_perf_func()
1652 entry->func = (unsigned long)tk->rp.kp.addr; in kretprobe_perf_func()
1679 *probe_offset = tk->rp.kp.offset; in bpf_get_kprobe_info()
1684 *probe_addr = (unsigned long)tk->rp.kp.addr; in bpf_get_kprobe_info()
1724 struct trace_kprobe *tk = container_of(kp, struct trace_kprobe, rp.kp); in kprobe_dispatcher()
1742 struct kretprobe *rp = get_kretprobe(ri); in kretprobe_dispatcher() local
1750 if (unlikely(!rp)) in kretprobe_dispatcher()
1753 tk = container_of(rp, struct trace_kprobe, rp); in kretprobe_dispatcher()