Lines Matching refs:addr
61 #define kprobe_lookup_name(name, addr) \ argument
62 addr = ((kprobe_opcode_t *)(kallsyms_lookup_name(name)))
307 struct kprobe __kprobes *get_kprobe(void *addr) in get_kprobe() argument
313 head = &kprobe_table[hash_ptr(addr, KPROBE_HASH_BITS)]; in get_kprobe()
315 if (p->addr == addr) in get_kprobe()
545 ap->addr = p->addr; in add_aggr_kprobe()
608 static int __kprobes in_kprobes_functions(unsigned long addr) in in_kprobes_functions() argument
612 if (addr >= (unsigned long)__kprobes_text_start && in in_kprobes_functions()
613 addr < (unsigned long)__kprobes_text_end) in in_kprobes_functions()
621 if (addr >= kb->start_addr && in in_kprobes_functions()
622 addr < (kb->start_addr + kb->range)) in in_kprobes_functions()
635 kprobe_opcode_t *addr = p->addr; in kprobe_addr() local
637 if (addr) in kprobe_addr()
639 kprobe_lookup_name(p->symbol_name, addr); in kprobe_addr()
642 if (!addr) in kprobe_addr()
644 return (kprobe_opcode_t *)(((char *)addr) + p->offset); in kprobe_addr()
652 kprobe_opcode_t *addr; in register_kprobe() local
654 addr = kprobe_addr(p); in register_kprobe()
655 if (!addr) in register_kprobe()
657 p->addr = addr; in register_kprobe()
660 if (!__kernel_text_address((unsigned long) p->addr) || in register_kprobe()
661 in_kprobes_functions((unsigned long) p->addr)) { in register_kprobe()
670 probed_mod = __module_text_address((unsigned long) p->addr); in register_kprobe()
684 if (within_module_init((unsigned long)p->addr, probed_mod) && in register_kprobe()
696 old_p = get_kprobe(p->addr); in register_kprobe()
708 &kprobe_table[hash_ptr(p->addr, KPROBE_HASH_BITS)]); in register_kprobe()
729 old_p = get_kprobe(p->addr); in __unregister_kprobe_top()
814 kps[i]->addr = NULL; in unregister_kprobes()
819 if (kps[i]->addr) in unregister_kprobes()
841 unsigned long addr; in register_jprobes() local
843 addr = arch_deref_entry_point(jp->entry); in register_jprobes()
845 if (!kernel_text_address(addr)) in register_jprobes()
881 jps[i]->kp.addr = NULL; in unregister_jprobes()
886 if (jps[i]->kp.addr) in unregister_jprobes()
939 void *addr; in register_kretprobe() local
942 addr = kprobe_addr(&rp->kp); in register_kretprobe()
943 if (!addr) in register_kretprobe()
947 if (kretprobe_blacklist[i].addr == addr) in register_kretprobe()
1017 rps[i]->kp.addr = NULL; in unregister_kretprobes()
1022 if (rps[i]->kp.addr) { in unregister_kretprobes()
1101 if (within_module_init((unsigned long)p->addr, mod) || in kprobes_module_callback()
1103 within_module_core((unsigned long)p->addr, mod))) { in kprobes_module_callback()
1127 void *addr; in init_kprobes() local
1147 kprobe_lookup_name(kb->name, addr); in init_kprobes()
1148 if (!addr) in init_kprobes()
1151 kb->start_addr = (unsigned long)addr; in init_kprobes()
1164 kretprobe_blacklist[i].addr); in init_kprobes()
1165 if (!kretprobe_blacklist[i].addr) in init_kprobes()
1200 seq_printf(pi, "%p %s %s+0x%x %s %s\n", p->addr, kprobe_type, in report_probe()
1204 seq_printf(pi, "%p %s %p %s\n", p->addr, kprobe_type, p->addr, in report_probe()
1239 sym = kallsyms_lookup((unsigned long)p->addr, NULL, in show_kprobe_addr()