Lines Matching +full:keys +full:- +full:per +full:- +full:group

1 // SPDX-License-Identifier: GPL-2.0
4 * Tracing kernel boot-time
133 return -ENOTSUPP; in trace_boot_add_kprobe_event()
170 return -ENOTSUPP; in trace_boot_add_synth_event()
182 return -ENOSPC; in append_printf()
185 ret = vsnprintf(*bufp, end - *bufp, fmt, args); in append_printf()
186 if (ret < end - *bufp) { in append_printf()
190 ret = -ERANGE; in append_printf()
203 while (p < end - 1 && *str != '\0') { in append_str_nospace()
209 if (p == end - 1) { in append_str_nospace()
211 return -ENOSPC; in append_str_nospace()
213 len = p - *bufp; in append_str_nospace()
230 return -EINVAL; in trace_boot_hist_add_array()
241 return -ENOENT; in trace_boot_hist_add_array()
260 return -EINVAL; in trace_boot_hist_add_one_handler()
275 return -EINVAL; in trace_boot_hist_add_one_handler()
291 return -EINVAL; in trace_boot_hist_add_one_handler()
326 * ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist[.N] {
327 * keys = <KEY>[,...]
329 * sort = <SORT-KEY>[,...]
355 ret = trace_boot_hist_add_array(hnode, &buf, end, "keys"); in trace_boot_compose_hist_cmd()
357 if (ret == -ENOENT) in trace_boot_compose_hist_cmd()
358 pr_err("hist requires keys.\n"); in trace_boot_compose_hist_cmd()
359 return -EINVAL; in trace_boot_compose_hist_cmd()
363 if (ret == -EINVAL) in trace_boot_compose_hist_cmd()
366 if (ret == -EINVAL) in trace_boot_compose_hist_cmd()
398 return -EINVAL; in trace_boot_compose_hist_cmd()
401 return -EINVAL; in trace_boot_compose_hist_cmd()
404 return -EINVAL; in trace_boot_compose_hist_cmd()
412 return -E2BIG; in trace_boot_compose_hist_cmd()
441 if (xbc_node_find_subkey(hnode, "keys")) { in trace_boot_init_histograms()
468 const char *p, *group, *event; in trace_boot_init_one_event() local
470 group = xbc_node_get_data(gnode); in trace_boot_init_one_event()
473 if (!strcmp(group, "kprobes")) in trace_boot_init_one_event()
476 if (!strcmp(group, "synthetic")) in trace_boot_init_one_event()
481 file = find_event_file(tr, group, event); in trace_boot_init_one_event()
483 pr_err("Failed to find event: %s:%s\n", group, event); in trace_boot_init_one_event()
511 group, event); in trace_boot_init_one_event()
527 /* per-event key starts with "event.GROUP.EVENT" */ in trace_boot_init_events()
570 if (ftrace_set_filter(tr->ops, q, strlen(q), 0) < 0) in trace_boot_set_ftrace_filter()
580 if (ftrace_set_notrace(tr->ops, q, strlen(q), 0) < 0) in trace_boot_set_ftrace_filter()
663 disable_tracing_selftest("running boot-time tracing"); in trace_boot_init()
668 * Start tracing at the end of core-initcall, so that it starts tracing