Searched refs:parser (Results 1 – 4 of 4) sorted by relevance
/kernel/trace/ |
D | trace.h | 1135 static inline bool trace_parser_loaded(struct trace_parser *parser) in trace_parser_loaded() argument 1137 return (parser->idx != 0); in trace_parser_loaded() 1140 static inline bool trace_parser_cont(struct trace_parser *parser) in trace_parser_cont() argument 1142 return parser->cont; in trace_parser_cont() 1145 static inline void trace_parser_clear(struct trace_parser *parser) in trace_parser_clear() argument 1147 parser->cont = false; in trace_parser_clear() 1148 parser->idx = 0; in trace_parser_clear() 1151 extern int trace_parser_get_init(struct trace_parser *parser, int size); 1152 extern void trace_parser_put(struct trace_parser *parser); 1153 extern int trace_get_user(struct trace_parser *parser, const char __user *ubuf,
|
D | ftrace.c | 3285 struct trace_parser parser; member 3912 if (trace_parser_get_init(&iter->parser, FTRACE_BUFF_MAX)) in ftrace_regex_open() 3942 trace_parser_put(&iter->parser); in ftrace_regex_open() 3960 trace_parser_put(&iter->parser); in ftrace_regex_open() 5045 struct trace_parser *parser; in ftrace_regex_write() local 5062 parser = &iter->parser; in ftrace_regex_write() 5063 read = trace_get_user(parser, ubuf, cnt, ppos); in ftrace_regex_write() 5065 if (read >= 0 && trace_parser_loaded(parser) && in ftrace_regex_write() 5066 !trace_parser_cont(parser)) { in ftrace_regex_write() 5067 ret = ftrace_process_regex(iter, parser->buffer, in ftrace_regex_write() [all …]
|
D | trace.c | 687 struct trace_parser parser; in trace_pid_write() local 695 if (trace_parser_get_init(&parser, PID_BUF_SIZE + 1)) in trace_pid_write() 706 trace_parser_put(&parser); in trace_pid_write() 725 ret = trace_get_user(&parser, ubuf, cnt, &pos); in trace_pid_write() 733 if (!trace_parser_loaded(&parser)) in trace_pid_write() 737 if (kstrtoul(parser.buffer, 0, &val)) in trace_pid_write() 748 trace_parser_clear(&parser); in trace_pid_write() 751 trace_parser_put(&parser); in trace_pid_write() 1578 int trace_parser_get_init(struct trace_parser *parser, int size) in trace_parser_get_init() argument 1580 memset(parser, 0, sizeof(*parser)); in trace_parser_get_init() [all …]
|
D | trace_events.c | 1172 struct trace_parser parser; in ftrace_event_write() local 1184 if (trace_parser_get_init(&parser, EVENT_BUF_SIZE + 1)) in ftrace_event_write() 1187 read = trace_get_user(&parser, ubuf, cnt, ppos); in ftrace_event_write() 1189 if (read >= 0 && trace_parser_loaded((&parser))) { in ftrace_event_write() 1192 if (*parser.buffer == '!') in ftrace_event_write() 1195 ret = ftrace_set_clr_event(tr, parser.buffer + !set, set); in ftrace_event_write() 1203 trace_parser_put(&parser); in ftrace_event_write()
|