Lines Matching refs:m
485 int trace_pid_show(struct seq_file *m, void *v) in trace_pid_show() argument
489 seq_printf(m, "%lu\n", pid); in trace_pid_show()
3379 static void *s_next(struct seq_file *m, void *v, loff_t *pos) in s_next() argument
3381 struct trace_iterator *iter = m->private; in s_next()
3440 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument
3442 struct trace_iterator *iter = m->private; in s_start()
3480 for (p = iter; p && l < *pos; p = s_next(m, p, &l)) in s_start()
3492 p = s_next(m, p, &l); in s_start()
3501 static void s_stop(struct seq_file *m, void *p) in s_stop() argument
3503 struct trace_iterator *iter = m->private; in s_stop()
3580 static void print_lat_help_header(struct seq_file *m) in print_lat_help_header() argument
3582 seq_puts(m, "# _------=> CPU# \n" in print_lat_help_header()
3592 static void print_event_info(struct trace_buffer *buf, struct seq_file *m) in print_event_info() argument
3598 seq_printf(m, "# entries-in-buffer/entries-written: %lu/%lu #P:%d\n", in print_event_info()
3600 seq_puts(m, "#\n"); in print_event_info()
3603 static void print_func_help_header(struct trace_buffer *buf, struct seq_file *m, in print_func_help_header() argument
3608 print_event_info(buf, m); in print_func_help_header()
3610 seq_printf(m, "# TASK-PID %s CPU# TIMESTAMP FUNCTION\n", tgid ? "TGID " : ""); in print_func_help_header()
3611 seq_printf(m, "# | | %s | | |\n", tgid ? " | " : ""); in print_func_help_header()
3614 static void print_func_help_header_irq(struct trace_buffer *buf, struct seq_file *m, in print_func_help_header_irq() argument
3621 print_event_info(buf, m); in print_func_help_header_irq()
3623 seq_printf(m, "# %.*s _-----=> irqs-off\n", prec, space); in print_func_help_header_irq()
3624 seq_printf(m, "# %.*s / _----=> need-resched\n", prec, space); in print_func_help_header_irq()
3625 seq_printf(m, "# %.*s| / _---=> hardirq/softirq\n", prec, space); in print_func_help_header_irq()
3626 seq_printf(m, "# %.*s|| / _--=> preempt-depth\n", prec, space); in print_func_help_header_irq()
3627 seq_printf(m, "# %.*s||| / delay\n", prec, space); in print_func_help_header_irq()
3628 seq_printf(m, "# TASK-PID %.*sCPU# |||| TIMESTAMP FUNCTION\n", prec, " TGID "); in print_func_help_header_irq()
3629 seq_printf(m, "# | | %.*s | |||| | |\n", prec, " | "); in print_func_help_header_irq()
3633 print_trace_header(struct seq_file *m, struct trace_iterator *iter) in print_trace_header() argument
3647 seq_printf(m, "# %s latency trace v1.1.5 on %s\n", in print_trace_header()
3649 seq_puts(m, "# -----------------------------------" in print_trace_header()
3651 seq_printf(m, "# latency: %lu us, #%lu/%lu, CPU#%d |" in print_trace_header()
3669 seq_printf(m, " #P:%d)\n", num_online_cpus()); in print_trace_header()
3671 seq_puts(m, ")\n"); in print_trace_header()
3673 seq_puts(m, "# -----------------\n"); in print_trace_header()
3674 seq_printf(m, "# | task: %.16s-%d " in print_trace_header()
3677 from_kuid_munged(seq_user_ns(m), data->uid), data->nice, in print_trace_header()
3679 seq_puts(m, "# -----------------\n"); in print_trace_header()
3682 seq_puts(m, "# => started at: "); in print_trace_header()
3684 trace_print_seq(m, &iter->seq); in print_trace_header()
3685 seq_puts(m, "\n# => ended at: "); in print_trace_header()
3687 trace_print_seq(m, &iter->seq); in print_trace_header()
3688 seq_puts(m, "\n#\n"); in print_trace_header()
3691 seq_puts(m, "#\n"); in print_trace_header()
3910 void trace_latency_header(struct seq_file *m) in trace_latency_header() argument
3912 struct trace_iterator *iter = m->private; in trace_latency_header()
3920 print_trace_header(m, iter); in trace_latency_header()
3923 print_lat_help_header(m); in trace_latency_header()
3926 void trace_default_header(struct seq_file *m) in trace_default_header() argument
3928 struct trace_iterator *iter = m->private; in trace_default_header()
3939 print_trace_header(m, iter); in trace_default_header()
3941 print_lat_help_header(m); in trace_default_header()
3946 m, trace_flags); in trace_default_header()
3948 print_func_help_header(iter->trace_buffer, m, in trace_default_header()
3954 static void test_ftrace_alive(struct seq_file *m) in test_ftrace_alive() argument
3958 seq_puts(m, "# WARNING: FUNCTION TRACING IS CORRUPTED\n" in test_ftrace_alive()
3963 static void show_snapshot_main_help(struct seq_file *m) in show_snapshot_main_help() argument
3965 seq_puts(m, "# echo 0 > snapshot : Clears and frees snapshot buffer\n" in show_snapshot_main_help()
3973 static void show_snapshot_percpu_help(struct seq_file *m) in show_snapshot_percpu_help() argument
3975 seq_puts(m, "# echo 0 > snapshot : Invalid for per_cpu snapshot file.\n"); in show_snapshot_percpu_help()
3977 seq_puts(m, "# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.\n" in show_snapshot_percpu_help()
3980 seq_puts(m, "# echo 1 > snapshot : Not supported with this kernel.\n" in show_snapshot_percpu_help()
3983 seq_puts(m, "# echo 2 > snapshot : Clears this cpu's snapshot buffer (but does not allocate)\n" in show_snapshot_percpu_help()
3988 static void print_snapshot_help(struct seq_file *m, struct trace_iterator *iter) in print_snapshot_help() argument
3991 seq_puts(m, "#\n# * Snapshot is allocated *\n#\n"); in print_snapshot_help()
3993 seq_puts(m, "#\n# * Snapshot is freed *\n#\n"); in print_snapshot_help()
3995 seq_puts(m, "# Snapshot commands:\n"); in print_snapshot_help()
3997 show_snapshot_main_help(m); in print_snapshot_help()
3999 show_snapshot_percpu_help(m); in print_snapshot_help()
4003 static inline void print_snapshot_help(struct seq_file *m, struct trace_iterator *iter) { } in print_snapshot_help() argument
4006 static int s_show(struct seq_file *m, void *v) in s_show() argument
4013 seq_printf(m, "# tracer: %s\n", iter->trace->name); in s_show()
4014 seq_puts(m, "#\n"); in s_show()
4015 test_ftrace_alive(m); in s_show()
4018 print_snapshot_help(m, iter); in s_show()
4020 iter->trace->print_header(m); in s_show()
4022 trace_default_header(m); in s_show()
4029 ret = trace_print_seq(m, &iter->seq); in s_show()
4036 ret = trace_print_seq(m, &iter->seq); in s_show()
4203 struct seq_file *m = file->private_data; in tracing_release() local
4213 iter = m->private; in tracing_release()
4320 t_next(struct seq_file *m, void *v, loff_t *pos) in t_next() argument
4322 struct trace_array *tr = m->private; in t_next()
4333 static void *t_start(struct seq_file *m, loff_t *pos) in t_start() argument
4335 struct trace_array *tr = m->private; in t_start()
4342 for (; t && l < *pos; t = t_next(m, t, &l)) in t_start()
4348 static void t_stop(struct seq_file *m, void *p) in t_stop() argument
4353 static int t_show(struct seq_file *m, void *v) in t_show() argument
4360 seq_puts(m, t->name); in t_show()
4362 seq_putc(m, ' '); in t_show()
4364 seq_putc(m, '\n'); in t_show()
4379 struct seq_file *m; in show_traces_open() local
4392 m = file->private_data; in show_traces_open()
4393 m->private = tr; in show_traces_open()
4523 static int tracing_trace_options_show(struct seq_file *m, void *v) in tracing_trace_options_show() argument
4526 struct trace_array *tr = m->private; in tracing_trace_options_show()
4536 seq_printf(m, "%s\n", trace_options[i]); in tracing_trace_options_show()
4538 seq_printf(m, "no%s\n", trace_options[i]); in tracing_trace_options_show()
4543 seq_printf(m, "%s\n", trace_opts[i].name); in tracing_trace_options_show()
4545 seq_printf(m, "no%s\n", trace_opts[i].name); in tracing_trace_options_show()
4717 struct seq_file *m = filp->private_data; in tracing_trace_options_write() local
4718 struct trace_array *tr = m->private; in tracing_trace_options_write()
5027 static void *saved_tgids_next(struct seq_file *m, void *v, loff_t *pos) in saved_tgids_next() argument
5031 if (*pos || m->count) in saved_tgids_next()
5044 static void *saved_tgids_start(struct seq_file *m, loff_t *pos) in saved_tgids_start() argument
5054 v = saved_tgids_next(m, v, &l); in saved_tgids_start()
5062 static void saved_tgids_stop(struct seq_file *m, void *v) in saved_tgids_stop() argument
5066 static int saved_tgids_show(struct seq_file *m, void *v) in saved_tgids_show() argument
5070 seq_printf(m, "%d %d\n", pid, trace_find_tgid(pid)); in saved_tgids_show()
5100 static void *saved_cmdlines_next(struct seq_file *m, void *v, loff_t *pos) in saved_cmdlines_next() argument
5104 if (*pos || m->count) in saved_cmdlines_next()
5120 static void *saved_cmdlines_start(struct seq_file *m, loff_t *pos) in saved_cmdlines_start() argument
5130 v = saved_cmdlines_next(m, v, &l); in saved_cmdlines_start()
5138 static void saved_cmdlines_stop(struct seq_file *m, void *v) in saved_cmdlines_stop() argument
5144 static int saved_cmdlines_show(struct seq_file *m, void *v) in saved_cmdlines_show() argument
5150 seq_printf(m, "%d %s\n", *pid, buf); in saved_cmdlines_show()
5267 static void *eval_map_next(struct seq_file *m, void *v, loff_t *pos) in eval_map_next() argument
5288 static void *eval_map_start(struct seq_file *m, loff_t *pos) in eval_map_start() argument
5300 v = eval_map_next(m, v, &l); in eval_map_start()
5306 static void eval_map_stop(struct seq_file *m, void *v) in eval_map_stop() argument
5311 static int eval_map_show(struct seq_file *m, void *v) in eval_map_show() argument
5315 seq_printf(m, "%s %ld (%s)\n", in eval_map_show()
6518 static int tracing_clock_show(struct seq_file *m, void *v) in tracing_clock_show() argument
6520 struct trace_array *tr = m->private; in tracing_clock_show()
6524 seq_printf(m, in tracing_clock_show()
6528 seq_putc(m, '\n'); in tracing_clock_show()
6570 struct seq_file *m = filp->private_data; in tracing_clock_write() local
6571 struct trace_array *tr = m->private; in tracing_clock_write()
6611 static int tracing_time_stamp_mode_show(struct seq_file *m, void *v) in tracing_time_stamp_mode_show() argument
6613 struct trace_array *tr = m->private; in tracing_time_stamp_mode_show()
6618 seq_puts(m, "delta [absolute]\n"); in tracing_time_stamp_mode_show()
6620 seq_puts(m, "[delta] absolute\n"); in tracing_time_stamp_mode_show()
6686 struct seq_file *m; in tracing_snapshot_open() local
6700 m = kzalloc(sizeof(*m), GFP_KERNEL); in tracing_snapshot_open()
6701 if (!m) in tracing_snapshot_open()
6705 kfree(m); in tracing_snapshot_open()
6713 m->private = iter; in tracing_snapshot_open()
6714 file->private_data = m; in tracing_snapshot_open()
6727 struct seq_file *m = filp->private_data; in tracing_snapshot_write() local
6728 struct trace_iterator *iter = m->private; in tracing_snapshot_write()
6808 struct seq_file *m = file->private_data; in tracing_snapshot_release() local
6817 if (m) in tracing_snapshot_release()
6818 kfree(m->private); in tracing_snapshot_release()
6819 kfree(m); in tracing_snapshot_release()
7093 static void *tracing_err_log_seq_start(struct seq_file *m, loff_t *pos) in tracing_err_log_seq_start() argument
7095 struct trace_array *tr = m->private; in tracing_err_log_seq_start()
7102 static void *tracing_err_log_seq_next(struct seq_file *m, void *v, loff_t *pos) in tracing_err_log_seq_next() argument
7104 struct trace_array *tr = m->private; in tracing_err_log_seq_next()
7109 static void tracing_err_log_seq_stop(struct seq_file *m, void *v) in tracing_err_log_seq_stop() argument
7114 static void tracing_err_log_show_pos(struct seq_file *m, u8 pos) in tracing_err_log_show_pos() argument
7119 seq_putc(m, ' '); in tracing_err_log_show_pos()
7121 seq_putc(m, ' '); in tracing_err_log_show_pos()
7122 seq_puts(m, "^\n"); in tracing_err_log_show_pos()
7125 static int tracing_err_log_seq_show(struct seq_file *m, void *v) in tracing_err_log_seq_show() argument
7135 seq_printf(m, "[%5llu.%06u] %s%s", sec, nsec / 1000, in tracing_err_log_seq_show()
7137 seq_printf(m, "%s", err->cmd); in tracing_err_log_seq_show()
7138 tracing_err_log_show_pos(m, err->info.pos); in tracing_err_log_seq_show()
7167 struct seq_file *m = file->private_data; in tracing_err_log_open() local
7168 m->private = tr; in tracing_err_log_open()
7647 ftrace_snapshot_print(struct seq_file *m, unsigned long ip, in ftrace_snapshot_print() argument
7653 seq_printf(m, "%ps:", (void *)ip); in ftrace_snapshot_print()
7655 seq_puts(m, "snapshot"); in ftrace_snapshot_print()
7661 seq_printf(m, ":count=%ld\n", *count); in ftrace_snapshot_print()
7663 seq_puts(m, ":unlimited\n"); in ftrace_snapshot_print()