Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 84) sorted by relevance

1234

/kernel/irq/
Dmatrix.c53 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 …]
Ddebugfs.c16 #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 …]
Dproc.c46 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 …]
Dcpuhotplug.c22 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/
Dlockdep_proc.c38 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/
Dtimer_list.c31 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/
Ddebug.c14 #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 …]
Dcpuacct.c209 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/
Dprocfs.c16 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 …]
Dtracking.c69 static void *unloaded_tainted_modules_seq_start(struct seq_file *m, loff_t *pos) in unloaded_tainted_modules_seq_start() argument
76 static void *unloaded_tainted_modules_seq_next(struct seq_file *m, void *p, loff_t *pos) in unloaded_tainted_modules_seq_next() argument
81 static void unloaded_tainted_modules_seq_stop(struct seq_file *m, void *p) in unloaded_tainted_modules_seq_stop() argument
87 static int unloaded_tainted_modules_seq_show(struct seq_file *m, void *p) in unloaded_tainted_modules_seq_show() argument
97 seq_printf(m, "%s (%s) %llu", mod_taint->name, buf, mod_taint->count); in unloaded_tainted_modules_seq_show()
98 seq_puts(m, "\n"); in unloaded_tainted_modules_seq_show()
/kernel/configs/
Dxen.config27 CONFIG_XEN_BLKDEV_BACKEND=m
28 CONFIG_XEN_NETDEV_BACKEND=m
30 CONFIG_XEN_WDT=m
31 CONFIG_XEN_SCSI_BACKEND=m
33 CONFIG_XEN_FBDEV_FRONTEND=m
35 CONFIG_INPUT_XEN_KBDDEV_FRONTEND=m
36 CONFIG_XEN_SCSI_FRONTEND=m
39 CONFIG_XEN_DEV_EVTCHN=m
40 CONFIG_XEN_BLKDEV_FRONTEND=m
41 CONFIG_XEN_NETDEV_FRONTEND=m
[all …]
/kernel/trace/
Dtrace_branch.c236 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 …]
Dtrace_stack.c376 __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 …]
Dtrace_events_hist.c3438 static void hist_trigger_print_key(struct seq_file *m,
3460 static void track_data_snapshot_print(struct seq_file *m, in track_data_snapshot_print() argument
3478 seq_puts(m, "\nSnapshot taken (see tracing/snapshot). Details:\n"); in track_data_snapshot_print()
3479 seq_printf(m, "\ttriggering value { %s(%s) }: %10llu", in track_data_snapshot_print()
3483 seq_puts(m, "\ttriggered by event with key: "); in track_data_snapshot_print()
3484 hist_trigger_print_key(m, hist_data, track_data->key, &track_data->elt); in track_data_snapshot_print()
3485 seq_putc(m, '\n'); in track_data_snapshot_print()
3498 static void track_data_snapshot_print(struct seq_file *m, in track_data_snapshot_print() argument
3502 static void track_data_print(struct seq_file *m, in track_data_print() argument
3511 seq_printf(m, "\n\tmax: %10llu", track_val); in track_data_print()
[all …]
Dtrace_printk.c299 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 …]
Dtrace_events_trigger.c132 static void *trigger_next(struct seq_file *m, void *t, loff_t *pos) in trigger_next() argument
134 struct trace_event_file *event_file = event_file_data(m->private); in trigger_next()
156 static void *trigger_start(struct seq_file *m, loff_t *pos) in trigger_start() argument
162 event_file = event_file_data(m->private); in trigger_start()
172 static void trigger_stop(struct seq_file *m, void *t) in trigger_stop() argument
177 static int trigger_show(struct seq_file *m, void *v) in trigger_show() argument
183 seq_puts(m, "# Available triggers:\n"); in trigger_show()
184 seq_putc(m, '#'); in trigger_show()
187 seq_printf(m, " %s", p->name); in trigger_show()
188 seq_putc(m, '\n'); in trigger_show()
[all …]
Dtrace.c711 int trace_pid_show(struct seq_file *m, void *v) in trace_pid_show() argument
715 seq_printf(m, "%lu\n", pid); in trace_pid_show()
4108 static void *s_next(struct seq_file *m, void *v, loff_t *pos) in s_next() argument
4110 struct trace_iterator *iter = m->private; in s_next()
4168 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument
4170 struct trace_iterator *iter = m->private; in s_start()
4206 for (p = iter; p && l < *pos; p = s_next(m, p, &l)) in s_start()
4218 p = s_next(m, p, &l); in s_start()
4227 static void s_stop(struct seq_file *m, void *p) in s_stop() argument
4229 struct trace_iterator *iter = m->private; in s_stop()
[all …]
Dftrace.c518 static int function_stat_headers(struct seq_file *m) in function_stat_headers() argument
521 seq_puts(m, " Function " in function_stat_headers()
526 seq_puts(m, " Function Hit\n" in function_stat_headers()
532 static int function_stat_show(struct seq_file *m, void *v) in function_stat_show() argument
557 seq_printf(m, " %-30.30s %10lu", str, rec->counter); in function_stat_show()
560 seq_puts(m, " "); in function_stat_show()
587 trace_print_seq(m, &s); in function_stat_show()
589 seq_putc(m, '\n'); in function_stat_show()
3354 t_probe_next(struct seq_file *m, loff_t *pos) in t_probe_next() argument
3356 struct ftrace_iterator *iter = m->private; in t_probe_next()
[all …]
Dtrace_events.c1184 struct seq_file *m = file->private_data; in ftrace_event_write() local
1185 struct trace_array *tr = m->private; in ftrace_event_write()
1220 t_next(struct seq_file *m, void *v, loff_t *pos) in t_next() argument
1224 struct trace_array *tr = m->private; in t_next()
1242 static void *t_start(struct seq_file *m, loff_t *pos) in t_start() argument
1245 struct trace_array *tr = m->private; in t_start()
1252 file = t_next(m, file, &l); in t_start()
1260 s_next(struct seq_file *m, void *v, loff_t *pos) in s_next() argument
1263 struct trace_array *tr = m->private; in s_next()
1275 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument
[all …]
Dtrace_functions.c661 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 …]
/kernel/bpf/
Dinode.c177 static struct map_iter *map_iter(struct seq_file *m) in map_iter() argument
179 return m->private; in map_iter()
182 static struct bpf_map *seq_file_to_map(struct seq_file *m) in seq_file_to_map() argument
184 return file_inode(m->file)->i_private; in seq_file_to_map()
214 static void *map_seq_next(struct seq_file *m, void *v, loff_t *pos) in map_seq_next() argument
216 struct bpf_map *map = seq_file_to_map(m); in map_seq_next()
217 void *key = map_iter(m)->key; in map_seq_next()
221 if (map_iter(m)->done) in map_seq_next()
231 map_iter(m)->done = true; in map_seq_next()
238 static void *map_seq_start(struct seq_file *m, loff_t *pos) in map_seq_start() argument
[all …]
Dlocal_storage.c362 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/
Dkallsyms.c759 static void *s_next(struct seq_file *m, void *p, loff_t *pos) in s_next() argument
763 if (!update_iter(m->private, *pos)) in s_next()
768 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument
770 if (!update_iter(m->private, *pos)) in s_start()
772 return m->private; in s_start()
775 static void s_stop(struct seq_file *m, void *p) in s_stop() argument
779 static int s_show(struct seq_file *m, void *p) in s_show() argument
782 struct kallsym_iter *iter = m->private; in s_show()
799 seq_printf(m, "%px %c %s\t[%s]\n", value, in s_show()
802 seq_printf(m, "%px %c %s\n", value, in s_show()
[all …]
/kernel/trace/rv/
Drv_reactors.c87 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()
/kernel/power/
Dswap.c543 unsigned int m; in save_image() local
555 m = nr_to_write / 10; in save_image()
556 if (!m) in save_image()
557 m = 1; in save_image()
567 if (!(nr_pages % m)) in save_image()
569 nr_pages / m * 10); in save_image()
680 unsigned int m; in save_image_lzo() local
771 m = nr_to_write / 10; in save_image_lzo()
772 if (!m) in save_image_lzo()
773 m = 1; in save_image_lzo()
[all …]

1234