Lines Matching refs:p

28 	const char *p;  in trace_boot_set_instance_options()  local
33 xbc_node_for_each_array_value(node, "options", anode, p) { in trace_boot_set_instance_options()
34 if (strscpy(buf, p, ARRAY_SIZE(buf)) < 0) { in trace_boot_set_instance_options()
35 pr_err("String is too long: %s\n", p); in trace_boot_set_instance_options()
43 p = xbc_node_find_value(node, "tracing_on", NULL); in trace_boot_set_instance_options()
44 if (p && *p != '\0') { in trace_boot_set_instance_options()
45 if (kstrtoul(p, 10, &v)) in trace_boot_set_instance_options()
46 pr_err("Failed to set tracing on: %s\n", p); in trace_boot_set_instance_options()
53 p = xbc_node_find_value(node, "trace_clock", NULL); in trace_boot_set_instance_options()
54 if (p && *p != '\0') { in trace_boot_set_instance_options()
55 if (tracing_set_clock(tr, p) < 0) in trace_boot_set_instance_options()
56 pr_err("Failed to set trace clock: %s\n", p); in trace_boot_set_instance_options()
59 p = xbc_node_find_value(node, "buffer_size", NULL); in trace_boot_set_instance_options()
60 if (p && *p != '\0') { in trace_boot_set_instance_options()
61 v = memparse(p, NULL); in trace_boot_set_instance_options()
63 pr_err("Buffer size is too small: %s\n", p); in trace_boot_set_instance_options()
65 pr_err("Failed to resize trace buffer to %s\n", p); in trace_boot_set_instance_options()
68 p = xbc_node_find_value(node, "cpumask", NULL); in trace_boot_set_instance_options()
69 if (p && *p != '\0') { in trace_boot_set_instance_options()
73 if (cpumask_parse(p, new_mask) < 0 || in trace_boot_set_instance_options()
75 pr_err("Failed to set new CPU mask %s\n", p); in trace_boot_set_instance_options()
87 const char *p; in trace_boot_enable_events() local
89 xbc_node_for_each_array_value(node, "events", anode, p) { in trace_boot_enable_events()
90 if (strscpy(buf, p, ARRAY_SIZE(buf)) < 0) { in trace_boot_enable_events()
91 pr_err("String is too long: %s\n", p); in trace_boot_enable_events()
96 pr_err("Failed to enable event: %s\n", p); in trace_boot_enable_events()
144 const char *p; in trace_boot_add_synth_event() local
153 xbc_node_for_each_array_value(node, "fields", anode, p) { in trace_boot_add_synth_event()
154 ret = synth_event_add_field_str(&cmd, p); in trace_boot_add_synth_event()
200 char *p = *bufp; in append_str_nospace() local
203 while (p < end - 1 && *str != '\0') { in append_str_nospace()
205 *(p++) = *str; in append_str_nospace()
208 *p = '\0'; in append_str_nospace()
209 if (p == end - 1) { in append_str_nospace()
213 len = p - *bufp; in append_str_nospace()
214 *bufp = p; in append_str_nospace()
223 const char *p; in trace_boot_hist_add_array() local
226 p = xbc_node_find_value(hnode, key, &anode); in trace_boot_hist_add_array()
227 if (p) { in trace_boot_hist_add_array()
235 xbc_array_for_each_value(anode, p) { in trace_boot_hist_add_array()
236 append_printf(bufp, end, "%c%s", sep, p); in trace_boot_hist_add_array()
252 const char *p; in trace_boot_hist_add_one_handler() local
256 p = xbc_node_find_value(hnode, param, NULL); in trace_boot_hist_add_one_handler()
257 if (!p) { in trace_boot_hist_add_one_handler()
262 append_printf(bufp, end, ":%s(%s)", handler, p); in trace_boot_hist_add_one_handler()
280 xbc_array_for_each_value(anode, p) { in trace_boot_hist_add_one_handler()
281 append_printf(bufp, end, "%c%s", sep, p); in trace_boot_hist_add_one_handler()
302 const char *p, *handler; in trace_boot_hist_add_handlers() local
308 p = xbc_node_get_data(node); in trace_boot_hist_add_handlers()
309 if (!isdigit(p[0])) in trace_boot_hist_add_handlers()
350 const char *p; in trace_boot_compose_hist_cmd() local
369 p = xbc_node_find_value(hnode, "size", NULL); in trace_boot_compose_hist_cmd()
370 if (p) in trace_boot_compose_hist_cmd()
371 append_printf(&buf, end, ":size=%s", p); in trace_boot_compose_hist_cmd()
373 p = xbc_node_find_value(hnode, "name", NULL); in trace_boot_compose_hist_cmd()
374 if (p) in trace_boot_compose_hist_cmd()
375 append_printf(&buf, end, ":name=%s", p); in trace_boot_compose_hist_cmd()
379 xbc_node_for_each_key_value(node, knode, p) { in trace_boot_compose_hist_cmd()
383 append_str_nospace(&buf, end, p); in trace_boot_compose_hist_cmd()
406 p = xbc_node_find_value(hnode, "filter", NULL); in trace_boot_compose_hist_cmd()
407 if (p) in trace_boot_compose_hist_cmd()
408 append_printf(&buf, end, " if %s", p); in trace_boot_compose_hist_cmd()
423 const char *p; in trace_boot_init_histograms() local
427 p = xbc_node_get_data(node); in trace_boot_init_histograms()
428 if (!isdigit(p[0])) in trace_boot_init_histograms()
468 const char *p, *group, *event; in trace_boot_init_one_event() local
487 p = xbc_node_find_value(enode, "filter", NULL); in trace_boot_init_one_event()
488 if (p && *p != '\0') { in trace_boot_init_one_event()
489 if (strscpy(buf, p, ARRAY_SIZE(buf)) < 0) in trace_boot_init_one_event()
490 pr_err("filter string is too long: %s\n", p); in trace_boot_init_one_event()
496 xbc_node_for_each_array_value(enode, "actions", anode, p) { in trace_boot_init_one_event()
497 if (strscpy(buf, p, ARRAY_SIZE(buf)) < 0) in trace_boot_init_one_event()
498 pr_err("action string is too long: %s\n", p); in trace_boot_init_one_event()
500 pr_err("Failed to apply an action: %s\n", p); in trace_boot_init_one_event()
563 const char *p; in trace_boot_set_ftrace_filter() local
566 xbc_node_for_each_array_value(node, "ftrace.filters", anode, p) { in trace_boot_set_ftrace_filter()
567 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter()
571 pr_err("Failed to add %s to ftrace filter\n", p); in trace_boot_set_ftrace_filter()
576 xbc_node_for_each_array_value(node, "ftrace.notraces", anode, p) { in trace_boot_set_ftrace_filter()
577 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter()
581 pr_err("Failed to add %s to ftrace filter\n", p); in trace_boot_set_ftrace_filter()
594 const char *p; in trace_boot_enable_tracer() local
598 p = xbc_node_find_value(node, "tracer", NULL); in trace_boot_enable_tracer()
599 if (p && *p != '\0') { in trace_boot_enable_tracer()
600 if (tracing_set_tracer(tr, p) < 0) in trace_boot_enable_tracer()
601 pr_err("Failed to set given tracer: %s\n", p); in trace_boot_enable_tracer()
625 const char *p; in trace_boot_init_instances() local
632 p = xbc_node_get_data(inode); in trace_boot_init_instances()
633 if (!p || *p == '\0') in trace_boot_init_instances()
636 tr = trace_array_get_by_name(p); in trace_boot_init_instances()
638 pr_err("Failed to get trace instance %s\n", p); in trace_boot_init_instances()