/kernel/ |
D | extable.c | 34 const struct exception_table_entry *search_exception_tables(unsigned long addr) in search_exception_tables() argument 38 e = search_extable(__start___ex_table, __stop___ex_table-1, addr); in search_exception_tables() 40 e = search_module_extables(addr); in search_exception_tables() 44 __notrace_funcgraph int core_kernel_text(unsigned long addr) in core_kernel_text() argument 46 if (addr >= (unsigned long)_stext && in core_kernel_text() 47 addr <= (unsigned long)_etext) in core_kernel_text() 51 addr >= (unsigned long)_sinittext && in core_kernel_text() 52 addr <= (unsigned long)_einittext) in core_kernel_text() 57 __notrace_funcgraph int __kernel_text_address(unsigned long addr) in __kernel_text_address() argument 59 if (core_kernel_text(addr)) in __kernel_text_address() [all …]
|
D | kallsyms.c | 48 static inline int is_kernel_inittext(unsigned long addr) in is_kernel_inittext() argument 50 if (addr >= (unsigned long)_sinittext in is_kernel_inittext() 51 && addr <= (unsigned long)_einittext) in is_kernel_inittext() 56 static inline int is_kernel_text(unsigned long addr) in is_kernel_text() argument 58 if (addr >= (unsigned long)_stext && addr <= (unsigned long)_etext) in is_kernel_text() 60 return in_gate_area_no_task(addr); in is_kernel_text() 63 static inline int is_kernel(unsigned long addr) in is_kernel() argument 65 if (addr >= (unsigned long)_stext && addr <= (unsigned long)_end) in is_kernel() 67 return in_gate_area_no_task(addr); in is_kernel() 70 static int is_ksym_addr(unsigned long addr) in is_ksym_addr() argument [all …]
|
D | kgdb.c | 171 int __weak kgdb_arch_set_breakpoint(unsigned long addr, char *saved_instr) in kgdb_arch_set_breakpoint() argument 175 err = probe_kernel_read(saved_instr, (char *)addr, BREAK_INSTR_SIZE); in kgdb_arch_set_breakpoint() 179 return probe_kernel_write((char *)addr, arch_kgdb_ops.gdb_bpt_instr, in kgdb_arch_set_breakpoint() 183 int __weak kgdb_arch_remove_breakpoint(unsigned long addr, char *bundle) in kgdb_arch_remove_breakpoint() argument 185 return probe_kernel_write((char *)addr, in kgdb_arch_remove_breakpoint() 189 int __weak kgdb_validate_break_address(unsigned long addr) in kgdb_validate_break_address() argument 198 err = kgdb_arch_set_breakpoint(addr, tmp_variable); in kgdb_validate_break_address() 201 err = kgdb_arch_remove_breakpoint(addr, tmp_variable); in kgdb_validate_break_address() 204 "memory destroyed at: %lx", addr); in kgdb_validate_break_address() 478 unsigned long addr; in write_mem_msg() local [all …]
|
D | kprobes.c | 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() [all …]
|
D | ptrace.c | 435 long addr, long data) in ptrace_request() argument 443 return generic_ptrace_peekdata(child, addr, data); in ptrace_request() 446 return generic_ptrace_pokedata(child, addr, data); in ptrace_request() 577 SYSCALL_DEFINE4(ptrace, long, request, long, pid, long, addr, long, data) in SYSCALL_DEFINE4() argument 614 ret = arch_ptrace(child, request, addr, data); in SYSCALL_DEFINE4() 625 int generic_ptrace_peekdata(struct task_struct *tsk, long addr, long data) in generic_ptrace_peekdata() argument 630 copied = access_process_vm(tsk, addr, &tmp, sizeof(tmp), 0); in generic_ptrace_peekdata() 636 int generic_ptrace_pokedata(struct task_struct *tsk, long addr, long data) in generic_ptrace_pokedata() argument 640 copied = access_process_vm(tsk, addr, &data, sizeof(data), 1); in generic_ptrace_pokedata() 648 compat_ulong_t addr, compat_ulong_t data) in compat_ptrace_request() argument [all …]
|
D | module.c | 870 void symbol_put_addr(void *addr) in symbol_put_addr() argument 874 if (core_kernel_text((unsigned long)addr)) in symbol_put_addr() 877 if (!(modaddr = module_text_address((unsigned long)addr))) in symbol_put_addr() 2387 static inline int within(unsigned long addr, void *start, unsigned long size) in within() argument 2389 return ((void *)addr >= start && (void *)addr < start + size); in within() 2404 unsigned long addr, in get_ksymbol() argument 2412 if (within_module_init(addr, mod)) in get_ksymbol() 2425 if (mod->symtab[i].st_value <= addr in get_ksymbol() 2430 if (mod->symtab[i].st_value > addr in get_ksymbol() 2443 *offset = addr - mod->symtab[best].st_value; in get_ksymbol() [all …]
|
D | resource.c | 839 int iomem_map_sanity_check(resource_size_t addr, unsigned long size) in iomem_map_sanity_check() argument 851 if (p->start >= addr + size) in iomem_map_sanity_check() 853 if (p->end < addr) in iomem_map_sanity_check() 855 if (PFN_DOWN(p->start) <= PFN_DOWN(addr) && in iomem_map_sanity_check() 856 PFN_DOWN(p->end) >= PFN_DOWN(addr + size - 1)) in iomem_map_sanity_check() 869 (unsigned long long)addr, in iomem_map_sanity_check() 870 (unsigned long long)(addr + size - 1), in iomem_map_sanity_check() 892 int iomem_is_exclusive(u64 addr) in iomem_is_exclusive() argument 902 addr = addr & PAGE_MASK; in iomem_is_exclusive() 910 if (p->start >= addr + size) in iomem_is_exclusive() [all …]
|
D | kexec.c | 423 unsigned long pfn, epfn, addr, eaddr; in kimage_alloc_normal_control_pages() local 430 addr = pfn << PAGE_SHIFT; in kimage_alloc_normal_control_pages() 433 kimage_is_destination_range(image, addr, eaddr)) { in kimage_alloc_normal_control_pages() 702 unsigned long addr; in kimage_alloc_page() local 709 addr = page_to_pfn(page) << PAGE_SHIFT; in kimage_alloc_page() 710 if (addr == destination) { in kimage_alloc_page() 729 addr = page_to_pfn(page) << PAGE_SHIFT; in kimage_alloc_page() 732 if (addr == destination) in kimage_alloc_page() 736 if (!kimage_is_destination_range(image, addr, in kimage_alloc_page() 737 addr + PAGE_SIZE)) in kimage_alloc_page() [all …]
|
D | test_kprobes.c | 118 kp.addr = 0; /* addr should be cleard for reusing kprobe. */ in test_kprobes() 213 jp.kp.addr = 0; /* addr should be cleard for reusing kprobe. */ in test_jprobes() 326 rp.kp.addr = 0; /* addr should be cleard for reusing kprobe. */ in test_kretprobes()
|
D | timer.c | 367 void __timer_stats_timer_set_start_info(struct timer_list *timer, void *addr) in __timer_stats_timer_set_start_info() argument 372 timer->start_site = addr; in __timer_stats_timer_set_start_info() 400 static int timer_fixup_init(void *addr, enum debug_obj_state state) in timer_fixup_init() argument 402 struct timer_list *timer = addr; in timer_fixup_init() 419 static int timer_fixup_activate(void *addr, enum debug_obj_state state) in timer_fixup_activate() argument 421 struct timer_list *timer = addr; in timer_fixup_activate() 453 static int timer_fixup_free(void *addr, enum debug_obj_state state) in timer_fixup_free() argument 455 struct timer_list *timer = addr; in timer_fixup_free()
|
D | spinlock.c | 447 notrace int in_lock_functions(unsigned long addr) in in_lock_functions() argument 452 return addr >= (unsigned long)__lock_text_start in in_lock_functions() 453 && addr < (unsigned long)__lock_text_end; in in_lock_functions()
|
D | hrtimer.c | 343 static int hrtimer_fixup_init(void *addr, enum debug_obj_state state) in hrtimer_fixup_init() argument 345 struct hrtimer *timer = addr; in hrtimer_fixup_init() 362 static int hrtimer_fixup_activate(void *addr, enum debug_obj_state state) in hrtimer_fixup_activate() argument 382 static int hrtimer_fixup_free(void *addr, enum debug_obj_state state) in hrtimer_fixup_free() argument 384 struct hrtimer *timer = addr; in hrtimer_fixup_free() 716 void __timer_stats_hrtimer_set_start_info(struct hrtimer *timer, void *addr) in __timer_stats_hrtimer_set_start_info() argument 721 timer->start_site = addr; in __timer_stats_hrtimer_set_start_info()
|
D | lockdep.c | 629 addr = (unsigned long) obj; in static_obj() local 637 if ((addr >= start) && (addr < end)) in static_obj() 649 if ((addr >= start) && (addr < end)) in static_obj() 657 return is_module_address(addr); in static_obj() 3179 static inline int within(const void *addr, void *start, unsigned long size) in within() argument 3181 return addr >= start && addr < start + size; in within()
|
D | profile.c | 160 void profile_munmap(unsigned long addr) in profile_munmap() argument 162 blocking_notifier_call_chain(&munmap_notifier, 0, (void *)addr); in profile_munmap()
|
D | sched.c | 4468 static inline unsigned long get_parent_ip(unsigned long addr) in get_parent_ip() argument 4470 if (in_lock_functions(addr)) { in get_parent_ip() 4471 addr = CALLER_ADDR2; in get_parent_ip() 4472 if (in_lock_functions(addr)) in get_parent_ip() 4473 addr = CALLER_ADDR3; in get_parent_ip() 4475 return addr; in get_parent_ip() 8248 int in_sched_functions(unsigned long addr) in in_sched_functions() argument 8250 return in_lock_functions(addr) || in in_sched_functions() 8251 (addr >= (unsigned long)__sched_text_start in in_sched_functions() 8252 && addr < (unsigned long)__sched_text_end); in in_sched_functions()
|
/kernel/power/ |
D | snapshot.c | 110 static inline void free_image_page(void *addr, int clear_nosave_free) in free_image_page() argument 114 BUG_ON(!virt_addr_valid(addr)); in free_image_page() 116 page = virt_to_page(addr); in free_image_page() 456 void **addr, unsigned int *bit_nr) in memory_bm_find_bit() argument 483 *addr = bb->data; in memory_bm_find_bit() 489 void *addr; in memory_bm_set_bit() local 493 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_set_bit() 495 set_bit(bit, addr); in memory_bm_set_bit() 500 void *addr; in mem_bm_set_bit_check() local 504 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in mem_bm_set_bit_check() [all …]
|
D | power.h | 21 extern int arch_hibernation_header_save(void *addr, unsigned int max_size); 22 extern int arch_hibernation_header_restore(void *addr);
|
D | swap.c | 99 static int bio_read_page(pgoff_t page_off, void *addr, struct bio **bio_chain) in bio_read_page() argument 101 return submit(READ, page_off, virt_to_page(addr), bio_chain); in bio_read_page() 104 static int bio_write_page(pgoff_t page_off, void *addr, struct bio **bio_chain) in bio_write_page() argument 106 return submit(WRITE, page_off, virt_to_page(addr), bio_chain); in bio_write_page()
|
/kernel/trace/ |
D | ring_buffer.c | 336 unsigned long addr; in rb_allocate_pages() local 347 addr = __get_free_page(GFP_KERNEL); in rb_allocate_pages() 348 if (!addr) in rb_allocate_pages() 350 bpage->page = (void *)addr; in rb_allocate_pages() 373 unsigned long addr; in rb_allocate_cpu_buffer() local 393 addr = __get_free_page(GFP_KERNEL); in rb_allocate_cpu_buffer() 394 if (!addr) in rb_allocate_cpu_buffer() 396 bpage->page = (void *)addr; in rb_allocate_cpu_buffer() 608 unsigned long addr; in ring_buffer_resize() local 673 addr = __get_free_page(GFP_KERNEL); in ring_buffer_resize() [all …]
|
D | trace_stack.c | 236 unsigned long addr = stack_dump_trace[i]; in trace_lookup_stack() local 240 sprint_symbol(str, addr); in trace_lookup_stack() 244 return seq_printf(m, "%p\n", (void*)addr); in trace_lookup_stack()
|
D | trace.h | 516 static inline int ftrace_graph_addr(unsigned long addr) in ftrace_graph_addr() argument 524 if (addr == ftrace_graph_funcs[i]) in ftrace_graph_addr() 531 static inline int ftrace_trace_addr(unsigned long addr) in ftrace_trace_addr() argument 535 static inline int ftrace_graph_addr(unsigned long addr) in ftrace_graph_addr() argument
|
D | ftrace.c | 1604 unsigned long addr; in ftrace_convert_nops() local 1610 addr = ftrace_call_adjust(*p++); in ftrace_convert_nops() 1617 if (!addr) in ftrace_convert_nops() 1619 ftrace_record_ip(addr); in ftrace_convert_nops() 1644 unsigned long count, addr, flags; in ftrace_init() local 1648 addr = (unsigned long)ftrace_stub; in ftrace_init() 1651 ftrace_dyn_arch_init(&addr); in ftrace_init() 1655 if (addr) in ftrace_init()
|
D | trace_sysprof.c | 80 static void backtrace_address(void *data, unsigned long addr, int reliable) in backtrace_address() argument 85 __trace_special(info->tr, info->data, 1, addr, 0); in backtrace_address()
|
D | trace_functions_graph.c | 235 print_graph_irq(struct trace_seq *s, unsigned long addr, in print_graph_irq() argument 240 if (addr < (unsigned long)__irqentry_text_start || in print_graph_irq() 241 addr >= (unsigned long)__irqentry_text_end) in print_graph_irq()
|
/kernel/time/ |
D | timer_stats.c | 270 static void print_name_offset(struct seq_file *m, unsigned long addr) in print_name_offset() argument 274 if (lookup_symbol_name(addr, symname) < 0) in print_name_offset() 275 seq_printf(m, "<%p>", (void *)addr); in print_name_offset()
|