• Home
  • Raw
  • Download

Lines Matching refs:end

176 append_printf(char **bufp, char *end, const char *fmt, ...)  in append_printf()  argument
181 if (*bufp == end) in append_printf()
185 ret = vsnprintf(*bufp, end - *bufp, fmt, args); in append_printf()
186 if (ret < end - *bufp) { in append_printf()
189 *bufp = end; in append_printf()
198 append_str_nospace(char **bufp, char *end, const char *str) in append_str_nospace() argument
203 while (p < end - 1 && *str != '\0') { in append_str_nospace()
209 if (p == end - 1) { in append_str_nospace()
210 *bufp = end; in append_str_nospace()
220 char *end, const char *key) in trace_boot_hist_add_array() argument
233 append_printf(bufp, end, ":%s", key); in trace_boot_hist_add_array()
236 append_printf(bufp, end, "%c%s", sep, p); in trace_boot_hist_add_array()
248 char *end, const char *handler, in trace_boot_hist_add_one_handler() argument
262 append_printf(bufp, end, ":%s(%s)", handler, p); in trace_boot_hist_add_one_handler()
278 append_printf(bufp, end, ".%s", xbc_node_get_data(knode)); in trace_boot_hist_add_one_handler()
281 append_printf(bufp, end, "%c%s", sep, p); in trace_boot_hist_add_one_handler()
285 append_printf(bufp, end, ")"); in trace_boot_hist_add_one_handler()
287 append_printf(bufp, end, ".snapshot()"); in trace_boot_hist_add_one_handler()
299 char *end, const char *param) in trace_boot_hist_add_handlers() argument
312 ret = trace_boot_hist_add_one_handler(node, bufp, end, handler, param); in trace_boot_hist_add_handlers()
318 ret = trace_boot_hist_add_one_handler(hnode, bufp, end, handler, param); in trace_boot_hist_add_handlers()
349 char *end = buf + size; in trace_boot_compose_hist_cmd() local
353 append_printf(&buf, end, "hist"); in trace_boot_compose_hist_cmd()
355 ret = trace_boot_hist_add_array(hnode, &buf, end, "keys"); in trace_boot_compose_hist_cmd()
362 ret = trace_boot_hist_add_array(hnode, &buf, end, "values"); in trace_boot_compose_hist_cmd()
365 ret = trace_boot_hist_add_array(hnode, &buf, end, "sort"); in trace_boot_compose_hist_cmd()
371 append_printf(&buf, end, ":size=%s", p); in trace_boot_compose_hist_cmd()
375 append_printf(&buf, end, ":name=%s", p); in trace_boot_compose_hist_cmd()
381 append_printf(&buf, end, ":%s=", in trace_boot_compose_hist_cmd()
383 append_str_nospace(&buf, end, p); in trace_boot_compose_hist_cmd()
389 append_printf(&buf, end, ":pause"); in trace_boot_compose_hist_cmd()
391 append_printf(&buf, end, ":continue"); in trace_boot_compose_hist_cmd()
393 append_printf(&buf, end, ":clear"); in trace_boot_compose_hist_cmd()
397 if (node && trace_boot_hist_add_handlers(node, &buf, end, "var") < 0) in trace_boot_compose_hist_cmd()
400 if (node && trace_boot_hist_add_handlers(node, &buf, end, "var") < 0) in trace_boot_compose_hist_cmd()
403 if (node && trace_boot_hist_add_handlers(node, &buf, end, "event") < 0) in trace_boot_compose_hist_cmd()
408 append_printf(&buf, end, " if %s", p); in trace_boot_compose_hist_cmd()
410 if (buf == end) { in trace_boot_compose_hist_cmd()