/kernel/ |
D | kallsyms.c | 495 static int get_ksymbol_arch(struct kallsym_iter *iter) in get_ksymbol_arch() argument 497 int ret = arch_get_kallsym(iter->pos - kallsyms_num_syms, in get_ksymbol_arch() 498 &iter->value, &iter->type, in get_ksymbol_arch() 499 iter->name); in get_ksymbol_arch() 502 iter->pos_arch_end = iter->pos; in get_ksymbol_arch() 509 static int get_ksymbol_mod(struct kallsym_iter *iter) in get_ksymbol_mod() argument 511 int ret = module_get_kallsym(iter->pos - iter->pos_arch_end, in get_ksymbol_mod() 512 &iter->value, &iter->type, in get_ksymbol_mod() 513 iter->name, iter->module_name, in get_ksymbol_mod() 514 &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 (addr_conflict(iter, start, end)) in __jump_label_text_reserved() 327 iter++; in __jump_label_text_reserved() 458 struct jump_entry *iter; in jump_label_init() local 476 for (iter = iter_start; iter < iter_stop; iter++) { in jump_label_init() 480 if (jump_label_type(iter) == JUMP_LABEL_NOP) in jump_label_init() 481 arch_jump_label_transform_static(iter, JUMP_LABEL_NOP); in jump_label_init() 483 if (init_section_contains((void *)jump_entry_code(iter), 1)) in jump_label_init() [all …]
|
D | ucount.c | 192 struct ucounts *ucounts, *iter, *bad; in inc_ucount() local 195 for (iter = ucounts; iter; iter = tns->ucounts) { in inc_ucount() 197 tns = iter->ns; in inc_ucount() 199 if (!atomic_inc_below(&iter->ucount[type], max)) in inc_ucount() 204 bad = iter; in inc_ucount() 205 for (iter = ucounts; iter != bad; iter = iter->ns->ucounts) in inc_ucount() 206 atomic_dec(&iter->ucount[type]); in inc_ucount() 214 struct ucounts *iter; in dec_ucount() local 215 for (iter = ucounts; iter; iter = iter->ns->ucounts) { in dec_ucount() 216 int dec = atomic_dec_if_positive(&iter->ucount[type]); in dec_ucount()
|
/kernel/gcov/ |
D | gcc_3_4.c | 358 static struct gcov_fn_info *get_func(struct gcov_iterator *iter) in get_func() argument 360 return get_fn_info(iter->info, iter->function); in get_func() 363 static struct type_info *get_type(struct gcov_iterator *iter) in get_type() argument 365 return &iter->type_info[iter->type]; in get_type() 376 struct gcov_iterator *iter; in gcov_iter_new() local 378 iter = kzalloc(struct_size(iter, type_info, num_counter_active(info)), in gcov_iter_new() 380 if (iter) in gcov_iter_new() 381 iter->info = info; in gcov_iter_new() 383 return iter; in gcov_iter_new() 390 void gcov_iter_free(struct gcov_iterator *iter) in gcov_iter_free() argument [all …]
|
D | gcc_4_7.c | 493 struct gcov_iterator *iter; in gcov_iter_new() local 495 iter = kzalloc(sizeof(struct gcov_iterator), GFP_KERNEL); in gcov_iter_new() 496 if (!iter) in gcov_iter_new() 499 iter->info = info; in gcov_iter_new() 501 iter->size = convert_to_gcda(NULL, info); in gcov_iter_new() 502 iter->buffer = vmalloc(iter->size); in gcov_iter_new() 503 if (!iter->buffer) in gcov_iter_new() 506 convert_to_gcda(iter->buffer, info); in gcov_iter_new() 508 return iter; in gcov_iter_new() 511 kfree(iter); in gcov_iter_new() [all …]
|
D | clang.c | 492 struct gcov_iterator *iter; in gcov_iter_new() local 494 iter = kzalloc(sizeof(struct gcov_iterator), GFP_KERNEL); in gcov_iter_new() 495 if (!iter) in gcov_iter_new() 498 iter->info = info; in gcov_iter_new() 500 iter->size = convert_to_gcda(NULL, info); in gcov_iter_new() 501 iter->buffer = vmalloc(iter->size); in gcov_iter_new() 502 if (!iter->buffer) in gcov_iter_new() 505 convert_to_gcda(iter->buffer, info); in gcov_iter_new() 507 return iter; in gcov_iter_new() 510 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 111 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/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() 277 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.trace_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->trace_buffer->buffer, iter->cpu, in get_return_for_leaf() 449 event = ring_buffer_peek(iter->trace_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->trace_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 | 1631 static int wait_on_pipe(struct trace_iterator *iter, int full) in wait_on_pipe() argument 1634 if (trace_buffer_iter(iter, iter->cpu_file)) in wait_on_pipe() 1637 return ring_buffer_wait(iter->trace_buffer->buffer, iter->cpu_file, in wait_on_pipe() 2531 struct trace_iterator *iter = tracepoint_print_iter; in output_printk() local 2534 if (WARN_ON_ONCE(!iter)) in output_printk() 2545 trace_seq_init(&iter->seq); in output_printk() 2546 iter->ent = fbuffer->entry; in output_printk() 2547 event_call->event.funcs->trace(iter, 0, event); in output_printk() 2548 trace_seq_putc(&iter->seq, 0); in output_printk() 2549 printk("%s", iter->seq.buffer); 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->trace_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 | 2445 struct ftrace_rec_iter *iter = &ftrace_rec_iter; in ftrace_rec_iter_start() local 2447 iter->pg = ftrace_pages_start; in ftrace_rec_iter_start() 2448 iter->index = 0; in ftrace_rec_iter_start() 2451 while (iter->pg && !iter->pg->index) in ftrace_rec_iter_start() 2452 iter->pg = iter->pg->next; in ftrace_rec_iter_start() 2454 if (!iter->pg) in ftrace_rec_iter_start() 2457 return iter; in ftrace_rec_iter_start() 2466 struct ftrace_rec_iter *ftrace_rec_iter_next(struct ftrace_rec_iter *iter) in ftrace_rec_iter_next() argument 2468 iter->index++; in ftrace_rec_iter_next() 2470 if (iter->index >= iter->pg->index) { in ftrace_rec_iter_next() [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 | ring_buffer.c | 1918 rb_iter_head_event(struct ring_buffer_iter *iter) in rb_iter_head_event() argument 1920 return __rb_page_index(iter->head_page, iter->head); in rb_iter_head_event() 1948 static void rb_inc_iter(struct ring_buffer_iter *iter) in rb_inc_iter() argument 1950 struct ring_buffer_per_cpu *cpu_buffer = iter->cpu_buffer; in rb_inc_iter() 1958 if (iter->head_page == cpu_buffer->reader_page) in rb_inc_iter() 1959 iter->head_page = rb_set_head_page(cpu_buffer); in rb_inc_iter() 1961 rb_inc_page(cpu_buffer, &iter->head_page); in rb_inc_iter() 1963 iter->read_stamp = iter->head_page->page->time_stamp; in rb_inc_iter() 1964 iter->head = 0; in rb_inc_iter() 3544 static void rb_iter_reset(struct ring_buffer_iter *iter) in rb_iter_reset() argument [all …]
|
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.h | 473 void (*open)(struct trace_iterator *iter); 474 void (*pipe_open)(struct trace_iterator *iter); 475 void (*close)(struct trace_iterator *iter); 476 void (*pipe_close)(struct trace_iterator *iter); 477 ssize_t (*read)(struct trace_iterator *iter, 480 ssize_t (*splice_read)(struct trace_iterator *iter, 491 enum print_line_t (*print_line)(struct trace_iterator *iter); 674 trace_buffer_iter(struct trace_iterator *iter, int cpu) in trace_buffer_iter() argument 676 return iter->buffer_iter ? iter->buffer_iter[cpu] : NULL; in trace_buffer_iter() 710 struct trace_entry *trace_find_next_entry(struct trace_iterator *iter, [all …]
|
D | blktrace.c | 1232 typedef void (blk_log_action_t) (struct trace_iterator *iter, const char *act, 1235 static void blk_log_action_classic(struct trace_iterator *iter, const char *act, in blk_log_action_classic() argument 1239 unsigned long long ts = iter->ts; in blk_log_action_classic() 1242 const struct blk_io_trace *t = te_blk_io_trace(iter->ent); in blk_log_action_classic() 1246 trace_seq_printf(&iter->seq, in blk_log_action_classic() 1248 MAJOR(t->device), MINOR(t->device), iter->cpu, in blk_log_action_classic() 1249 secs, nsec_rem, iter->ent->pid, act, rwbs); in blk_log_action_classic() 1252 static void blk_log_action(struct trace_iterator *iter, const char *act, in blk_log_action() argument 1256 const struct blk_io_trace *t = te_blk_io_trace(iter->ent); in blk_log_action() 1260 const union kernfs_node_id *id = cgid_start(iter->ent); in blk_log_action() [all …]
|
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() 234 static void irqsoff_trace_close(struct trace_iterator *iter) in irqsoff_trace_close() argument 236 if (iter->private) in irqsoff_trace_close() 237 graph_trace_close(iter); in irqsoff_trace_close() 245 static enum print_line_t irqsoff_print_line(struct trace_iterator *iter) in irqsoff_print_line() argument 251 if (is_graph(iter->tr)) in irqsoff_print_line() 252 return print_graph_function_flags(iter, GRAPH_TRACER_FLAGS); in irqsoff_print_line() 281 static enum print_line_t irqsoff_print_line(struct trace_iterator *iter) in irqsoff_print_line() argument [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() 176 static void wakeup_trace_close(struct trace_iterator *iter) in wakeup_trace_close() argument 178 if (iter->private) in wakeup_trace_close() 179 graph_trace_close(iter); in wakeup_trace_close() 189 static enum print_line_t wakeup_print_line(struct trace_iterator *iter) in wakeup_print_line() argument 195 if (is_graph(iter->tr)) in wakeup_print_line() 196 return print_graph_function_flags(iter, GRAPH_TRACER_FLAGS); in wakeup_print_line() 289 static enum print_line_t wakeup_print_line(struct trace_iterator *iter) in wakeup_print_line() argument [all …]
|
/kernel/time/ |
D | timer_list.c | 306 struct timer_list_iter *iter = v; in timer_list_show() local 308 if (iter->cpu == -1 && !iter->second_pass) in timer_list_show() 309 timer_list_header(m, iter->now); in timer_list_show() 310 else if (!iter->second_pass) in timer_list_show() 311 print_cpu(m, iter->cpu, iter->now); in timer_list_show() 313 else if (iter->cpu == -1 && iter->second_pass) in timer_list_show() 316 print_tickdevice(m, tick_get_device(iter->cpu), iter->cpu); in timer_list_show() 321 static void *move_iter(struct timer_list_iter *iter, loff_t offset) in move_iter() argument 324 iter->cpu = cpumask_next(iter->cpu, cpu_online_mask); in move_iter() 325 if (iter->cpu >= nr_cpu_ids) { in move_iter() [all …]
|
/kernel/bpf/ |
D | inode.c | 166 static void map_iter_free(struct map_iter *iter) in map_iter_free() argument 168 if (iter) { in map_iter_free() 169 kfree(iter->key); in map_iter_free() 170 kfree(iter); in map_iter_free() 176 struct map_iter *iter; in map_iter_alloc() local 178 iter = kzalloc(sizeof(*iter), GFP_KERNEL | __GFP_NOWARN); in map_iter_alloc() 179 if (!iter) in map_iter_alloc() 182 iter->key = kzalloc(map->key_size, GFP_KERNEL | __GFP_NOWARN); in map_iter_alloc() 183 if (!iter->key) in map_iter_alloc() 186 return iter; in map_iter_alloc() [all …]
|
/kernel/sched/ |
D | rt.c | 509 #define for_each_rt_rq(rt_rq, iter, rq) \ argument 510 for (iter = container_of(&task_groups, typeof(*iter), list); \ 511 (iter = next_task_group(iter)) && \ 512 (rt_rq = iter->rt_rq[cpu_of(rq)]);) 616 #define for_each_rt_rq(rt_rq, iter, rq) \ argument 617 for ((void) iter, rt_rq = &rq->rt; rt_rq; rt_rq = NULL) 690 struct rt_rq *iter = sched_rt_period_rt_rq(rt_b, i); in do_balance_runtime() local 693 if (iter == rt_rq) in do_balance_runtime() 696 raw_spin_lock(&iter->rt_runtime_lock); in do_balance_runtime() 702 if (iter->rt_runtime == RUNTIME_INF) in do_balance_runtime() [all …]
|
/kernel/locking/ |
D | lockdep_proc.c | 548 struct lock_stat_data *iter; in ls_start() local 553 iter = data->stats + (*pos - 1); in ls_start() 554 if (iter >= data->iter_end) in ls_start() 555 iter = NULL; in ls_start() 557 return iter; in ls_start() 598 struct lock_stat_data *iter = data->stats; in lock_stat_open() local 602 iter->class = class; in lock_stat_open() 603 iter->stats = lock_stats(class); in lock_stat_open() 604 iter++; in lock_stat_open() 606 data->iter_end = iter; in lock_stat_open()
|