Home
last modified time | relevance | path

Searched refs:strdup (Results 1 – 25 of 176) sorted by relevance

12345678

/linux/tools/perf/tests/
H A Dexpr.c33 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("foo")), 0); in test_ids_union()
34 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("bar")), 0); in test_ids_union()
42 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("foo")), 0); in test_ids_union()
50 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("bar")), 0); in test_ids_union()
51 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("baz")), 0); in test_ids_union()
89 expr__add_id_val(ctx, strdup("FOO"), 1); in test__expr()
90 expr__add_id_val(ctx, strdup("BAR"), 2); in test__expr()
290 expr__add_id_val(ctx, strdup("cycles"), 2); in test__expr()
/linux/tools/perf/util/annotate-arch/
H A Dannotate-s390.c42 ops->target.name = strdup(name); in s390_call__parse()
78 ops->source.raw = strdup(ops->raw); in s390_mov__parse()
85 ops->target.raw = strdup(target); in s390_mov__parse()
101 ops->target.name = strdup(s + 1); in s390_mov__parse()
H A Dannotate-arm64.c28 ops->source.raw = strdup(ops->raw); in arm64_mov__parse()
35 ops->target.raw = strdup(target); in arm64_mov__parse()
52 ops->target.name = strdup(s); in arm64_mov__parse()
/linux/tools/perf/
H A Dbuiltin-list.c157 print_state->last_topic = strdup(topic ?: ""); in default_print_event()
249 print_state->last_metricgroups = strdup(group ?: ""); in default_print_metric()
622 ps->last_topic = strdup(""); in cmd_list()
627 ps->pmu_glob = strdup(unit_name); in cmd_list()
636 ps->pmu_glob = strdup(pmu->name); in cmd_list()
656 default_ps.pmu_glob = strdup("tracepoint"); in cmd_list()
668 ps->event_glob = strdup("legacy hardware"); in cmd_list()
682 ps->pmu_glob = strdup(sw_globs[j]); in cmd_list()
695 ps->event_glob = strdup("legacy cache"); in cmd_list()
727 ps->event_glob = strdup(argv[i]); in cmd_list()
[all …]
H A Dbuiltin-timechart.c245 c->comm = strdup(comm); in pid_set_comm()
253 c->comm = strdup(comm); in pid_set_comm()
481 backtrace = strdup(backtrace); in sched_switch()
1103 task_from = strdup(c->comm); in draw_wakeups()
1107 task_to = strdup(c->comm); in draw_wakeups()
1116 task_from = strdup(c->comm); in draw_cpu_usage()
1120 task_to = strdup(c->comm); in draw_cpu_usage()
1358 filt->name = strdup(string); in determine_display_tasks_filtered()
2019 svg_highlight_name = strdup(arg); in cmd_timechart()
H A Dbuiltin-daemon.c123 session->name = strdup(name); in daemon__add_session()
201 session->run = strdup(value); in session_config()
227 daemon->base = strdup(value); in server_config()
240 daemon->base = strdup(value); in client_config()
1017 char *basen = strdup(daemon->config_real); in setup_config_changes()
1018 char *dirn = strdup(daemon->config_real); in setup_config_changes()
1037 daemon->config_base = strdup(base); in setup_config_changes()
1096 daemon->base = strdup(daemon->base_user); in setup_config()
1113 daemon->config_real = strdup(perf_etc_perfconfig()); in setup_config()
1115 daemon->config_real = strdup(perf_home_perfconfi in setup_config()
[all...]
/linux/tools/perf/util/
H A Dparse-events.c161 term->config = strdup("config"); in fix_raw()
256 evsel->name = strdup(name); in __add_event()
262 evsel->metric_id = strdup(metric_id); in __add_event()
471 parse_events_error__handle(e, column, strdup(str), strdup(help)); in add_tracepoint()
692 ? strdup("expected numeric value") in check_type_val()
693 : strdup("expected string value"), in check_type_val()
751 strdup("Invalid term_type"), NULL); in config_term_avail()
849 strdup("invalid branch sample type"), in config_term_common()
858 strdup("expecte in config_term_common()
[all...]
H A Dparse-sublevel-options.c13 char *vstr, *s = strdup(str); in parse_one_sublevel_option()
48 char *s = strdup(str); in perf_parse_sublevel_options()
H A Dprobe-event.c227 exec_copy = strdup(exec); in convert_exec_to_group()
248 *result = strdup(buf); in convert_exec_to_group()
342 mod_name = strdup((char *)data->d_buf + name_offset); in find_module_name()
600 debuginfo_cache_path = strdup(path); in debuginfo_cache__open()
730 tp->symbol = strdup(sym->name); in post_process_probe_trace_point()
791 tevs[i].point.module = strdup(exec); in add_exec_to_probe_trace_events()
828 strdup(mod_name ? mod_name : module); in post_process_module_probe_trace_events()
879 tmp = strdup(reloc_sym->name); in post_process_kernel_probe_trace_events()
1374 char *buf = strdup(arg); in parse_line_range_desc()
1614 pp->lazy_line = strdup(ar in parse_perf_probe_point()
[all...]
H A Dpmu.c131 format->name = strdup(name); in perf_pmu__new_format()
268 lc = strdup(lc); in parse_double()
481 *old_str = strdup(new_str); in assign_str()
491 *old_str = strdup(new_str); in assign_str()
530 data->alias->legacy_terms = strdup(pe->event); in update_alias()
533 data->alias->terms = strdup(pe->event); in update_alias()
611 alias->terms = strdup(val); in perf_pmu__new_alias()
626 alias->name = strdup(name); in perf_pmu__new_alias()
627 alias->desc = desc ? strdup(desc) : NULL; in perf_pmu__new_alias()
628 alias->long_desc = long_desc ? strdup(long_des in perf_pmu__new_alias()
[all...]
H A Dparse-events.l54 yylval->str = strdup(text); in str()
92 yylval->str = strdup(text + 1); in drv_str()
107 __yylval->str = strdup(text); \
168 char *help = strdup("Maximum precise value is 3"); in modifiers()
H A Dconfig.c499 evsel__bpf_counter_events = strdup(value); in perf_stat_config()
595 config = strdup(mkpath(path, sizeof(path), "%s/.perfconfig", home)); in home_perfconfig()
665 section->name = strdup(section_name); in add_section()
667 pr_debug("%s: strdup failed\n", __func__); in add_section()
684 item->name = strdup(name); in add_config_item()
686 pr_debug("%s: strdup failed\n", __func__); in add_config_item()
697 char *val = strdup(value); in set_value()
722 key = ptr = strdup(var); in collect_config()
724 pr_debug("%s: strdup failed\n", __func__); in collect_config()
H A Dlibdw.c147 char *srcline = strdup(args->leaf_srcline); in libdw__addr2line()
202 *file = src ? strdup(src) : NULL;
H A Dhwmon_pmu.c310 value->label = strdup(buf); in hwmon_pmu__read_events()
318 value->name = strdup(buf); in hwmon_pmu__read_events()
373 hwm->hwmon_dir = strdup(hwmon_dir); in hwmon_pmu__new()
378 hwm->pmu.alias_name = strdup(sysfs_name); in hwmon_pmu__new()
643 ? strdup("unexpected hwmon event term") in hwmon_pmu__config_term()
701 ? strdup("unexpected hwmon event term") in hwmon_pmu__check_alias()
H A Dparse-events.y285 parse_events_error__handle(error, @1.first_column, strdup("Bad event name"), help);
518 strdup("raw"), $1, &@1, &@1);
618 char *config = strdup($1);
646 strdup("Unrecognized input"), NULL);
H A Daddr2line.c235 *function = strdup(strim(line)); in read_addr2line_record()
252 *filename = strdup(line); in read_addr2line_record()
375 *file = strdup(record_filename); in cmd__addr2line()
H A Dstrlist.c22 snode->s = strdup(s); in strlist__node_new()
138 char *sep, *s = strdup(list), *sdup = s; in strlist__parse_list()
H A Ds390-sample-raw.c193 return strdup(result); in get_counter_name()
198 result = strdup(data.result ?: "<unknown>"); in get_counter_name()
212 char *old_value = NULL, *new_value = strdup(result); in get_counter_name()
H A Dmetricgroup.c244 m->modifier = strdup(modifier); in metric__new()
253 m->pctx->sctx.user_requested_cpu_list = strdup(user_requested_cpu_list); in metric__new()
520 ev->metric_id = strdup(sb.buf); in decode_all_metric_ids()
548 ev->name = strdup(sb.buf); in decode_all_metric_ids()
1135 list_copy = strdup(list); in metricgroup__add_metric_list()
1231 dup = strdup(cur->pkey); in build_combined_expr_ctx()
1292 char *tmp = strdup(tool_pmu__event_to_str(i)); in parse_ids()
1301 char *tmp = strdup("duration_time"); in parse_ids()
1520 expr->metric_name = strdup(m->metric_name); in parse_groups()
1695 new_expr->metric_name = strdup(old_exp in metricgroup__copy_metric_events()
[all...]
H A Ddisasm.c99 ins->name = strdup(name); in arch__associate_ins_ops()
263 ops->target.name = strdup(name); in call__parse()
496 *namep = strdup(name); in comment__symbol()
613 ops->source.raw = strdup(ops->raw); in mov__parse()
635 ops->target.raw = strdup(target); in mov__parse()
683 ops->target.raw = strdup(target); in dec__parse()
845 *namep = strdup(name); in disasm_line__parse()
910 al->line = strdup(args->line); in annotation_line__init()
912 al->fileloc = args->fileloc ? strdup(args->fileloc) : NULL; in annotation_line__init()
1029 *fileloc = strdup(parsed_lin in symbol__parse_objdump_line()
[all...]
H A Dprobe-finder.c193 tvar->value = strdup(regs); in convert_variable_location()
223 tvar->type = strdup(cast); in convert_variable_type()
282 tvar->type = strdup(cast); in convert_variable_type()
319 tvar->type = strdup(buf); in convert_variable_type()
514 pf->tvar->name = strdup(pf->pvar->name); in find_variable()
579 tp->symbol = strdup(symbol); in convert_to_trace_point()
1319 tev->point.realname = strdup(die_name(sc_die)); in add_probe_trace_event()
1402 tevs[j].args[i].type = strdup(type); in debuginfo__find_trace_events()
1717 ppt->function = strdup(func); in line_range_add_line()
1724 ppt->file = strdup(fnam
[all...]
/linux/tools/lib/subcmd/
H A Dexec-cmd.c82 return strdup(path); in system_path()
124 return strdup(argv_exec_path); in get_argv_exec_path()
128 return strdup(env); in get_argv_exec_path()
/linux/tools/perf/util/kvm-stat-arch/
H A Dkvm-stat-powerpc.c
/linux/tools/perf/bench/
H A Dinject-buildid.c324 inject_argv[0] = strdup("perf"); in setup_injection()
325 inject_argv[1] = strdup("inject"); in setup_injection()
326 inject_argv[2] = strdup("-b"); in setup_injection()
328 inject_argv[3] = strdup("--buildid-all"); in setup_injection()
/linux/samples/landlock/
H A Dsandboxer.c140 env_path_name = strdup(env_path_name); in populate_ruleset_fs()
204 env_port_name = strdup(env_port_name); in populate_ruleset_net()
254 env_type_scope = strdup(env_type_scope); in check_ruleset_scope()
322 env_quiet_access = strdup(env_quiet_access);

12345678