Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 58) sorted by relevance

123

/kernel/gcov/
Dclang.c91 struct gcov_info *info = kzalloc(sizeof(*info), GFP_KERNEL); in llvm_gcov_init() local
93 if (!info) in llvm_gcov_init()
96 INIT_LIST_HEAD(&info->head); in llvm_gcov_init()
97 INIT_LIST_HEAD(&info->functions); in llvm_gcov_init()
101 list_add_tail(&info->head, &clang_gcov_list); in llvm_gcov_init()
102 current_info = info; in llvm_gcov_init()
106 gcov_event(GCOV_ADD, info); in llvm_gcov_init()
135 struct gcov_fn_info *info = kzalloc(sizeof(*info), GFP_KERNEL); in llvm_gcda_emit_function() local
137 if (!info) in llvm_gcda_emit_function()
140 INIT_LIST_HEAD(&info->head); in llvm_gcda_emit_function()
[all …]
Dgcc_4_7.c115 const char *gcov_info_filename(struct gcov_info *info) in gcov_info_filename() argument
117 return info->filename; in gcov_info_filename()
124 unsigned int gcov_info_version(struct gcov_info *info) in gcov_info_version() argument
126 return info->version; in gcov_info_version()
136 struct gcov_info *gcov_info_next(struct gcov_info *info) in gcov_info_next() argument
138 if (!info) in gcov_info_next()
141 return info->next; in gcov_info_next()
148 void gcov_info_link(struct gcov_info *info) in gcov_info_link() argument
150 info->next = gcov_info_head; in gcov_info_link()
151 gcov_info_head = info; in gcov_info_link()
[all …]
Dfs.c159 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 …]
Dbase.c38 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()
Dgcov.h45 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 …]
/kernel/
Dmodule.c356 static unsigned int find_sec(const struct load_info *info, const char *name) in find_sec() argument
360 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec()
361 Elf_Shdr *shdr = &info->sechdrs[i]; in find_sec()
364 && strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_sec()
371 static void *section_addr(const struct load_info *info, const char *name) in section_addr() argument
374 return (void *)info->sechdrs[find_sec(info, name)].sh_addr; in section_addr()
378 static void *section_objs(const struct load_info *info, in section_objs() argument
383 unsigned int sec = find_sec(info, name); in section_objs()
386 *num = info->sechdrs[sec].sh_size / object_size; in section_objs()
387 return (void *)info->sechdrs[sec].sh_addr; in section_objs()
[all …]
Dusermode_driver.c60 int umd_load_blob(struct umd_info *info, const void *data, size_t len) in umd_load_blob() argument
64 if (WARN_ON_ONCE(info->wd.dentry || info->wd.mnt)) in umd_load_blob()
67 mnt = blob_to_mnt(data, len, info->driver_name); in umd_load_blob()
71 info->wd.mnt = mnt; in umd_load_blob()
72 info->wd.dentry = mnt->mnt_root; in umd_load_blob()
82 int umd_unload_blob(struct umd_info *info) in umd_unload_blob() argument
84 if (WARN_ON_ONCE(!info->wd.mnt || in umd_unload_blob()
85 !info->wd.dentry || in umd_unload_blob()
86 info->wd.mnt->mnt_root != info->wd.dentry)) in umd_unload_blob()
89 kern_unmount(info->wd.mnt); in umd_unload_blob()
[all …]
Dsignal.c501 int sig = q->info.si_signo; in __flush_itimer_signals()
503 if (likely(q->info.si_code != SI_TIMER)) { in __flush_itimer_signals()
571 static void collect_signal(int sig, struct sigpending *list, kernel_siginfo_t *info, in collect_signal() argument
581 if (q->info.si_signo == sig) { in collect_signal()
593 copy_siginfo(info, &first->info); in collect_signal()
597 (info->si_code == SI_TIMER) && in collect_signal()
598 (info->si_sys_private); in collect_signal()
607 clear_siginfo(info); in collect_signal()
608 info->si_signo = sig; in collect_signal()
609 info->si_errno = 0; in collect_signal()
[all …]
Dup.c12 int smp_call_function_single(int cpu, void (*func) (void *info), void *info, in smp_call_function_single() argument
21 func(info); in smp_call_function_single()
33 csd->func(csd->info); in smp_call_function_single_async()
39 void on_each_cpu(smp_call_func_t func, void *info, int wait) in on_each_cpu() argument
44 func(info); in on_each_cpu()
56 smp_call_func_t func, void *info, bool wait) in on_each_cpu_mask() argument
62 func(info); in on_each_cpu_mask()
73 void *info, bool wait, const struct cpumask *mask) in on_each_cpu_cond_mask() argument
78 if (cond_func(0, info)) { in on_each_cpu_cond_mask()
80 func(info); in on_each_cpu_cond_mask()
[all …]
Dsmp.c122 __this_cpu_write(cur_csd_info, csd->info); in csd_lock_record()
178 cpu, csd->func, csd->info); in csd_lock_wait_toolong()
284 void *info = csd->info; in generic_exec_single() local
294 func(info); in generic_exec_single()
387 void *info = csd->info; in flush_smp_call_function_queue() local
396 func(info); in flush_smp_call_function_queue()
423 void *info = csd->info; in flush_smp_call_function_queue() local
427 func(info); in flush_smp_call_function_queue()
468 int smp_call_function_single(int cpu, smp_call_func_t func, void *info, in smp_call_function_single() argument
508 csd->info = info; in smp_call_function_single()
[all …]
Dtaskstats.c65 static int prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp, in prepare_reply() argument
78 if (!info) { in prepare_reply()
83 reply = genlmsg_put_reply(skb, info, &family, 0, cmd); in prepare_reply()
96 static int send_reply(struct sk_buff *skb, struct genl_info *info) in send_reply() argument
103 return genlmsg_reply(skb, info); in send_reply()
385 static int cgroupstats_user_cmd(struct sk_buff *skb, struct genl_info *info) in cgroupstats_user_cmd() argument
395 na = info->attrs[CGROUPSTATS_CMD_ATTR_FD]; in cgroupstats_user_cmd()
399 fd = nla_get_u32(info->attrs[CGROUPSTATS_CMD_ATTR_FD]); in cgroupstats_user_cmd()
406 rc = prepare_reply(info, CGROUPSTATS_CMD_NEW, &rep_skb, in cgroupstats_user_cmd()
428 rc = send_reply(rep_skb, info); in cgroupstats_user_cmd()
[all …]
Dkmod.c63 static void free_modprobe_argv(struct subprocess_info *info) in free_modprobe_argv() argument
65 kfree(info->argv[3]); /* check call_modprobe() */ in free_modprobe_argv()
66 kfree(info->argv); in free_modprobe_argv()
71 struct subprocess_info *info; in call_modprobe() local
93 info = call_usermodehelper_setup(modprobe_path, argv, envp, GFP_KERNEL, in call_modprobe()
95 if (!info) in call_modprobe()
98 return call_usermodehelper_exec(info, wait | UMH_KILLABLE); in call_modprobe()
Dptrace.c701 static int ptrace_getsiginfo(struct task_struct *child, kernel_siginfo_t *info) in ptrace_getsiginfo() argument
709 copy_siginfo(info, child->last_siginfo); in ptrace_getsiginfo()
717 static int ptrace_setsiginfo(struct task_struct *child, const kernel_siginfo_t *info) in ptrace_setsiginfo() argument
725 copy_siginfo(child->last_siginfo, info); in ptrace_setsiginfo()
763 kernel_siginfo_t info; in ptrace_peek_siginfo() local
771 copy_siginfo(&info, &q->info); in ptrace_peek_siginfo()
784 if (copy_siginfo_to_user32(uinfo, &info)) { in ptrace_peek_siginfo()
794 if (copy_siginfo_to_user(uinfo, &info)) { in ptrace_peek_siginfo()
937 struct ptrace_syscall_info *info) in ptrace_get_syscall_info_entry() argument
939 unsigned long args[ARRAY_SIZE(info->entry.args)]; in ptrace_get_syscall_info_entry()
[all …]
Dumh.c41 static void call_usermodehelper_freeinfo(struct subprocess_info *info) in call_usermodehelper_freeinfo() argument
43 if (info->cleanup) in call_usermodehelper_freeinfo()
44 (*info->cleanup)(info); in call_usermodehelper_freeinfo()
45 kfree(info); in call_usermodehelper_freeinfo()
358 int (*init)(struct subprocess_info *info, struct cred *new), in call_usermodehelper_setup() argument
359 void (*cleanup)(struct subprocess_info *info), in call_usermodehelper_setup() argument
474 struct subprocess_info *info; in call_usermodehelper() local
477 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, in call_usermodehelper()
479 if (info == NULL) in call_usermodehelper()
482 return call_usermodehelper_exec(info, wait); in call_usermodehelper()
/kernel/bpf/
Dtask_iter.c55 struct bpf_iter_seq_task_info *info = seq->private; in task_seq_start() local
58 task = task_seq_get_next(info->common.ns, &info->tid, false); in task_seq_start()
69 struct bpf_iter_seq_task_info *info = seq->private; in task_seq_next() local
73 ++info->tid; in task_seq_next()
75 task = task_seq_get_next(info->common.ns, &info->tid, false); in task_seq_next()
139 task_file_seq_get_next(struct bpf_iter_seq_task_file_info *info) in task_file_seq_get_next() argument
141 struct pid_namespace *ns = info->common.ns; in task_file_seq_get_next()
142 u32 curr_tid = info->tid, max_fds; in task_file_seq_get_next()
145 int curr_fd = info->fd; in task_file_seq_get_next()
152 if (info->task) { in task_file_seq_get_next()
[all …]
Dsyscall.c2570 struct bpf_link_info *info) in bpf_tracing_link_fill_link_info() argument
2575 info->tracing.attach_type = tr_link->attach_type; in bpf_tracing_link_fill_link_info()
2786 struct bpf_link_info *info) in bpf_raw_tp_link_fill_link_info() argument
2790 char __user *ubuf = u64_to_user_ptr(info->raw_tracepoint.tp_name); in bpf_raw_tp_link_fill_link_info()
2792 u32 ulen = info->raw_tracepoint.tp_name_len; in bpf_raw_tp_link_fill_link_info()
2798 info->raw_tracepoint.tp_name_len = tp_len + 1; in bpf_raw_tp_link_fill_link_info()
3388 static int set_info_rec_size(struct bpf_prog_info *info) in set_info_rec_size() argument
3400 if ((info->nr_func_info || info->func_info_rec_size) && in set_info_rec_size()
3401 info->func_info_rec_size != sizeof(struct bpf_func_info)) in set_info_rec_size()
3404 if ((info->nr_line_info || info->line_info_rec_size) && in set_info_rec_size()
[all …]
Doffload.c265 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 …]
Dmap_iter.c15 struct bpf_iter_seq_map_info *info = seq->private; in bpf_map_seq_start() local
18 map = bpf_map_get_curr_or_next(&info->map_id); in bpf_map_seq_start()
29 struct bpf_iter_seq_map_info *info = seq->private; in bpf_map_seq_next() local
32 ++info->map_id; in bpf_map_seq_next()
34 return bpf_map_get_curr_or_next(&info->map_id); in bpf_map_seq_next()
159 struct bpf_link_info *info) in bpf_iter_map_fill_link_info() argument
161 info->iter.map.map_id = aux->map->id; in bpf_iter_map_fill_link_info()
Dprog_iter.c15 struct bpf_iter_seq_prog_info *info = seq->private; in bpf_prog_seq_start() local
18 prog = bpf_prog_get_curr_or_next(&info->prog_id); in bpf_prog_seq_start()
29 struct bpf_iter_seq_prog_info *info = seq->private; in bpf_prog_seq_next() local
32 ++info->prog_id; in bpf_prog_seq_next()
34 return bpf_prog_get_curr_or_next(&info->prog_id); in bpf_prog_seq_next()
/kernel/irq/
Dmsi.c81 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/printk/
Dprintk.c526 r.info->text_len = text_len + trunc_msg_len; in log_store()
527 r.info->facility = facility; in log_store()
528 r.info->level = level & 7; in log_store()
529 r.info->flags = flags & 0x1f; in log_store()
531 r.info->ts_nsec = ts_nsec; in log_store()
533 r.info->ts_nsec = local_clock(); in log_store()
534 r.info->caller_id = caller_id; in log_store()
536 memcpy(&r.info->dev_info, dev_info, sizeof(r.info->dev_info)); in log_store()
599 struct printk_info *info) in info_print_ext_header() argument
601 u64 ts_usec = info->ts_nsec; in info_print_ext_header()
[all …]
Dprintk_ringbuffer.c436 struct printk_info *info = to_info(desc_ring, id); in desc_read() local
482 *seq_out = info->seq; /* also part of desc_read:C */ in desc_read()
484 *caller_id_out = info->caller_id; /* also part of desc_read:C */ in desc_read()
1355 struct printk_info *info; in prb_reserve_in_last() local
1371 info = to_info(desc_ring, id); in prb_reserve_in_last()
1385 if (caller_id != info->caller_id) in prb_reserve_in_last()
1389 if (WARN_ON_ONCE(info->text_len != 0)) { in prb_reserve_in_last()
1391 info->text_len); in prb_reserve_in_last()
1392 info->text_len = 0; in prb_reserve_in_last()
1412 if (WARN_ON_ONCE(info->text_len > data_size)) { in prb_reserve_in_last()
[all …]
Dprintk_ringbuffer.h42 struct printk_info *info; member
300 r->info = NULL; in prb_rec_init_wr()
333 struct printk_info *info, in prb_rec_init_rd() argument
336 r->info = info; in prb_rec_init_rd()
356 for ((s) = from; prb_read_valid(rb, s, r); (s) = (r)->info->seq + 1)
379 struct printk_info *info, unsigned int *line_count);
/kernel/bpf/preload/
Dbpf_preload_kern.c17 .info.driver_name = "bpf_preload",
30 err = fork_usermode_driver(&umd_ops.info); in preload()
35 n = kernel_write(umd_ops.info.pipe_to_umh, in preload()
43 n = kernel_read(umd_ops.info.pipe_from_umh, in preload()
59 n = kernel_write(umd_ops.info.pipe_to_umh, in finish()
64 tgid = umd_ops.info.tgid; in finish()
67 umd_cleanup_helper(&umd_ops.info); in finish()
76 err = umd_load_blob(&umd_ops.info, &bpf_preload_umd_start, in load_umd()
91 tgid = umd_ops.info.tgid; in fini_umd()
96 umd_cleanup_helper(&umd_ops.info); in fini_umd()
[all …]
/kernel/trace/
Dring_buffer.c2517 unsigned long tail, struct rb_event_info *info) in rb_reset_tail() argument
2519 struct buffer_page *tail_page = info->tail_page; in rb_reset_tail()
2521 unsigned long length = info->length; in rb_reset_tail()
2599 unsigned long tail, struct rb_event_info *info) in rb_move_tail() argument
2601 struct buffer_page *tail_page = info->tail_page; in rb_move_tail()
2683 rb_reset_tail(cpu_buffer, tail, info); in rb_move_tail()
2695 rb_reset_tail(cpu_buffer, tail, info); in rb_move_tail()
2734 struct rb_event_info *info) in rb_check_timestamp() argument
2739 (unsigned long long)info->delta, in rb_check_timestamp()
2740 (unsigned long long)info->ts, in rb_check_timestamp()
[all …]

123