Lines Matching refs:kp
15 static int fei_kprobe_handler(struct kprobe *kp, struct pt_regs *regs);
17 static void fei_post_handler(struct kprobe *kp, struct pt_regs *regs, in fei_post_handler() argument
28 struct kprobe kp; member
62 attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL); in fei_attr_new()
63 if (!attr->kp.symbol_name) { in fei_attr_new()
67 attr->kp.pre_handler = fei_kprobe_handler; in fei_attr_new()
68 attr->kp.post_handler = fei_post_handler; in fei_attr_new()
78 kfree(attr->kp.symbol_name); in fei_attr_free()
88 if (!strcmp(attr->kp.symbol_name, sym)) in fei_attr_lookup()
124 if (attr->kp.addr) { in fei_retval_set()
125 if (adjust_error_retval((unsigned long)attr->kp.addr, in fei_retval_set()
159 dir = debugfs_create_dir(attr->kp.symbol_name, fei_debugfs_dir); in fei_debugfs_add_attr()
168 dir = debugfs_lookup(attr->kp.symbol_name, fei_debugfs_dir); in fei_debugfs_remove_attr()
172 static int fei_kprobe_handler(struct kprobe *kp, struct pt_regs *regs) in fei_kprobe_handler() argument
174 struct fei_attr *attr = container_of(kp, struct fei_attr, kp); in fei_kprobe_handler()
206 seq_printf(m, "%ps\n", attr->kp.addr); in fei_seq_show()
225 unregister_kprobe(&attr->kp); in fei_attr_remove()
300 ret = register_kprobe(&attr->kp); in fei_write()