Home
last modified time | relevance | path

Searched refs:rp (Results 1 – 4 of 4) sorted by relevance

/kernel/
Dkprobes.c1095 struct kretprobe *rp = ri->rp; in recycle_rp_inst() local
1100 if (likely(rp)) { in recycle_rp_inst()
1101 raw_spin_lock(&rp->lock); in recycle_rp_inst()
1102 hlist_add_head(&ri->hlist, &rp->free_instances); in recycle_rp_inst()
1103 raw_spin_unlock(&rp->lock); in recycle_rp_inst()
1210 static inline void free_rp_inst(struct kretprobe *rp) in free_rp_inst() argument
1215 hlist_for_each_entry_safe(ri, next, &rp->free_instances, hlist) { in free_rp_inst()
1221 static void cleanup_rp_inst(struct kretprobe *rp) in cleanup_rp_inst() argument
1233 if (ri->rp == rp) in cleanup_rp_inst()
1234 ri->rp = NULL; in cleanup_rp_inst()
[all …]
Dtest_kprobes.c256 static struct kretprobe rp = { variable
266 ret = register_kretprobe(&rp); in test_kretprobe()
273 unregister_kretprobe(&rp); in test_kretprobe()
308 struct kretprobe *rps[2] = {&rp, &rp2}; in test_kretprobes()
311 rp.kp.addr = NULL; in test_kretprobes()
312 rp.kp.flags = 0; in test_kretprobes()
/kernel/trace/
Dtrace_kprobe.c32 struct kretprobe rp; /* Use rp.kp for kprobe use */ member
45 return tk->rp.handler != NULL; in trace_kprobe_is_return()
55 return tk->rp.kp.offset; in trace_kprobe_offset()
60 return !!(kprobe_gone(&tk->rp.kp)); in trace_kprobe_has_gone()
281 tk->rp.kp.symbol_name = tk->symbol; in alloc_trace_kprobe()
282 tk->rp.kp.offset = offs; in alloc_trace_kprobe()
284 tk->rp.kp.addr = addr; in alloc_trace_kprobe()
287 tk->rp.handler = kretprobe_dispatcher; in alloc_trace_kprobe()
289 tk->rp.kp.pre_handler = kprobe_dispatcher; in alloc_trace_kprobe()
371 ret = enable_kretprobe(&tk->rp); in enable_trace_kprobe()
[all …]
/kernel/rcu/
Drcutorture.c305 rcu_torture_pipe_update_one(struct rcu_torture *rp) in rcu_torture_pipe_update_one() argument
309 i = rp->rtort_pipe_count; in rcu_torture_pipe_update_one()
313 if (++rp->rtort_pipe_count >= RCU_TORTURE_PIPE_LEN) { in rcu_torture_pipe_update_one()
314 rp->rtort_mbtest = 0; in rcu_torture_pipe_update_one()
327 struct rcu_torture *rp; in rcu_torture_pipe_update() local
332 list_for_each_entry_safe(rp, rp1, &rcu_torture_removed, rtort_free) { in rcu_torture_pipe_update()
333 if (rcu_torture_pipe_update_one(rp)) { in rcu_torture_pipe_update()
334 list_del(&rp->rtort_free); in rcu_torture_pipe_update()
335 rcu_torture_free(rp); in rcu_torture_pipe_update()
343 struct rcu_torture *rp = container_of(p, struct rcu_torture, rtort_rcu); in rcu_torture_cb() local
[all …]