Home
last modified time | relevance | path

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

12345678910>>...12

/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/eject/eject/
H A Deject-2.1.5-spaces.patch49 - *deviceName = strdup(s1);
50 - *mountName = strdup(s2);
51 + *deviceName = DeMangleMount(strdup(s1));
52 + *mountName = DeMangleMount(strdup(s2));
60 - *deviceName = strdup(s1);
61 - *mountName = strdup(s2);
62 + *deviceName = DeMangleMount(strdup(s1));
63 + *mountName = DeMangleMount(strdup(s2));
/openbmc/ipmitool/lib/
H A Dipmi_main.c420 intfname = strdup(optarg); in ipmi_main()
501 hostname = strdup(optarg); in ipmi_main()
528 password = strdup(tmp_pass); in ipmi_main()
541 kgkey = strdup(optarg); in ipmi_main()
553 kgkey = strdup(tmp_env); in ipmi_main()
583 kgkey = strdup(tmp_pass); in ipmi_main()
600 username = strdup(optarg); in ipmi_main()
611 sdrcache = strdup(optarg); in ipmi_main()
623 devfile = strdup(optarg); in ipmi_main()
635 oemtype = strdup(optarg); in ipmi_main()
[all …]
H A Dlog.c112 logpriv->name = strdup(name); in log_init()
114 logpriv->name = strdup(LOG_NAME_DEFAULT); in log_init()
/openbmc/linux/tools/perf/tests/
H A Dexpr.c32 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("foo")), 0); in test_ids_union()
33 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("bar")), 0); in test_ids_union()
41 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("foo")), 0); in test_ids_union()
49 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("bar")), 0); in test_ids_union()
50 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("baz")), 0); in test_ids_union()
90 expr__add_id_val(ctx, strdup("FOO"), 1); in test__expr()
91 expr__add_id_val(ctx, strdup("BAR"), 2); in test__expr()
284 expr__add_id_val(ctx, strdup("cycles"), 2); in test__expr()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/dmalloc/dmalloc/
H A D0001-undefined-strdup-macro.patch4 Subject: [PATCH] undefined strdup macro
6 build fails due to strdup define in string2.h
24 +#undef strdup
/openbmc/linux/tools/perf/arch/s390/annotate/
H A Dinstructions.c34 ops->target.name = strdup(name); in s390_call__parse()
63 ops->source.raw = strdup(ops->raw); in s390_mov__parse()
70 ops->target.raw = strdup(target); in s390_mov__parse()
86 ops->target.name = strdup(s + 1); in s390_mov__parse()
/openbmc/linux/tools/perf/util/
H A Dpmu.c138 format->name = strdup(name); in perf_pmu__new_format()
277 lc = strdup(lc); in perf_pmu__convert_scale()
475 *old_str = strdup(new_str); in assign_str()
485 *old_str = strdup(new_str); in assign_str()
575 alias->name = strdup(name); in perf_pmu__new_alias()
576 alias->desc = desc ? strdup(desc) : NULL; in perf_pmu__new_alias()
577 alias->long_desc = long_desc ? strdup(long_desc) : in perf_pmu__new_alias()
578 desc ? strdup(desc) : NULL; in perf_pmu__new_alias()
579 alias->topic = topic ? strdup(topic) : NULL; in perf_pmu__new_alias()
580 alias->pmu_name = pmu_name ? strdup(pmu_name) : NULL; in perf_pmu__new_alias()
[all …]
H A Dparse-events.c212 term->config = strdup("config"); in fix_raw()
265 evsel->pmu_name = pmu ? strdup(pmu->name) : NULL; in __add_event()
268 evsel->name = strdup(name); in __add_event()
271 evsel->metric_id = strdup(metric_id); in __add_event()
320 evsel->unit = strdup("ns"); in add_event_tool()
517 parse_events_error__handle(e, column, strdup(str), strdup(help)); in tracepoint_error()
733 ? strdup("expected numeric value") in check_type_val()
734 : strdup("expected string value"), in check_type_val()
788 strdup("Invalid term_type"), NULL); in config_term_avail()
878 strdup("invalid branch sample type"), in config_term_common()
[all …]
H A Dprobe-event.c210 exec_copy = strdup(exec); in convert_exec_to_group()
231 *result = strdup(buf); in convert_exec_to_group()
325 mod_name = strdup((char *)data->d_buf + name_offset); in find_module_name()
582 debuginfo_cache_path = strdup(path); in debuginfo_cache__open()
712 tp->symbol = strdup(sym->name); in post_process_probe_trace_point()
773 tevs[i].point.module = strdup(exec); in add_exec_to_probe_trace_events()
810 strdup(mod_name ? mod_name : module); in post_process_module_probe_trace_events()
861 tmp = strdup(reloc_sym->name); in post_process_kernel_probe_trace_events()
1337 char *range, *file, *name = strdup(arg); in parse_line_range_desc()
1390 lr->file = strdup(++file); in parse_line_range_desc()
[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 Dpmus.c420 #define COPY_STR(str) s->str = info->str ? strdup(info->str) : NULL in perf_pmus__print_pmu_events__callback()
562 return strdup(list_first_entry(&core_pmus, struct perf_pmu, list)->name); in perf_pmus__default_pmu_name()
566 return strdup("cpu"); in perf_pmus__default_pmu_name()
571 return strdup("cpu"); in perf_pmus__default_pmu_name()
578 result = strdup(dent->d_name); in perf_pmus__default_pmu_name()
584 return result ?: strdup("cpu"); in perf_pmus__default_pmu_name()
H A Dconfig.c467 evsel__bpf_counter_events = strdup(value); in perf_stat_config()
557 config = strdup(mkpath(path, sizeof(path), "%s/.perfconfig", home)); in home_perfconfig()
627 section->name = strdup(section_name); in add_section()
646 item->name = strdup(name); in add_config_item()
659 char *val = strdup(value); in set_value()
684 key = ptr = strdup(var); in collect_config()
/openbmc/linux/tools/perf/arch/arm64/annotate/
H A Dinstructions.c22 ops->source.raw = strdup(ops->raw); in arm64_mov__parse()
29 ops->target.raw = strdup(target); in arm64_mov__parse()
46 ops->target.name = strdup(s); in arm64_mov__parse()
/openbmc/qemu/tests/unit/
H A Dtest-qmp-cmds.c87 ud1c->string = strdup(ud1a->string); in qmp_user_def_cmd2()
89 ud1d->string = strdup(ud1b ? ud1b->string : "blah0"); in qmp_user_def_cmd2()
93 ret->string0 = strdup("blah1"); in qmp_user_def_cmd2()
95 ret->dict1->string1 = strdup("blah2"); in qmp_user_def_cmd2()
98 ret->dict1->dict2->string = strdup("blah3"); in qmp_user_def_cmd2()
101 ret->dict1->dict3->string = strdup("blah4"); in qmp_user_def_cmd2()
/openbmc/qemu/linux-user/
H A Dmain.c293 r = p = strdup(arg); in handle_arg_set_env()
305 r = p = strdup(arg); in handle_arg_unset_env()
316 argv0 = strdup(arg); in handle_arg_argv0()
336 interp_prefix = strdup(arg); in handle_arg_ld_prefix()
361 qemu_uname_release = strdup(arg); in handle_arg_uname()
366 cpu_model = strdup(arg); in handle_arg_cpu()
952 target_argv[i++] = strdup(argv0); in main()
955 target_argv[i] = strdup(argv[optind + i]); in main()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/rdist/rdist-6.1.5/
H A Drdist-6.1.5-links.patch41 + lp->pathname = strdup(target);
42 + lp->src = strdup(source);
45 + lp->target = strdup(Tdest);
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/liblognorm/liblognorm/
H A D0001-Add-asprintf-to-autoconf-function-check-macro.patch21 -AC_CHECK_FUNCS([strdup strndup strtok_r])
22 +AC_CHECK_FUNCS([asprintf strdup strndup strtok_r])
/openbmc/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()
/openbmc/linux/tools/perf/
H A Dbuiltin-list.c132 print_state->last_topic = strdup(topic ?: ""); in default_print_event()
218 print_state->last_metricgroups = strdup(group ?: ""); in default_print_metric()
516 default_ps.last_topic = strdup(""); in cmd_list()
521 default_ps.pmu_glob = strdup(unit_name); in cmd_list()
530 default_ps.pmu_glob = strdup(pmu->name); in cmd_list()
580 default_ps.event_glob = strdup(argv[i]); in cmd_list()
H A Dbuiltin-timechart.c244 c->comm = strdup(comm); in pid_set_comm()
252 c->comm = strdup(comm); in pid_set_comm()
1064 task_from = strdup(c->comm); in draw_wakeups()
1068 task_to = strdup(c->comm); in draw_wakeups()
1077 task_from = strdup(c->comm); in draw_wakeups()
1081 task_to = strdup(c->comm); in draw_wakeups()
1320 filt->name = strdup(string); in add_process_filter()
1741 *p++ = strdup(common_args[i]); in timechart__io_record()
1750 *p++ = strdup(disk_events[i]); in timechart__io_record()
1761 *p++ = strdup(net_events[i]); in timechart__io_record()
[all …]
H A Dbuiltin-daemon.c122 session->name = strdup(name); in daemon__add_session()
200 session->run = strdup(value); in session_config()
226 daemon->base = strdup(value); in server_config()
239 daemon->base = strdup(value); in client_config()
1018 char *basen = strdup(daemon->config_real); in setup_config_changes()
1019 char *dirn = strdup(daemon->config_real); in setup_config_changes()
1038 daemon->config_base = strdup(base); in setup_config_changes()
1097 daemon->base = strdup(daemon->base_user); in setup_config()
1114 daemon->config_real = strdup(perf_etc_perfconfig()); in setup_config()
1116 daemon->config_real = strdup(perf_home_perfconfig()); in setup_config()
[all …]
H A Dbuiltin-kvm.c477 char *output = output_ ? strdup(output_) : NULL; in kvm_hpp_list__parse()
478 char *sort = sort_ ? strdup(sort_) : NULL; in kvm_hpp_list__parse()
607 filename = strdup("perf.data.host"); in get_filename_for_perf_kvm()
609 filename = strdup("perf.data.guest"); in get_filename_for_perf_kvm()
611 filename = strdup("perf.data.kvm"); in get_filename_for_perf_kvm()
1702 _p = strdup(s); \
1843 tp = strdup(*events_tp); in kvm_live_event_list()
2073 rec_argv[i++] = strdup("record"); in __cmd_record()
2074 rec_argv[i++] = strdup("-o"); in __cmd_record()
2075 rec_argv[i++] = strdup(file_name); in __cmd_record()
[all …]
/openbmc/u-boot/drivers/block/
H A Dsandbox.c114 str = strdup(dev_name);
117 fname = strdup(filename);
167 host_dev->filename = strdup(filename);
/openbmc/linux/tools/lib/api/fs/
H A Dfs.c167 fs->path = strdup(path); in fs__read_mounts()
195 fs->path = strdup(*ptr); in fs__check_mounts()
235 fs->path = strdup(override_path); in fs__env_override()
284 fs->path = strdup(mountpoint); in fs__mount()
/openbmc/u-boot/cmd/
H A Dbootmenu.c325 entry->title = strdup("U-Boot console"); in bootmenu_create()
331 entry->command = strdup(""); in bootmenu_create()
421 title = strdup(iter->title); in bootmenu_show()
422 command = strdup(iter->command); in bootmenu_show()

12345678910>>...12