/kernel/gcov/ |
D | gcc_3_4.c | 88 const char *gcov_info_filename(struct gcov_info *info) in gcov_info_filename() argument 90 return info->filename; in gcov_info_filename() 97 unsigned int gcov_info_version(struct gcov_info *info) in gcov_info_version() argument 99 return info->version; in gcov_info_version() 109 struct gcov_info *gcov_info_next(struct gcov_info *info) in gcov_info_next() argument 111 if (!info) in gcov_info_next() 114 return info->next; in gcov_info_next() 121 void gcov_info_link(struct gcov_info *info) in gcov_info_link() argument 123 info->next = gcov_info_head; in gcov_info_link() 124 gcov_info_head = info; in gcov_info_link() [all …]
|
D | gcc_4_7.c | 101 const char *gcov_info_filename(struct gcov_info *info) in gcov_info_filename() argument 103 return info->filename; in gcov_info_filename() 110 unsigned int gcov_info_version(struct gcov_info *info) in gcov_info_version() argument 112 return info->version; in gcov_info_version() 122 struct gcov_info *gcov_info_next(struct gcov_info *info) in gcov_info_next() argument 124 if (!info) in gcov_info_next() 127 return info->next; in gcov_info_next() 134 void gcov_info_link(struct gcov_info *info) in gcov_info_link() argument 136 info->next = gcov_info_head; in gcov_info_link() 137 gcov_info_head = info; in gcov_info_link() [all …]
|
D | clang.c | 87 struct gcov_info *info = kzalloc(sizeof(*info), GFP_KERNEL); in llvm_gcov_init() local 89 if (!info) in llvm_gcov_init() 92 INIT_LIST_HEAD(&info->head); in llvm_gcov_init() 93 INIT_LIST_HEAD(&info->functions); in llvm_gcov_init() 97 list_add_tail(&info->head, &clang_gcov_list); in llvm_gcov_init() 98 current_info = info; in llvm_gcov_init() 102 gcov_event(GCOV_ADD, info); in llvm_gcov_init() 120 struct gcov_fn_info *info = kzalloc(sizeof(*info), GFP_KERNEL); in llvm_gcda_emit_function() local 122 if (!info) in llvm_gcda_emit_function() 125 INIT_LIST_HEAD(&info->head); in llvm_gcda_emit_function() [all …]
|
D | fs.c | 159 struct gcov_info *info; in get_accumulated_info() local 163 info = gcov_info_dup(node->unloaded_info); in get_accumulated_info() 165 info = gcov_info_dup(node->loaded_info[i++]); in get_accumulated_info() 166 if (!info) in get_accumulated_info() 169 gcov_info_add(info, node->loaded_info[i]); in get_accumulated_info() 171 return info; in get_accumulated_info() 183 struct gcov_info *info; in gcov_seq_open() local 192 info = get_accumulated_info(node); in gcov_seq_open() 193 if (!info) in gcov_seq_open() 195 iter = gcov_iter_new(info); in gcov_seq_open() [all …]
|
D | base.c | 38 struct gcov_info *info = NULL; in gcov_enable_events() local 44 while ((info = gcov_info_next(info))) { in gcov_enable_events() 45 gcov_event(GCOV_ADD, info); in gcov_enable_events() 58 struct gcov_info *info = NULL; in gcov_module_notifier() local 66 while ((info = gcov_info_next(info))) { in gcov_module_notifier() 67 if (gcov_info_within_module(info, mod)) { in gcov_module_notifier() 68 gcov_info_unlink(prev, info); in gcov_module_notifier() 70 gcov_event(GCOV_REMOVE, info); in gcov_module_notifier() 72 prev = info; in gcov_module_notifier()
|
D | gcov.h | 45 const char *gcov_info_filename(struct gcov_info *info); 46 unsigned int gcov_info_version(struct gcov_info *info); 47 struct gcov_info *gcov_info_next(struct gcov_info *info); 48 void gcov_info_link(struct gcov_info *info); 49 void gcov_info_unlink(struct gcov_info *prev, struct gcov_info *info); 50 bool gcov_info_within_module(struct gcov_info *info, struct module *mod); 58 void gcov_event(enum gcov_action action, struct gcov_info *info); 65 struct gcov_iterator *gcov_iter_new(struct gcov_info *info); 73 void gcov_info_reset(struct gcov_info *info); 76 struct gcov_info *gcov_info_dup(struct gcov_info *info); [all …]
|
D | gcc_base.c | 12 void __gcov_init(struct gcov_info *info) in __gcov_init() argument 18 gcov_version = gcov_info_version(info); in __gcov_init() 29 gcov_info_link(info); in __gcov_init() 31 gcov_event(GCOV_ADD, info); in __gcov_init()
|
/kernel/ |
D | module.c | 343 static unsigned int find_sec(const struct load_info *info, const char *name) in find_sec() argument 347 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec() 348 Elf_Shdr *shdr = &info->sechdrs[i]; in find_sec() 351 && strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_sec() 358 static void *section_addr(const struct load_info *info, const char *name) in section_addr() argument 361 return (void *)info->sechdrs[find_sec(info, name)].sh_addr; in section_addr() 365 static void *section_objs(const struct load_info *info, in section_objs() argument 370 unsigned int sec = find_sec(info, name); in section_objs() 373 *num = info->sechdrs[sec].sh_size / object_size; in section_objs() 374 return (void *)info->sechdrs[sec].sh_addr; in section_objs() [all …]
|
D | signal.c | 492 int sig = q->info.si_signo; in __flush_itimer_signals() 494 if (likely(q->info.si_code != SI_TIMER)) { in __flush_itimer_signals() 562 static void collect_signal(int sig, struct sigpending *list, kernel_siginfo_t *info, in collect_signal() argument 572 if (q->info.si_signo == sig) { in collect_signal() 584 copy_siginfo(info, &first->info); in collect_signal() 588 (info->si_code == SI_TIMER) && in collect_signal() 589 (info->si_sys_private); in collect_signal() 598 clear_siginfo(info); in collect_signal() 599 info->si_signo = sig; in collect_signal() 600 info->si_errno = 0; in collect_signal() [all …]
|
D | smp.c | 143 smp_call_func_t func, void *info) in generic_exec_single() argument 154 func(info); in generic_exec_single() 166 csd->info = info; in generic_exec_single() 240 void *info = csd->info; in flush_smp_call_function_queue() local 244 func(info); in flush_smp_call_function_queue() 248 func(info); in flush_smp_call_function_queue() 269 int smp_call_function_single(int cpu, smp_call_func_t func, void *info, in smp_call_function_single() argument 308 err = generic_exec_single(cpu, csd, func, info); in smp_call_function_single() 348 err = generic_exec_single(cpu, csd, csd->func, csd->info); in smp_call_function_single_async() 370 smp_call_func_t func, void *info, int wait) in smp_call_function_any() argument [all …]
|
D | up.c | 12 int smp_call_function_single(int cpu, void (*func) (void *info), void *info, in smp_call_function_single() argument 20 func(info); in smp_call_function_single() 32 csd->func(csd->info); in smp_call_function_single_async() 38 void on_each_cpu(smp_call_func_t func, void *info, int wait) in on_each_cpu() argument 43 func(info); in on_each_cpu() 55 smp_call_func_t func, void *info, bool wait) in on_each_cpu_mask() argument 61 func(info); in on_each_cpu_mask() 71 void on_each_cpu_cond_mask(bool (*cond_func)(int cpu, void *info), in on_each_cpu_cond_mask() argument 72 smp_call_func_t func, void *info, bool wait, in on_each_cpu_cond_mask() 78 if (cond_func(0, info)) { in on_each_cpu_cond_mask() [all …]
|
D | umh.c | 44 static void call_usermodehelper_freeinfo(struct subprocess_info *info) in call_usermodehelper_freeinfo() argument 46 if (info->cleanup) in call_usermodehelper_freeinfo() 47 (*info->cleanup)(info); in call_usermodehelper_freeinfo() 48 kfree(info); in call_usermodehelper_freeinfo() 381 int (*init)(struct subprocess_info *info, struct cred *new), in call_usermodehelper_setup() argument 382 void (*cleanup)(struct subprocess_info *info), in call_usermodehelper_setup() argument 409 int (*init)(struct subprocess_info *info, struct cred *new), in call_usermodehelper_setup_file() argument 410 void (*cleanup)(struct subprocess_info *info), void *data) in call_usermodehelper_setup_file() argument 413 struct umh_info *info = data; in call_usermodehelper_setup_file() local 414 const char *cmdline = (info->cmdline) ? info->cmdline : "usermodehelper"; in call_usermodehelper_setup_file() [all …]
|
D | taskstats.c | 69 static int prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp, in prepare_reply() argument 82 if (!info) { in prepare_reply() 87 reply = genlmsg_put_reply(skb, info, &family, 0, cmd); in prepare_reply() 100 static int send_reply(struct sk_buff *skb, struct genl_info *info) in send_reply() argument 107 return genlmsg_reply(skb, info); in send_reply() 389 static int cgroupstats_user_cmd(struct sk_buff *skb, struct genl_info *info) in cgroupstats_user_cmd() argument 399 na = info->attrs[CGROUPSTATS_CMD_ATTR_FD]; in cgroupstats_user_cmd() 403 fd = nla_get_u32(info->attrs[CGROUPSTATS_CMD_ATTR_FD]); in cgroupstats_user_cmd() 410 rc = prepare_reply(info, CGROUPSTATS_CMD_NEW, &rep_skb, in cgroupstats_user_cmd() 432 rc = send_reply(rep_skb, info); in cgroupstats_user_cmd() [all …]
|
D | kmod.c | 64 static void free_modprobe_argv(struct subprocess_info *info) in free_modprobe_argv() argument 66 kfree(info->argv[3]); /* check call_modprobe() */ in free_modprobe_argv() 67 kfree(info->argv); in free_modprobe_argv() 72 struct subprocess_info *info; in call_modprobe() local 94 info = call_usermodehelper_setup(modprobe_path, argv, envp, GFP_KERNEL, in call_modprobe() 96 if (!info) in call_modprobe() 99 return call_usermodehelper_exec(info, wait | UMH_KILLABLE); in call_modprobe()
|
D | ptrace.c | 674 static int ptrace_getsiginfo(struct task_struct *child, kernel_siginfo_t *info) in ptrace_getsiginfo() argument 682 copy_siginfo(info, child->last_siginfo); in ptrace_getsiginfo() 690 static int ptrace_setsiginfo(struct task_struct *child, const kernel_siginfo_t *info) in ptrace_setsiginfo() argument 698 copy_siginfo(child->last_siginfo, info); in ptrace_setsiginfo() 736 kernel_siginfo_t info; in ptrace_peek_siginfo() local 744 copy_siginfo(&info, &q->info); in ptrace_peek_siginfo() 757 if (copy_siginfo_to_user32(uinfo, &info)) { in ptrace_peek_siginfo() 767 if (copy_siginfo_to_user(uinfo, &info)) { in ptrace_peek_siginfo() 910 struct ptrace_syscall_info *info) in ptrace_get_syscall_info_entry() argument 912 unsigned long args[ARRAY_SIZE(info->entry.args)]; in ptrace_get_syscall_info_entry() [all …]
|
D | module_signing.c | 20 int mod_verify_sig(const void *mod, struct load_info *info) in mod_verify_sig() argument 23 size_t sig_len, modlen = info->len; in mod_verify_sig() 33 ret = mod_check_sig(&ms, modlen, info->name); in mod_verify_sig() 39 info->len = modlen; in mod_verify_sig()
|
D | sys.c | 2665 static int do_sysinfo(struct sysinfo *info) in do_sysinfo() argument 2671 memset(info, 0, sizeof(struct sysinfo)); in do_sysinfo() 2674 info->uptime = tp.tv_sec + (tp.tv_nsec ? 1 : 0); in do_sysinfo() 2676 get_avenrun(info->loads, 0, SI_LOAD_SHIFT - FSHIFT); in do_sysinfo() 2678 info->procs = nr_threads; in do_sysinfo() 2680 si_meminfo(info); in do_sysinfo() 2681 si_swapinfo(info); in do_sysinfo() 2692 mem_total = info->totalram + info->totalswap; in do_sysinfo() 2693 if (mem_total < info->totalram || mem_total < info->totalswap) in do_sysinfo() 2696 mem_unit = info->mem_unit; in do_sysinfo() [all …]
|
/kernel/irq/ |
D | msi.c | 81 struct msi_domain_info *info = domain->host_data; in msi_check_level() local 87 WARN_ON(!((info->flags & MSI_FLAG_LEVEL_CAPABLE) && in msi_check_level() 88 (info->chip->flags & IRQCHIP_SUPPORTS_LEVEL_MSI)) && in msi_check_level() 141 struct msi_domain_info *info = domain->host_data; in msi_domain_alloc() local 142 struct msi_domain_ops *ops = info->ops; in msi_domain_alloc() 143 irq_hw_number_t hwirq = ops->get_hwirq(info, arg); in msi_domain_alloc() 156 ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); in msi_domain_alloc() 160 ops->msi_free(domain, info, virq + i); in msi_domain_alloc() 173 struct msi_domain_info *info = domain->host_data; in msi_domain_free() local 176 if (info->ops->msi_free) { in msi_domain_free() [all …]
|
/kernel/bpf/ |
D | syscall.c | 2292 static int set_info_rec_size(struct bpf_prog_info *info) in set_info_rec_size() argument 2304 if ((info->nr_func_info || info->func_info_rec_size) && in set_info_rec_size() 2305 info->func_info_rec_size != sizeof(struct bpf_func_info)) in set_info_rec_size() 2308 if ((info->nr_line_info || info->line_info_rec_size) && in set_info_rec_size() 2309 info->line_info_rec_size != sizeof(struct bpf_line_info)) in set_info_rec_size() 2312 if ((info->nr_jited_line_info || info->jited_line_info_rec_size) && in set_info_rec_size() 2313 info->jited_line_info_rec_size != sizeof(__u64)) in set_info_rec_size() 2316 info->func_info_rec_size = sizeof(struct bpf_func_info); in set_info_rec_size() 2317 info->line_info_rec_size = sizeof(struct bpf_line_info); in set_info_rec_size() 2318 info->jited_line_info_rec_size = sizeof(__u64); in set_info_rec_size() [all …]
|
D | offload.c | 265 struct bpf_prog_info *info; member 279 args->info->ifindex = aux->offload->netdev->ifindex; in bpf_prog_offload_info_fill_ns() 284 args->info->ifindex = 0; in bpf_prog_offload_info_fill_ns() 294 int bpf_prog_offload_info_fill(struct bpf_prog_info *info, in bpf_prog_offload_info_fill() argument 299 .info = info, in bpf_prog_offload_info_fill() 310 if (!info->ifindex) in bpf_prog_offload_info_fill() 322 ulen = info->jited_prog_len; in bpf_prog_offload_info_fill() 323 info->jited_prog_len = aux->offload->jited_len; in bpf_prog_offload_info_fill() 324 if (info->jited_prog_len & ulen) { in bpf_prog_offload_info_fill() 325 uinsns = u64_to_user_ptr(info->jited_prog_insns); in bpf_prog_offload_info_fill() [all …]
|
/kernel/power/ |
D | snapshot.c | 2019 static int init_header_complete(struct swsusp_info *info) in init_header_complete() argument 2021 memcpy(&info->uts, init_utsname(), sizeof(struct new_utsname)); in init_header_complete() 2022 info->version_code = LINUX_VERSION_CODE; in init_header_complete() 2026 static char *check_image_kernel(struct swsusp_info *info) in check_image_kernel() argument 2028 if (info->version_code != LINUX_VERSION_CODE) in check_image_kernel() 2030 if (strcmp(info->uts.sysname,init_utsname()->sysname)) in check_image_kernel() 2032 if (strcmp(info->uts.release,init_utsname()->release)) in check_image_kernel() 2034 if (strcmp(info->uts.version,init_utsname()->version)) in check_image_kernel() 2036 if (strcmp(info->uts.machine,init_utsname()->machine)) in check_image_kernel() 2047 static int init_header(struct swsusp_info *info) in init_header() argument [all …]
|
D | power.h | 30 static inline int init_header_complete(struct swsusp_info *info) in init_header_complete() argument 32 return arch_hibernation_header_save(info, MAX_ARCH_HEADER_SIZE); in init_header_complete() 35 static inline char *check_image_kernel(struct swsusp_info *info) in check_image_kernel() argument 37 return arch_hibernation_header_restore(info) ? in check_image_kernel()
|
/kernel/events/ |
D | uprobes.c | 968 static inline struct map_info *free_map_info(struct map_info *info) in free_map_info() argument 970 struct map_info *next = info->next; in free_map_info() 971 kfree(info); in free_map_info() 982 struct map_info *info; in build_map_info() local 1009 info = prev; in build_map_info() 1011 info->next = curr; in build_map_info() 1012 curr = info; in build_map_info() 1014 info->mm = vma->vm_mm; in build_map_info() 1015 info->vaddr = offset_to_vaddr(vma, offset); in build_map_info() 1029 info = kmalloc(sizeof(struct map_info), GFP_KERNEL); in build_map_info() [all …]
|
D | hw_breakpoint.c | 140 struct bp_cpuinfo *info = get_bp_info(cpu, type); in fetch_bp_busy_slots() local 143 nr = info->cpu_pinned; in fetch_bp_busy_slots() 152 nr = info->flexible; in fetch_bp_busy_slots() 429 bp->hw.info = hw; in register_perf_hw_breakpoint() 487 bp->hw.info = hw; in modify_user_hw_breakpoint_check() 671 struct bp_cpuinfo *info = get_bp_info(cpu, i); in init_hw_breakpoint() local 673 info->tsk_pinned = kcalloc(nr_slots[i], sizeof(int), in init_hw_breakpoint() 675 if (!info->tsk_pinned) in init_hw_breakpoint()
|
/kernel/trace/ |
D | ring_buffer.c | 2130 unsigned long tail, struct rb_event_info *info) in rb_reset_tail() argument 2132 struct buffer_page *tail_page = info->tail_page; in rb_reset_tail() 2134 unsigned long length = info->length; in rb_reset_tail() 2205 unsigned long tail, struct rb_event_info *info) in rb_move_tail() argument 2207 struct buffer_page *tail_page = info->tail_page; in rb_move_tail() 2289 rb_reset_tail(cpu_buffer, tail, info); in rb_move_tail() 2301 rb_reset_tail(cpu_buffer, tail, info); in rb_move_tail() 2345 struct rb_event_info *info) in rb_update_event() argument 2347 unsigned length = info->length; in rb_update_event() 2348 u64 delta = info->delta; in rb_update_event() [all …]
|