Lines Matching +defs:mod +defs:m +defs:b
147 struct module *mod;
156 * than "mod" or "eval_string"
168 * belong to if not built in (head.mod). The ending item contains a
728 * @m: The seq_file structure to write into
734 int trace_pid_show(struct seq_file *m, void *v)
738 seq_printf(m, "%lu\n", pid);
1659 * It uses C(a, b) where 'a' is the eval (enum) name and 'b' is the string that
1660 * matches it. By defining "C(a, b) b", TRACE_FLAGS becomes a list
1664 #define C(a, b) b
3829 static void *s_next(struct seq_file *m, void *v, loff_t *pos)
3831 struct trace_iterator *iter = m->private;
3891 static void *s_start(struct seq_file *m, loff_t *pos)
3893 struct trace_iterator *iter = m->private;
3929 for (p = iter; p && l < *pos; p = s_next(m, p, &l))
3941 p = s_next(m, p, &l);
3950 static void s_stop(struct seq_file *m, void *p)
3952 struct trace_iterator *iter = m->private;
4026 static void print_lat_help_header(struct seq_file *m)
4028 seq_puts(m, "# _------=> CPU# \n"
4039 static void print_event_info(struct array_buffer *buf, struct seq_file *m)
4045 seq_printf(m, "# entries-in-buffer/entries-written: %lu/%lu #P:%d\n",
4047 seq_puts(m, "#\n");
4050 static void print_func_help_header(struct array_buffer *buf, struct seq_file *m,
4055 print_event_info(buf, m);
4057 seq_printf(m, "# TASK-PID %s CPU# TIMESTAMP FUNCTION\n", tgid ? " TGID " : "");
4058 seq_printf(m, "# | | %s | | |\n", tgid ? " | " : "");
4061 static void print_func_help_header_irq(struct array_buffer *buf, struct seq_file *m,
4068 print_event_info(buf, m);
4070 seq_printf(m, "# %.*s _-----=> irqs-off/BH-disabled\n", prec, space);
4071 seq_printf(m, "# %.*s / _----=> need-resched\n", prec, space);
4072 seq_printf(m, "# %.*s| / _---=> hardirq/softirq\n", prec, space);
4073 seq_printf(m, "# %.*s|| / _--=> preempt-depth\n", prec, space);
4074 seq_printf(m, "# %.*s||| / _-=> migrate-disable\n", prec, space);
4075 seq_printf(m, "# %.*s|||| / delay\n", prec, space);
4076 seq_printf(m, "# TASK-PID %.*s CPU# ||||| TIMESTAMP FUNCTION\n", prec, " TGID ");
4077 seq_printf(m, "# | | %.*s | ||||| | |\n", prec, " | ");
4081 print_trace_header(struct seq_file *m, struct trace_iterator *iter)
4093 seq_printf(m, "# %s latency trace v1.1.5 on %s\n",
4095 seq_puts(m, "# -----------------------------------"
4097 seq_printf(m, "# latency: %lu us, #%lu/%lu, CPU#%d |"
4112 seq_printf(m, " #P:%d)\n", num_online_cpus());
4114 seq_puts(m, ")\n");
4116 seq_puts(m, "# -----------------\n");
4117 seq_printf(m, "# | task: %.16s-%d "
4120 from_kuid_munged(seq_user_ns(m), data->uid), data->nice,
4122 seq_puts(m, "# -----------------\n");
4125 seq_puts(m, "# => started at: ");
4127 trace_print_seq(m, &iter->seq);
4128 seq_puts(m, "\n# => ended at: ");
4130 trace_print_seq(m, &iter->seq);
4131 seq_puts(m, "\n#\n");
4134 seq_puts(m, "#\n");
4369 void trace_latency_header(struct seq_file *m)
4371 struct trace_iterator *iter = m->private;
4379 print_trace_header(m, iter);
4382 print_lat_help_header(m);
4385 void trace_default_header(struct seq_file *m)
4387 struct trace_iterator *iter = m->private;
4398 print_trace_header(m, iter);
4400 print_lat_help_header(m);
4405 m, trace_flags);
4407 print_func_help_header(iter->array_buffer, m,
4413 static void test_ftrace_alive(struct seq_file *m)
4417 seq_puts(m, "# WARNING: FUNCTION TRACING IS CORRUPTED\n"
4422 static void show_snapshot_main_help(struct seq_file *m)
4424 seq_puts(m, "# echo 0 > snapshot : Clears and frees snapshot buffer\n"
4432 static void show_snapshot_percpu_help(struct seq_file *m)
4434 seq_puts(m, "# echo 0 > snapshot : Invalid for per_cpu snapshot file.\n");
4436 seq_puts(m, "# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.\n"
4439 seq_puts(m, "# echo 1 > snapshot : Not supported with this kernel.\n"
4442 seq_puts(m, "# echo 2 > snapshot : Clears this cpu's snapshot buffer (but does not allocate)\n"
4447 static void print_snapshot_help(struct seq_file *m, struct trace_iterator *iter)
4450 seq_puts(m, "#\n# * Snapshot is allocated *\n#\n");
4452 seq_puts(m, "#\n# * Snapshot is freed *\n#\n");
4454 seq_puts(m, "# Snapshot commands:\n");
4456 show_snapshot_main_help(m);
4458 show_snapshot_percpu_help(m);
4462 static inline void print_snapshot_help(struct seq_file *m, struct trace_iterator *iter) { }
4465 static int s_show(struct seq_file *m, void *v)
4472 seq_printf(m, "# tracer: %s\n", iter->trace->name);
4473 seq_puts(m, "#\n");
4474 test_ftrace_alive(m);
4477 print_snapshot_help(m, iter);
4479 iter->trace->print_header(m);
4481 trace_default_header(m);
4488 ret = trace_print_seq(m, &iter->seq);
4499 ret = trace_print_seq(m, &iter->seq);
4755 struct seq_file *m = file->private_data;
4765 iter = m->private;
4874 t_next(struct seq_file *m, void *v, loff_t *pos)
4876 struct trace_array *tr = m->private;
4887 static void *t_start(struct seq_file *m, loff_t *pos)
4889 struct trace_array *tr = m->private;
4896 for (; t && l < *pos; t = t_next(m, t, &l))
4902 static void t_stop(struct seq_file *m, void *p)
4907 static int t_show(struct seq_file *m, void *v)
4914 seq_puts(m, t->name);
4916 seq_putc(m, ' ');
4918 seq_putc(m, '\n');
4933 struct seq_file *m;
4946 m = file->private_data;
4947 m->private = tr;
5104 static int tracing_trace_options_show(struct seq_file *m, void *v)
5107 struct trace_array *tr = m->private;
5118 seq_printf(m, "%s\n", trace_options[i]);
5120 seq_printf(m, "no%s\n", trace_options[i]);
5125 seq_printf(m, "%s\n", trace_opts[i].name);
5127 seq_printf(m, "no%s\n", trace_opts[i].name);
5315 struct seq_file *m = filp->private_data;
5316 struct trace_array *tr = m->private;
5405 "\t Format: :mod:<module-name>\n"
5406 "\t example: echo :mod:ext3 > set_ftrace_filter\n"
5434 "\t modules: Can select a group via module command :mod:\n"
5511 "\t b<bit-width>@<bit-offset>/<container-size>, ustring,\n"
5522 "\t\t\t Can enable module events via: :mod:<module>\n"
5688 static void *eval_map_next(struct seq_file *m, void *v, loff_t *pos)
5707 static void *eval_map_start(struct seq_file *m, loff_t *pos)
5719 v = eval_map_next(m, v, &l);
5725 static void eval_map_stop(struct seq_file *m, void *v)
5730 static int eval_map_show(struct seq_file *m, void *v)
5734 seq_printf(m, "%s %ld (%s)\n",
5774 trace_insert_eval_map_file(struct module *mod, struct trace_eval_map **start,
5810 map_array->head.mod = mod;
5829 static inline void trace_insert_eval_map_file(struct module *mod,
5833 static void trace_insert_eval_map(struct module *mod,
5845 trace_insert_eval_map_file(mod, start, len);
7026 static int tracing_clock_show(struct seq_file *m, void *v)
7028 struct trace_array *tr = m->private;
7032 seq_printf(m,
7036 seq_putc(m, '\n');
7078 struct seq_file *m = filp->private_data;
7079 struct trace_array *tr = m->private;
7119 static int tracing_time_stamp_mode_show(struct seq_file *m, void *v)
7121 struct trace_array *tr = m->private;
7126 seq_puts(m, "delta [absolute]\n");
7128 seq_puts(m, "[delta] absolute\n");
7192 struct seq_file *m;
7206 m = kzalloc(sizeof(*m), GFP_KERNEL);
7207 if (!m)
7211 kfree(m);
7219 m->private = iter;
7220 file->private_data = m;
7238 struct seq_file *m = filp->private_data;
7239 struct trace_iterator *iter = m->private;
7318 struct seq_file *m = file->private_data;
7327 if (m)
7328 kfree(m->private);
7329 kfree(m);
7729 static void *tracing_err_log_seq_start(struct seq_file *m, loff_t *pos)
7731 struct trace_array *tr = m->private;
7738 static void *tracing_err_log_seq_next(struct seq_file *m, void *v, loff_t *pos)
7740 struct trace_array *tr = m->private;
7745 static void tracing_err_log_seq_stop(struct seq_file *m, void *v)
7750 static void tracing_err_log_show_pos(struct seq_file *m, u16 pos)
7755 seq_putc(m, ' ');
7757 seq_putc(m, ' ');
7758 seq_puts(m, "^\n");
7761 static int tracing_err_log_seq_show(struct seq_file *m, void *v)
7771 seq_printf(m, "[%5llu.%06u] %s%s", sec, nsec / 1000,
7773 seq_printf(m, "%s", err->cmd);
7774 tracing_err_log_show_pos(m, err->info.pos);
7803 struct seq_file *m = file->private_data;
7804 m->private = tr;
8452 ftrace_snapshot_print(struct seq_file *m, unsigned long ip,
8458 seq_printf(m, "%ps:", (void *)ip);
8460 seq_puts(m, "snapshot");
8466 seq_printf(m, ":count=%ld\n", *count);
8468 seq_puts(m, ":unlimited\n");
9850 static void trace_module_add_evals(struct module *mod)
9852 if (!mod->num_trace_evals)
9859 if (trace_module_has_bad_taint(mod))
9862 trace_insert_eval_map(mod, mod->trace_evals, mod->num_trace_evals);
9866 static void trace_module_remove_evals(struct module *mod)
9871 if (!mod->num_trace_evals)
9879 if (map->head.mod == mod)
9892 static inline void trace_module_remove_evals(struct module *mod) { }
9898 struct module *mod = data;
9902 trace_module_add_evals(mod);
9905 trace_module_remove_evals(mod);