/kernel/irq/ |
D | matrix.c | 53 struct irq_matrix *m; in irq_alloc_matrix() local 58 m = kzalloc(sizeof(*m), GFP_KERNEL); in irq_alloc_matrix() 59 if (!m) in irq_alloc_matrix() 62 m->matrix_bits = matrix_bits; in irq_alloc_matrix() 63 m->alloc_start = alloc_start; in irq_alloc_matrix() 64 m->alloc_end = alloc_end; in irq_alloc_matrix() 65 m->alloc_size = alloc_end - alloc_start; in irq_alloc_matrix() 66 m->maps = alloc_percpu(*m->maps); in irq_alloc_matrix() 67 if (!m->maps) { in irq_alloc_matrix() 68 kfree(m); in irq_alloc_matrix() [all …]
|
D | debugfs.c | 16 #define BIT_MASK_DESCR(m) { .mask = m, .name = #m } argument 18 static void irq_debug_show_bits(struct seq_file *m, int ind, unsigned int state, in irq_debug_show_bits() argument 25 seq_printf(m, "%*s%s\n", ind + 12, "", sd->name); in irq_debug_show_bits() 30 static void irq_debug_show_masks(struct seq_file *m, struct irq_desc *desc) in irq_debug_show_masks() argument 36 seq_printf(m, "affinity: %*pbl\n", cpumask_pr_args(msk)); in irq_debug_show_masks() 39 seq_printf(m, "effectiv: %*pbl\n", cpumask_pr_args(msk)); in irq_debug_show_masks() 43 seq_printf(m, "pending: %*pbl\n", cpumask_pr_args(msk)); in irq_debug_show_masks() 47 static void irq_debug_show_masks(struct seq_file *m, struct irq_desc *desc) { } in irq_debug_show_masks() argument 64 irq_debug_show_chip(struct seq_file *m, struct irq_data *data, int ind) in irq_debug_show_chip() argument 69 seq_printf(m, "chip: None\n"); in irq_debug_show_chip() [all …]
|
D | proc.c | 46 static int show_irq_affinity(int type, struct seq_file *m) in show_irq_affinity() argument 48 struct irq_desc *desc = irq_to_desc((long)m->private); in show_irq_affinity() 73 seq_printf(m, "%*pbl\n", cpumask_pr_args(mask)); in show_irq_affinity() 77 seq_printf(m, "%*pb\n", cpumask_pr_args(mask)); in show_irq_affinity() 83 static int irq_affinity_hint_proc_show(struct seq_file *m, void *v) in irq_affinity_hint_proc_show() argument 85 struct irq_desc *desc = irq_to_desc((long)m->private); in irq_affinity_hint_proc_show() 97 seq_printf(m, "%*pb\n", cpumask_pr_args(mask)); in irq_affinity_hint_proc_show() 104 static int irq_affinity_proc_show(struct seq_file *m, void *v) in irq_affinity_proc_show() argument 106 return show_irq_affinity(AFFINITY, m); in irq_affinity_proc_show() 109 static int irq_affinity_list_proc_show(struct seq_file *m, void *v) in irq_affinity_list_proc_show() argument [all …]
|
D | cpuhotplug.c | 22 const struct cpumask *m = irq_data_get_effective_affinity_mask(d); in irq_needs_fixup() local 31 if (cpumask_empty(m)) in irq_needs_fixup() 32 m = irq_data_get_affinity_mask(d); in irq_needs_fixup() 39 if (cpumask_any_but(m, cpu) < nr_cpu_ids && in irq_needs_fixup() 40 cpumask_any_and(m, cpu_online_mask) >= nr_cpu_ids) { in irq_needs_fixup() 46 cpumask_pr_args(m), d->irq, cpu); in irq_needs_fixup() 50 return cpumask_test_cpu(cpu, m); in irq_needs_fixup()
|
/kernel/locking/ |
D | lockdep_proc.c | 38 static void *l_next(struct seq_file *m, void *v, loff_t *pos) in l_next() argument 47 static void *l_start(struct seq_file *m, loff_t *pos) in l_start() argument 56 static void l_stop(struct seq_file *m, void *v) in l_stop() argument 60 static void print_name(struct seq_file *m, struct lock_class *class) in print_name() argument 67 seq_printf(m, "%s", name); in print_name() 69 seq_printf(m, "%s", name); in print_name() 71 seq_printf(m, "#%d", class->name_version); in print_name() 73 seq_printf(m, "/%d", class->subclass); in print_name() 77 static int l_show(struct seq_file *m, void *v) in l_show() argument 85 seq_printf(m, "all lock classes:\n"); in l_show() [all …]
|
/kernel/time/ |
D | timer_list.c | 31 static void SEQ_printf(struct seq_file *m, const char *fmt, ...) in SEQ_printf() argument 37 if (m) in SEQ_printf() 38 seq_vprintf(m, fmt, args); in SEQ_printf() 46 print_timer(struct seq_file *m, struct hrtimer *taddr, struct hrtimer *timer, in print_timer() argument 49 SEQ_printf(m, " #%d: <%pK>, %ps", idx, taddr, timer->function); in print_timer() 50 SEQ_printf(m, ", S:%02x", timer->state); in print_timer() 51 SEQ_printf(m, "\n"); in print_timer() 52 SEQ_printf(m, " # expires at %Lu-%Lu nsecs [in %Ld to %Ld nsecs]\n", in print_timer() 60 print_active_timers(struct seq_file *m, struct hrtimer_clock_base *base, in print_active_timers() argument 91 print_timer(m, timer, &tmp, i, now); in print_active_timers() [all …]
|
/kernel/sched/ |
D | debug.c | 15 #define SEQ_printf(m, x...) \ argument 17 if (m) \ 18 seq_printf(m, x); \ 58 static int sched_feat_show(struct seq_file *m, void *v) in sched_feat_show() argument 64 seq_puts(m, "NO_"); in sched_feat_show() 65 seq_printf(m, "%s ", sched_feat_names[i]); in sched_feat_show() 67 seq_puts(m, "\n"); in sched_feat_show() 201 static int sched_scaling_show(struct seq_file *m, void *v) in sched_scaling_show() argument 203 seq_printf(m, "%d\n", sysctl_sched_tunable_scaling); in sched_scaling_show() 248 static int sched_dynamic_show(struct seq_file *m, void *v) in sched_dynamic_show() argument [all …]
|
D | cpuacct.c | 209 static int __cpuacct_percpu_seq_show(struct seq_file *m, in __cpuacct_percpu_seq_show() argument 212 struct cpuacct *ca = css_ca(seq_css(m)); in __cpuacct_percpu_seq_show() 218 seq_printf(m, "%llu ", (unsigned long long) percpu); in __cpuacct_percpu_seq_show() 220 seq_printf(m, "\n"); in __cpuacct_percpu_seq_show() 224 static int cpuacct_percpu_user_seq_show(struct seq_file *m, void *V) in cpuacct_percpu_user_seq_show() argument 226 return __cpuacct_percpu_seq_show(m, CPUACCT_STAT_USER); in cpuacct_percpu_user_seq_show() 229 static int cpuacct_percpu_sys_seq_show(struct seq_file *m, void *V) in cpuacct_percpu_sys_seq_show() argument 231 return __cpuacct_percpu_seq_show(m, CPUACCT_STAT_SYSTEM); in cpuacct_percpu_sys_seq_show() 234 static int cpuacct_percpu_seq_show(struct seq_file *m, void *V) in cpuacct_percpu_seq_show() argument 236 return __cpuacct_percpu_seq_show(m, CPUACCT_STAT_NSTATS); in cpuacct_percpu_seq_show() [all …]
|
/kernel/configs/ |
D | xen.config | 25 CONFIG_XEN_BLKDEV_BACKEND=m 26 CONFIG_XEN_NETDEV_BACKEND=m 28 CONFIG_XEN_WDT=m 29 CONFIG_XEN_SCSI_BACKEND=m 31 CONFIG_XEN_FBDEV_FRONTEND=m 33 CONFIG_INPUT_XEN_KBDDEV_FRONTEND=m 34 CONFIG_XEN_SCSI_FRONTEND=m 38 CONFIG_XEN_DEV_EVTCHN=m 39 CONFIG_XEN_BLKDEV_FRONTEND=m 40 CONFIG_XEN_NETDEV_FRONTEND=m [all …]
|
/kernel/trace/ |
D | trace_stack.c | 376 __next(struct seq_file *m, loff_t *pos) in __next() argument 383 m->private = (void *)n; in __next() 384 return &m->private; in __next() 388 t_next(struct seq_file *m, void *v, loff_t *pos) in t_next() argument 391 return __next(m, pos); in t_next() 394 static void *t_start(struct seq_file *m, loff_t *pos) in t_start() argument 405 return __next(m, pos); in t_start() 408 static void t_stop(struct seq_file *m, void *p) in t_stop() argument 417 static void trace_lookup_stack(struct seq_file *m, long i) in trace_lookup_stack() argument 421 seq_printf(m, "%pS\n", (void *)addr); in trace_lookup_stack() [all …]
|
D | trace_branch.c | 236 static int annotated_branch_stat_headers(struct seq_file *m) in annotated_branch_stat_headers() argument 238 seq_puts(m, " correct incorrect % " in annotated_branch_stat_headers() 271 static void branch_stat_show(struct seq_file *m, in branch_stat_show() argument 282 seq_puts(m, " X "); in branch_stat_show() 284 seq_printf(m, "%3ld ", percent); in branch_stat_show() 286 seq_printf(m, "%-30.30s %-20.20s %d\n", p->func, f, p->line); in branch_stat_show() 289 static int branch_stat_show_normal(struct seq_file *m, in branch_stat_show_normal() argument 292 seq_printf(m, "%8lu %8lu ", p->correct, p->incorrect); in branch_stat_show_normal() 293 branch_stat_show(m, p, f); in branch_stat_show_normal() 297 static int annotate_branch_stat_show(struct seq_file *m, void *v) in annotate_branch_stat_show() argument [all …]
|
D | trace_events_hist.c | 3316 static void hist_trigger_print_key(struct seq_file *m, 3338 static void track_data_snapshot_print(struct seq_file *m, in track_data_snapshot_print() argument 3356 seq_puts(m, "\nSnapshot taken (see tracing/snapshot). Details:\n"); in track_data_snapshot_print() 3357 seq_printf(m, "\ttriggering value { %s(%s) }: %10llu", in track_data_snapshot_print() 3361 seq_puts(m, "\ttriggered by event with key: "); in track_data_snapshot_print() 3362 hist_trigger_print_key(m, hist_data, track_data->key, &track_data->elt); in track_data_snapshot_print() 3363 seq_putc(m, '\n'); in track_data_snapshot_print() 3376 static void track_data_snapshot_print(struct seq_file *m, in track_data_snapshot_print() argument 3380 static void track_data_print(struct seq_file *m, in track_data_print() argument 3389 seq_printf(m, "\n\tmax: %10llu", track_val); in track_data_print() [all …]
|
D | trace_printk.c | 299 t_start(struct seq_file *m, loff_t *pos) in t_start() argument 305 static void *t_next(struct seq_file *m, void * v, loff_t *pos) in t_next() argument 311 static int t_show(struct seq_file *m, void *v) in t_show() argument 320 seq_printf(m, "0x%lx : \"", *(unsigned long *)fmt); in t_show() 328 seq_puts(m, "\\n"); in t_show() 331 seq_puts(m, "\\t"); in t_show() 334 seq_putc(m, '\\'); in t_show() 337 seq_puts(m, "\\\""); in t_show() 340 seq_putc(m, str[i]); in t_show() 343 seq_puts(m, "\"\n"); in t_show() [all …]
|
D | trace_events_trigger.c | 116 static void *trigger_next(struct seq_file *m, void *t, loff_t *pos) in trigger_next() argument 118 struct trace_event_file *event_file = event_file_data(m->private); in trigger_next() 140 static void *trigger_start(struct seq_file *m, loff_t *pos) in trigger_start() argument 146 event_file = event_file_data(m->private); in trigger_start() 156 static void trigger_stop(struct seq_file *m, void *t) in trigger_stop() argument 161 static int trigger_show(struct seq_file *m, void *v) in trigger_show() argument 167 seq_puts(m, "# Available triggers:\n"); in trigger_show() 168 seq_putc(m, '#'); in trigger_show() 171 seq_printf(m, " %s", p->name); in trigger_show() 172 seq_putc(m, '\n'); in trigger_show() [all …]
|
D | trace.c | 661 int trace_pid_show(struct seq_file *m, void *v) in trace_pid_show() argument 665 seq_printf(m, "%lu\n", pid); in trace_pid_show() 4021 static void *s_next(struct seq_file *m, void *v, loff_t *pos) in s_next() argument 4023 struct trace_iterator *iter = m->private; in s_next() 4081 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument 4083 struct trace_iterator *iter = m->private; in s_start() 4125 for (p = iter; p && l < *pos; p = s_next(m, p, &l)) in s_start() 4137 p = s_next(m, p, &l); in s_start() 4146 static void s_stop(struct seq_file *m, void *p) in s_stop() argument 4148 struct trace_iterator *iter = m->private; in s_stop() [all …]
|
D | trace_events.c | 1154 struct seq_file *m = file->private_data; in ftrace_event_write() local 1155 struct trace_array *tr = m->private; in ftrace_event_write() 1190 t_next(struct seq_file *m, void *v, loff_t *pos) in t_next() argument 1194 struct trace_array *tr = m->private; in t_next() 1212 static void *t_start(struct seq_file *m, loff_t *pos) in t_start() argument 1215 struct trace_array *tr = m->private; in t_start() 1222 file = t_next(m, file, &l); in t_start() 1230 s_next(struct seq_file *m, void *v, loff_t *pos) in s_next() argument 1233 struct trace_array *tr = m->private; in s_next() 1245 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument [all …]
|
D | ftrace.c | 490 static int function_stat_headers(struct seq_file *m) in function_stat_headers() argument 493 seq_puts(m, " Function " in function_stat_headers() 498 seq_puts(m, " Function Hit\n" in function_stat_headers() 504 static int function_stat_show(struct seq_file *m, void *v) in function_stat_show() argument 529 seq_printf(m, " %-30.30s %10lu", str, rec->counter); in function_stat_show() 532 seq_puts(m, " "); in function_stat_show() 559 trace_print_seq(m, &s); in function_stat_show() 561 seq_putc(m, '\n'); in function_stat_show() 3275 t_probe_next(struct seq_file *m, loff_t *pos) in t_probe_next() argument 3277 struct ftrace_iterator *iter = m->private; in t_probe_next() [all …]
|
D | trace_functions.c | 666 ftrace_probe_print(const char *name, struct seq_file *m, in ftrace_probe_print() argument 673 seq_printf(m, "%ps:%s", (void *)ip, name); in ftrace_probe_print() 679 seq_printf(m, ":count=%ld\n", *count); in ftrace_probe_print() 681 seq_puts(m, ":unlimited\n"); in ftrace_probe_print() 687 ftrace_traceon_print(struct seq_file *m, unsigned long ip, in ftrace_traceon_print() argument 691 return ftrace_probe_print("traceon", m, ip, ops, data); in ftrace_traceon_print() 695 ftrace_traceoff_print(struct seq_file *m, unsigned long ip, in ftrace_traceoff_print() argument 698 return ftrace_probe_print("traceoff", m, ip, ops, data); in ftrace_traceoff_print() 702 ftrace_stacktrace_print(struct seq_file *m, unsigned long ip, in ftrace_stacktrace_print() argument 705 return ftrace_probe_print("stacktrace", m, ip, ops, data); in ftrace_stacktrace_print() [all …]
|
D | trace_mmiotrace.c | 214 struct mmiotrace_map *m; in mmio_print_map() local 221 m = &field->map; in mmio_print_map() 223 switch (m->opcode) { in mmio_print_map() 227 secs, usec_rem, m->map_id, in mmio_print_map() 228 (unsigned long long)m->phys, m->virt, m->len, in mmio_print_map() 234 secs, usec_rem, m->map_id, 0UL, 0); in mmio_print_map()
|
D | trace_recursion_record.c | 121 static void *recursed_function_seq_start(struct seq_file *m, loff_t *pos) in recursed_function_seq_start() argument 141 static void *recursed_function_seq_next(struct seq_file *m, void *v, loff_t *pos) in recursed_function_seq_next() argument 152 static void recursed_function_seq_stop(struct seq_file *m, void *v) in recursed_function_seq_stop() argument 158 static int recursed_function_seq_show(struct seq_file *m, void *v) in recursed_function_seq_show() argument 168 ret = trace_print_seq(m, tseq); in recursed_function_seq_show()
|
D | trace_dynevent.h | 43 int (*show)(struct seq_file *m, struct dyn_event *ev); 98 void *dyn_event_seq_start(struct seq_file *m, loff_t *pos); 99 void *dyn_event_seq_next(struct seq_file *m, void *v, loff_t *pos); 100 void dyn_event_seq_stop(struct seq_file *m, void *v);
|
/kernel/bpf/ |
D | inode.c | 179 static struct map_iter *map_iter(struct seq_file *m) in map_iter() argument 181 return m->private; in map_iter() 184 static struct bpf_map *seq_file_to_map(struct seq_file *m) in seq_file_to_map() argument 186 return file_inode(m->file)->i_private; in seq_file_to_map() 216 static void *map_seq_next(struct seq_file *m, void *v, loff_t *pos) in map_seq_next() argument 218 struct bpf_map *map = seq_file_to_map(m); in map_seq_next() 219 void *key = map_iter(m)->key; in map_seq_next() 223 if (map_iter(m)->done) in map_seq_next() 233 map_iter(m)->done = true; in map_seq_next() 240 static void *map_seq_start(struct seq_file *m, loff_t *pos) in map_seq_start() argument [all …]
|
D | local_storage.c | 363 struct btf_member *m; in cgroup_storage_check_btf() local 384 m = (struct btf_member *)(key_type + 1); in cgroup_storage_check_btf() 386 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf() 392 m++; in cgroup_storage_check_btf() 395 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf() 416 struct seq_file *m) in cgroup_storage_seq_show_elem() argument 429 btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); in cgroup_storage_seq_show_elem() 432 seq_puts(m, ": "); in cgroup_storage_seq_show_elem() 434 &READ_ONCE(storage->buf)->data[0], m); in cgroup_storage_seq_show_elem() 435 seq_puts(m, "\n"); in cgroup_storage_seq_show_elem() [all …]
|
/kernel/power/ |
D | swap.c | 542 unsigned int m; in save_image() local 554 m = nr_to_write / 10; in save_image() 555 if (!m) in save_image() 556 m = 1; in save_image() 566 if (!(nr_pages % m)) in save_image() 568 nr_pages / m * 10); in save_image() 679 unsigned int m; in save_image_lzo() local 773 m = nr_to_write / 10; in save_image_lzo() 774 if (!m) in save_image_lzo() 775 m = 1; in save_image_lzo() [all …]
|
/kernel/ |
D | dma.c | 118 static int proc_dma_show(struct seq_file *m, void *v) in proc_dma_show() argument 124 seq_printf(m, "%2d: %s\n", i, in proc_dma_show() 131 static int proc_dma_show(struct seq_file *m, void *v) in proc_dma_show() argument 133 seq_puts(m, "No DMA\n"); in proc_dma_show()
|