/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 65 irq_debug_show_chip(struct seq_file *m, struct irq_data *data, int ind) in irq_debug_show_chip() argument 70 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 | 14 #define SEQ_printf(m, x...) \ argument 16 if (m) \ 17 seq_printf(m, x); \ 57 static int sched_feat_show(struct seq_file *m, void *v) in sched_feat_show() argument 63 seq_puts(m, "NO_"); in sched_feat_show() 64 seq_printf(m, "%s ", sched_feat_names[i]); in sched_feat_show() 66 seq_puts(m, "\n"); in sched_feat_show() 200 static int sched_scaling_show(struct seq_file *m, void *v) in sched_scaling_show() argument 202 seq_printf(m, "%d\n", sysctl_sched_tunable_scaling); in sched_scaling_show() 247 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/module/ |
D | procfs.c | 16 static inline void print_unload_info(struct seq_file *m, struct module *mod) in print_unload_info() argument 21 seq_printf(m, " %i ", module_refcount(mod)); in print_unload_info() 29 seq_printf(m, "%s,", use->source->name); in print_unload_info() 34 seq_puts(m, "[permanent],"); in print_unload_info() 38 seq_puts(m, "-"); in print_unload_info() 41 static inline void print_unload_info(struct seq_file *m, struct module *mod) in print_unload_info() argument 44 seq_puts(m, " - -"); in print_unload_info() 49 static void *m_start(struct seq_file *m, loff_t *pos) in m_start() argument 55 static void *m_next(struct seq_file *m, void *p, loff_t *pos) in m_next() argument 60 static void m_stop(struct seq_file *m, void *p) in m_stop() argument [all …]
|
D | tracking.c | 68 static void *unloaded_tainted_modules_seq_start(struct seq_file *m, loff_t *pos) in unloaded_tainted_modules_seq_start() argument 75 static void *unloaded_tainted_modules_seq_next(struct seq_file *m, void *p, loff_t *pos) in unloaded_tainted_modules_seq_next() argument 80 static void unloaded_tainted_modules_seq_stop(struct seq_file *m, void *p) in unloaded_tainted_modules_seq_stop() argument 86 static int unloaded_tainted_modules_seq_show(struct seq_file *m, void *p) in unloaded_tainted_modules_seq_show() argument 96 seq_printf(m, "%s (%s) %llu", mod_taint->name, buf, mod_taint->count); in unloaded_tainted_modules_seq_show() 97 seq_puts(m, "\n"); in unloaded_tainted_modules_seq_show()
|
/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 37 CONFIG_XEN_DEV_EVTCHN=m 38 CONFIG_XEN_BLKDEV_FRONTEND=m 39 CONFIG_XEN_NETDEV_FRONTEND=m [all …]
|
/kernel/trace/ |
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_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_events_hist.c | 3390 static void hist_trigger_print_key(struct seq_file *m, 3412 static void track_data_snapshot_print(struct seq_file *m, in track_data_snapshot_print() argument 3430 seq_puts(m, "\nSnapshot taken (see tracing/snapshot). Details:\n"); in track_data_snapshot_print() 3431 seq_printf(m, "\ttriggering value { %s(%s) }: %10llu", in track_data_snapshot_print() 3435 seq_puts(m, "\ttriggered by event with key: "); in track_data_snapshot_print() 3436 hist_trigger_print_key(m, hist_data, track_data->key, &track_data->elt); in track_data_snapshot_print() 3437 seq_putc(m, '\n'); in track_data_snapshot_print() 3450 static void track_data_snapshot_print(struct seq_file *m, in track_data_snapshot_print() argument 3454 static void track_data_print(struct seq_file *m, in track_data_print() argument 3463 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 | 130 static void *trigger_next(struct seq_file *m, void *t, loff_t *pos) in trigger_next() argument 132 struct trace_event_file *event_file = event_file_data(m->private); in trigger_next() 154 static void *trigger_start(struct seq_file *m, loff_t *pos) in trigger_start() argument 160 event_file = event_file_data(m->private); in trigger_start() 170 static void trigger_stop(struct seq_file *m, void *t) in trigger_stop() argument 175 static int trigger_show(struct seq_file *m, void *v) in trigger_show() argument 181 seq_puts(m, "# Available triggers:\n"); in trigger_show() 182 seq_putc(m, '#'); in trigger_show() 185 seq_printf(m, " %s", p->name); in trigger_show() 186 seq_putc(m, '\n'); in trigger_show() [all …]
|
D | trace.c | 671 int trace_pid_show(struct seq_file *m, void *v) in trace_pid_show() argument 675 seq_printf(m, "%lu\n", pid); in trace_pid_show() 4041 static void *s_next(struct seq_file *m, void *v, loff_t *pos) in s_next() argument 4043 struct trace_iterator *iter = m->private; in s_next() 4101 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument 4103 struct trace_iterator *iter = m->private; in s_start() 4145 for (p = iter; p && l < *pos; p = s_next(m, p, &l)) in s_start() 4157 p = s_next(m, p, &l); in s_start() 4166 static void s_stop(struct seq_file *m, void *p) in s_stop() argument 4168 struct trace_iterator *iter = m->private; in s_stop() [all …]
|
D | trace_events.c | 1173 struct seq_file *m = file->private_data; in ftrace_event_write() local 1174 struct trace_array *tr = m->private; in ftrace_event_write() 1209 t_next(struct seq_file *m, void *v, loff_t *pos) in t_next() argument 1213 struct trace_array *tr = m->private; in t_next() 1231 static void *t_start(struct seq_file *m, loff_t *pos) in t_start() argument 1234 struct trace_array *tr = m->private; in t_start() 1241 file = t_next(m, file, &l); in t_start() 1249 s_next(struct seq_file *m, void *v, loff_t *pos) in s_next() argument 1252 struct trace_array *tr = m->private; in s_next() 1264 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument [all …]
|
D | trace_events_user.c | 1126 static int user_event_show(struct seq_file *m, struct dyn_event *ev) in user_event_show() argument 1133 seq_printf(m, "%s%s", USER_EVENTS_PREFIX, EVENT_NAME(user)); in user_event_show() 1139 seq_puts(m, " "); in user_event_show() 1141 seq_puts(m, "; "); in user_event_show() 1143 seq_printf(m, "%s %s", field->type, field->name); in user_event_show() 1146 seq_printf(m, " %d", field->size); in user_event_show() 1151 seq_puts(m, "\n"); in user_event_show() 1737 struct seq_file *m = file->private_data; in user_status_group() local 1739 if (!m) in user_status_group() 1742 return m->private; in user_status_group() [all …]
|
D | trace_functions.c | 661 ftrace_probe_print(const char *name, struct seq_file *m, in ftrace_probe_print() argument 668 seq_printf(m, "%ps:%s", (void *)ip, name); in ftrace_probe_print() 674 seq_printf(m, ":count=%ld\n", *count); in ftrace_probe_print() 676 seq_puts(m, ":unlimited\n"); in ftrace_probe_print() 682 ftrace_traceon_print(struct seq_file *m, unsigned long ip, in ftrace_traceon_print() argument 686 return ftrace_probe_print("traceon", m, ip, ops, data); in ftrace_traceon_print() 690 ftrace_traceoff_print(struct seq_file *m, unsigned long ip, in ftrace_traceoff_print() argument 693 return ftrace_probe_print("traceoff", m, ip, ops, data); in ftrace_traceoff_print() 697 ftrace_stacktrace_print(struct seq_file *m, unsigned long ip, in ftrace_stacktrace_print() argument 700 return ftrace_probe_print("stacktrace", m, ip, ops, data); in ftrace_stacktrace_print() [all …]
|
D | ftrace.c | 487 static int function_stat_headers(struct seq_file *m) in function_stat_headers() argument 490 seq_puts(m, " Function " in function_stat_headers() 495 seq_puts(m, " Function Hit\n" in function_stat_headers() 501 static int function_stat_show(struct seq_file *m, void *v) in function_stat_show() argument 526 seq_printf(m, " %-30.30s %10lu", str, rec->counter); in function_stat_show() 529 seq_puts(m, " "); in function_stat_show() 556 trace_print_seq(m, &s); in function_stat_show() 558 seq_putc(m, '\n'); in function_stat_show() 3296 t_probe_next(struct seq_file *m, loff_t *pos) in t_probe_next() argument 3298 struct ftrace_iterator *iter = m->private; in t_probe_next() [all …]
|
/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 | 362 struct btf_member *m; in cgroup_storage_check_btf() local 383 m = (struct btf_member *)(key_type + 1); in cgroup_storage_check_btf() 385 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf() 391 m++; in cgroup_storage_check_btf() 394 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf() 415 struct seq_file *m) in cgroup_storage_seq_show_elem() argument 428 btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); in cgroup_storage_seq_show_elem() 431 seq_puts(m, ": "); in cgroup_storage_seq_show_elem() 433 &READ_ONCE(storage->buf)->data[0], m); in cgroup_storage_seq_show_elem() 434 seq_puts(m, "\n"); in cgroup_storage_seq_show_elem() [all …]
|
/kernel/ |
D | kallsyms.c | 816 static void *s_next(struct seq_file *m, void *p, loff_t *pos) in s_next() argument 820 if (!update_iter(m->private, *pos)) in s_next() 825 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument 827 if (!update_iter(m->private, *pos)) in s_start() 829 return m->private; in s_start() 832 static void s_stop(struct seq_file *m, void *p) in s_stop() argument 836 static int s_show(struct seq_file *m, void *p) in s_show() argument 839 struct kallsym_iter *iter = m->private; in s_show() 856 seq_printf(m, "%px %c %s\t[%s]\n", value, in s_show() 859 seq_printf(m, "%px %c %s\n", value, in s_show() [all …]
|
/kernel/trace/rv/ |
D | rv_reactors.c | 87 static int reactors_show(struct seq_file *m, void *p) in reactors_show() argument 91 seq_printf(m, "%s\n", rea_def->reactor->name); in reactors_show() 95 static void reactors_stop(struct seq_file *m, void *p) in reactors_stop() argument 100 static void *reactors_start(struct seq_file *m, loff_t *pos) in reactors_start() argument 106 static void *reactors_next(struct seq_file *m, void *p, loff_t *pos) in reactors_next() argument 139 static int monitor_reactor_show(struct seq_file *m, void *p) in monitor_reactor_show() argument 141 struct rv_monitor_def *mdef = m->private; in monitor_reactor_show() 145 seq_printf(m, "[%s]\n", rdef->reactor->name); in monitor_reactor_show() 147 seq_printf(m, "%s\n", rdef->reactor->name); in monitor_reactor_show()
|