/kernel/ |
D | kallsyms.c | 501 static int get_ksymbol_arch(struct kallsym_iter *iter) in get_ksymbol_arch() argument 503 int ret = arch_get_kallsym(iter->pos - kallsyms_num_syms, in get_ksymbol_arch() 504 &iter->value, &iter->type, in get_ksymbol_arch() 505 iter->name); in get_ksymbol_arch() 508 iter->pos_arch_end = iter->pos; in get_ksymbol_arch() 515 static int get_ksymbol_mod(struct kallsym_iter *iter) in get_ksymbol_mod() argument 517 int ret = module_get_kallsym(iter->pos - iter->pos_arch_end, in get_ksymbol_mod() 518 &iter->value, &iter->type, in get_ksymbol_mod() 519 iter->name, iter->module_name, in get_ksymbol_mod() 520 &iter->exported); in get_ksymbol_mod() [all …]
|
D | jump_label.c | 321 struct jump_entry *iter; in __jump_label_text_reserved() local 323 iter = iter_start; in __jump_label_text_reserved() 324 while (iter < iter_stop) { in __jump_label_text_reserved() 325 if (init || !jump_entry_is_init(iter)) { in __jump_label_text_reserved() 326 if (addr_conflict(iter, start, end)) in __jump_label_text_reserved() 329 iter++; in __jump_label_text_reserved() 468 struct jump_entry *iter; in jump_label_init() local 486 for (iter = iter_start; iter < iter_stop; iter++) { in jump_label_init() 490 if (jump_label_type(iter) == JUMP_LABEL_NOP) in jump_label_init() 491 arch_jump_label_transform_static(iter, JUMP_LABEL_NOP); in jump_label_init() [all …]
|
D | ucount.c | 195 struct ucounts *ucounts, *iter, *bad; in inc_ucount() local 198 for (iter = ucounts; iter; iter = tns->ucounts) { in inc_ucount() 200 tns = iter->ns; in inc_ucount() 202 if (!atomic_inc_below(&iter->ucount[type], max)) in inc_ucount() 207 bad = iter; in inc_ucount() 208 for (iter = ucounts; iter != bad; iter = iter->ns->ucounts) in inc_ucount() 209 atomic_dec(&iter->ucount[type]); in inc_ucount() 217 struct ucounts *iter; in dec_ucount() local 218 for (iter = ucounts; iter; iter = iter->ns->ucounts) { in dec_ucount() 219 int dec = atomic_dec_if_positive(&iter->ucount[type]); in dec_ucount()
|
/kernel/trace/ |
D | trace_output.c | 25 enum print_line_t trace_print_bputs_msg_only(struct trace_iterator *iter) in trace_print_bputs_msg_only() argument 27 struct trace_seq *s = &iter->seq; in trace_print_bputs_msg_only() 28 struct trace_entry *entry = iter->ent; in trace_print_bputs_msg_only() 38 enum print_line_t trace_print_bprintk_msg_only(struct trace_iterator *iter) in trace_print_bprintk_msg_only() argument 40 struct trace_seq *s = &iter->seq; in trace_print_bprintk_msg_only() 41 struct trace_entry *entry = iter->ent; in trace_print_bprintk_msg_only() 51 enum print_line_t trace_print_printk_msg_only(struct trace_iterator *iter) in trace_print_printk_msg_only() argument 53 struct trace_seq *s = &iter->seq; in trace_print_printk_msg_only() 54 struct trace_entry *entry = iter->ent; in trace_print_printk_msg_only() 292 int trace_raw_output_prep(struct trace_iterator *iter, in trace_raw_output_prep() argument [all …]
|
D | trace_kdb.c | 20 static struct trace_iterator iter; variable 29 tr = iter.tr; in ftrace_dump_buf() 40 trace_iterator_reset(&iter); in ftrace_dump_buf() 41 iter.iter_flags |= TRACE_FILE_LAT_FMT; in ftrace_dump_buf() 45 iter.buffer_iter[cpu] = in ftrace_dump_buf() 46 ring_buffer_read_prepare(iter.array_buffer->buffer, in ftrace_dump_buf() 48 ring_buffer_read_start(iter.buffer_iter[cpu]); in ftrace_dump_buf() 49 tracing_iter_reset(&iter, cpu); in ftrace_dump_buf() 52 iter.cpu_file = cpu_file; in ftrace_dump_buf() 53 iter.buffer_iter[cpu_file] = in ftrace_dump_buf() [all …]
|
D | trace_functions_graph.c | 420 get_return_for_leaf(struct trace_iterator *iter, in get_return_for_leaf() argument 423 struct fgraph_data *data = iter->private; in get_return_for_leaf() 437 ring_iter = trace_buffer_iter(iter, iter->cpu); in get_return_for_leaf() 447 ring_buffer_consume(iter->array_buffer->buffer, iter->cpu, in get_return_for_leaf() 449 event = ring_buffer_peek(iter->array_buffer->buffer, iter->cpu, in get_return_for_leaf() 502 print_graph_rel_time(struct trace_iterator *iter, struct trace_seq *s) in print_graph_rel_time() argument 506 usecs = iter->ts - iter->array_buffer->time_start; in print_graph_rel_time() 513 print_graph_irq(struct trace_iterator *iter, unsigned long addr, in print_graph_irq() argument 516 struct trace_array *tr = iter->tr; in print_graph_irq() 517 struct trace_seq *s = &iter->seq; in print_graph_irq() [all …]
|
D | trace.c | 1903 static int wait_on_pipe(struct trace_iterator *iter, int full) in wait_on_pipe() argument 1908 if (trace_buffer_iter(iter, iter->cpu_file)) in wait_on_pipe() 1911 ret = ring_buffer_wait(iter->array_buffer->buffer, iter->cpu_file, full); in wait_on_pipe() 1918 if (iter->snapshot) in wait_on_pipe() 1919 iter->array_buffer = &iter->tr->max_buffer; in wait_on_pipe() 2807 struct trace_iterator *iter = tracepoint_print_iter; in output_printk() local 2810 if (WARN_ON_ONCE(!iter)) in output_printk() 2827 trace_seq_init(&iter->seq); in output_printk() 2828 iter->ent = fbuffer->entry; in output_printk() 2829 event_call->event.funcs->trace(iter, 0, event); in output_printk() [all …]
|
D | trace_mmiotrace.c | 99 static void mmio_pipe_open(struct trace_iterator *iter) in mmio_pipe_open() argument 102 struct trace_seq *s = &iter->seq; in mmio_pipe_open() 111 iter->private = hiter; in mmio_pipe_open() 115 static void mmio_close(struct trace_iterator *iter) in mmio_close() argument 117 struct header_iter *hiter = iter->private; in mmio_close() 119 iter->private = NULL; in mmio_close() 122 static unsigned long count_overruns(struct trace_iterator *iter) in count_overruns() argument 125 unsigned long over = ring_buffer_overruns(iter->array_buffer->buffer); in count_overruns() 133 static ssize_t mmio_read(struct trace_iterator *iter, struct file *filp, in mmio_read() argument 137 struct header_iter *hiter = iter->private; in mmio_read() [all …]
|
D | ftrace.c | 2593 struct ftrace_rec_iter *iter = &ftrace_rec_iter; in ftrace_rec_iter_start() local 2595 iter->pg = ftrace_pages_start; in ftrace_rec_iter_start() 2596 iter->index = 0; in ftrace_rec_iter_start() 2599 while (iter->pg && !iter->pg->index) in ftrace_rec_iter_start() 2600 iter->pg = iter->pg->next; in ftrace_rec_iter_start() 2602 if (!iter->pg) in ftrace_rec_iter_start() 2605 return iter; in ftrace_rec_iter_start() 2614 struct ftrace_rec_iter *ftrace_rec_iter_next(struct ftrace_rec_iter *iter) in ftrace_rec_iter_next() argument 2616 iter->index++; in ftrace_rec_iter_next() 2618 if (iter->index >= iter->pg->index) { in ftrace_rec_iter_next() [all …]
|
D | ring_buffer.c | 2255 rb_iter_head_event(struct ring_buffer_iter *iter) in rb_iter_head_event() argument 2258 struct buffer_page *iter_head_page = iter->head_page; in rb_iter_head_event() 2262 if (iter->head != iter->next_event) in rb_iter_head_event() 2263 return iter->event; in rb_iter_head_event() 2274 if (iter->head > commit - 8) in rb_iter_head_event() 2277 event = __rb_page_index(iter_head_page, iter->head); in rb_iter_head_event() 2286 if ((iter->head + length) > commit || length > BUF_PAGE_SIZE) in rb_iter_head_event() 2290 memcpy(iter->event, event, length); in rb_iter_head_event() 2298 if (iter->page_stamp != iter_head_page->page->time_stamp || in rb_iter_head_event() 2302 iter->next_event = iter->head + length; in rb_iter_head_event() [all …]
|
D | trace_output.h | 9 trace_print_bputs_msg_only(struct trace_iterator *iter); 11 trace_print_bprintk_msg_only(struct trace_iterator *iter); 13 trace_print_printk_msg_only(struct trace_iterator *iter); 19 extern int trace_print_context(struct trace_iterator *iter); 20 extern int trace_print_lat_context(struct trace_iterator *iter); 26 extern enum print_line_t trace_nop_print(struct trace_iterator *iter,
|
D | trace_printk.c | 55 const char **iter; in hold_module_trace_bprintk_format() local 63 for (iter = start; iter < end; iter++) { in hold_module_trace_bprintk_format() 64 struct trace_bprintk_fmt *tb_fmt = lookup_format(*iter); in hold_module_trace_bprintk_format() 67 *iter = tb_fmt->fmt; in hold_module_trace_bprintk_format() 74 fmt = kmalloc(strlen(*iter) + 1, GFP_KERNEL); in hold_module_trace_bprintk_format() 77 strcpy(fmt, *iter); in hold_module_trace_bprintk_format() 82 *iter = fmt; in hold_module_trace_bprintk_format()
|
D | trace_irqsoff.c | 227 static void irqsoff_trace_open(struct trace_iterator *iter) in irqsoff_trace_open() argument 229 if (is_graph(iter->tr)) in irqsoff_trace_open() 230 graph_trace_open(iter); in irqsoff_trace_open() 232 iter->private = NULL; in irqsoff_trace_open() 235 static void irqsoff_trace_close(struct trace_iterator *iter) in irqsoff_trace_close() argument 237 if (iter->private) in irqsoff_trace_close() 238 graph_trace_close(iter); in irqsoff_trace_close() 246 static enum print_line_t irqsoff_print_line(struct trace_iterator *iter) in irqsoff_print_line() argument 252 if (is_graph(iter->tr)) in irqsoff_print_line() 253 return print_graph_function_flags(iter, GRAPH_TRACER_FLAGS); in irqsoff_print_line() [all …]
|
D | blktrace.c | 1299 typedef void (blk_log_action_t) (struct trace_iterator *iter, const char *act, 1302 static void blk_log_action_classic(struct trace_iterator *iter, const char *act, in blk_log_action_classic() argument 1306 unsigned long long ts = iter->ts; in blk_log_action_classic() 1309 const struct blk_io_trace *t = te_blk_io_trace(iter->ent); in blk_log_action_classic() 1313 trace_seq_printf(&iter->seq, in blk_log_action_classic() 1315 MAJOR(t->device), MINOR(t->device), iter->cpu, in blk_log_action_classic() 1316 secs, nsec_rem, iter->ent->pid, act, rwbs); in blk_log_action_classic() 1319 static void blk_log_action(struct trace_iterator *iter, const char *act, in blk_log_action() argument 1323 const struct blk_io_trace *t = te_blk_io_trace(iter->ent); in blk_log_action() 1327 u64 id = t_cgid(iter->ent); in blk_log_action() [all …]
|
D | trace_sched_wakeup.c | 170 static void wakeup_trace_open(struct trace_iterator *iter) in wakeup_trace_open() argument 172 if (is_graph(iter->tr)) in wakeup_trace_open() 173 graph_trace_open(iter); in wakeup_trace_open() 175 iter->private = NULL; in wakeup_trace_open() 178 static void wakeup_trace_close(struct trace_iterator *iter) in wakeup_trace_close() argument 180 if (iter->private) in wakeup_trace_close() 181 graph_trace_close(iter); in wakeup_trace_close() 191 static enum print_line_t wakeup_print_line(struct trace_iterator *iter) in wakeup_print_line() argument 197 if (is_graph(iter->tr)) in wakeup_print_line() 198 return print_graph_function_flags(iter, GRAPH_TRACER_FLAGS); in wakeup_print_line() [all …]
|
D | trace.h | 524 void (*open)(struct trace_iterator *iter); 525 void (*pipe_open)(struct trace_iterator *iter); 526 void (*close)(struct trace_iterator *iter); 527 void (*pipe_close)(struct trace_iterator *iter); 528 ssize_t (*read)(struct trace_iterator *iter, 531 ssize_t (*splice_read)(struct trace_iterator *iter, 542 enum print_line_t (*print_line)(struct trace_iterator *iter); 718 trace_buffer_iter(struct trace_iterator *iter, int cpu) in trace_buffer_iter() argument 720 return iter->buffer_iter ? iter->buffer_iter[cpu] : NULL; in trace_buffer_iter() 757 struct trace_entry *trace_find_next_entry(struct trace_iterator *iter, [all …]
|
/kernel/gcov/ |
D | gcc_4_7.c | 514 struct gcov_iterator *iter; in gcov_iter_new() local 516 iter = kzalloc(sizeof(struct gcov_iterator), GFP_KERNEL); in gcov_iter_new() 517 if (!iter) in gcov_iter_new() 520 iter->info = info; in gcov_iter_new() 522 iter->size = convert_to_gcda(NULL, info); in gcov_iter_new() 523 iter->buffer = vmalloc(iter->size); in gcov_iter_new() 524 if (!iter->buffer) in gcov_iter_new() 527 convert_to_gcda(iter->buffer, info); in gcov_iter_new() 529 return iter; in gcov_iter_new() 532 kfree(iter); in gcov_iter_new() [all …]
|
D | clang.c | 572 struct gcov_iterator *iter; in gcov_iter_new() local 574 iter = kzalloc(sizeof(struct gcov_iterator), GFP_KERNEL); in gcov_iter_new() 575 if (!iter) in gcov_iter_new() 578 iter->info = info; in gcov_iter_new() 580 iter->size = convert_to_gcda(NULL, info); in gcov_iter_new() 581 iter->buffer = vmalloc(iter->size); in gcov_iter_new() 582 if (!iter->buffer) in gcov_iter_new() 585 convert_to_gcda(iter->buffer, info); in gcov_iter_new() 587 return iter; in gcov_iter_new() 590 kfree(iter); in gcov_iter_new() [all …]
|
D | gcov.h | 66 void gcov_iter_free(struct gcov_iterator *iter); 67 void gcov_iter_start(struct gcov_iterator *iter); 68 int gcov_iter_next(struct gcov_iterator *iter); 69 int gcov_iter_write(struct gcov_iterator *iter, struct seq_file *seq); 70 struct gcov_info *gcov_iter_get_info(struct gcov_iterator *iter);
|
D | fs.c | 109 struct gcov_iterator *iter = data; in gcov_seq_next() local 112 if (gcov_iter_next(iter)) in gcov_seq_next() 115 return iter; in gcov_seq_next() 121 struct gcov_iterator *iter = data; in gcov_seq_show() local 123 if (gcov_iter_write(iter, seq)) in gcov_seq_show() 181 struct gcov_iterator *iter; in gcov_seq_open() local 195 iter = gcov_iter_new(info); in gcov_seq_open() 196 if (!iter) in gcov_seq_open() 202 seq->private = iter; in gcov_seq_open() 208 gcov_iter_free(iter); in gcov_seq_open() [all …]
|
/kernel/time/ |
D | timer_list.c | 314 struct timer_list_iter *iter = v; in timer_list_show() local 316 if (iter->cpu == -1 && !iter->second_pass) in timer_list_show() 317 timer_list_header(m, iter->now); in timer_list_show() 318 else if (!iter->second_pass) in timer_list_show() 319 print_cpu(m, iter->cpu, iter->now); in timer_list_show() 321 else if (iter->cpu == -1 && iter->second_pass) in timer_list_show() 324 print_tickdevice(m, tick_get_device(iter->cpu), iter->cpu); in timer_list_show() 329 static void *move_iter(struct timer_list_iter *iter, loff_t offset) in move_iter() argument 332 iter->cpu = cpumask_next(iter->cpu, cpu_online_mask); in move_iter() 333 if (iter->cpu >= nr_cpu_ids) { in move_iter() [all …]
|
/kernel/bpf/ |
D | inode.c | 188 static void map_iter_free(struct map_iter *iter) in map_iter_free() argument 190 if (iter) { in map_iter_free() 191 kfree(iter->key); in map_iter_free() 192 kfree(iter); in map_iter_free() 198 struct map_iter *iter; in map_iter_alloc() local 200 iter = kzalloc(sizeof(*iter), GFP_KERNEL | __GFP_NOWARN); in map_iter_alloc() 201 if (!iter) in map_iter_alloc() 204 iter->key = kzalloc(map->key_size, GFP_KERNEL | __GFP_NOWARN); in map_iter_alloc() 205 if (!iter->key) in map_iter_alloc() 208 return iter; in map_iter_alloc() [all …]
|
/kernel/sched/ |
D | rt.c | 518 #define for_each_rt_rq(rt_rq, iter, rq) \ argument 519 for (iter = container_of(&task_groups, typeof(*iter), list); \ 520 (iter = next_task_group(iter)) && \ 521 (rt_rq = iter->rt_rq[cpu_of(rq)]);) 625 #define for_each_rt_rq(rt_rq, iter, rq) \ argument 626 for ((void) iter, rt_rq = &rq->rt; rt_rq; rt_rq = NULL) 699 struct rt_rq *iter = sched_rt_period_rt_rq(rt_b, i); in do_balance_runtime() local 702 if (iter == rt_rq) in do_balance_runtime() 705 raw_spin_lock(&iter->rt_runtime_lock); in do_balance_runtime() 711 if (iter->rt_runtime == RUNTIME_INF) in do_balance_runtime() [all …]
|
D | psi.c | 800 static struct psi_group *iterate_groups(struct task_struct *task, void **iter) in iterate_groups() argument 802 if (*iter == &psi_system) in iterate_groups() 809 if (!*iter) in iterate_groups() 812 cgroup = cgroup_parent(*iter); in iterate_groups() 815 *iter = cgroup; in iterate_groups() 820 *iter = &psi_system; in iterate_groups() 844 void *iter = NULL; in psi_task_change() local 862 while ((group = iterate_groups(task, &iter))) in psi_task_change() 871 void *iter; in psi_task_switch() local 882 iter = NULL; in psi_task_switch() [all …]
|
/kernel/locking/ |
D | lockdep_proc.c | 598 struct lock_stat_data *iter; in ls_start() local 603 iter = data->stats + (*pos - 1); in ls_start() 604 if (iter >= data->iter_end) in ls_start() 605 iter = NULL; in ls_start() 607 return iter; in ls_start() 648 struct lock_stat_data *iter = data->stats; in lock_stat_open() local 655 iter->class = class; in lock_stat_open() 656 iter->stats = lock_stats(class); in lock_stat_open() 657 iter++; in lock_stat_open() 660 data->iter_end = iter; in lock_stat_open()
|