/linux/tools/perf/tests/ |
H A D | expr.c | 33 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/ |
H A D | builtin-list.c | 157 print_state->last_topic = strdup(topic ?: ""); in default_print_event() 249 print_state->last_metricgroups = strdup(group ?: ""); in default_print_metric() 595 default_ps.last_topic = strdup(""); in cmd_list() 600 default_ps.pmu_glob = strdup(unit_name); in cmd_list() 609 default_ps.pmu_glob = strdup(pmu->name); in cmd_list() 627 default_ps.pmu_glob = strdup("tracepoint"); in cmd_list() 645 default_ps.pmu_glob = strdup(sw_globs[j]); in cmd_list() 681 default_ps.event_glob = strdup(argv[i]); in cmd_list() 687 default_ps.pmu_glob = strdup("tracepoint"); in cmd_list()
|
H A D | builtin-timechart.c | 244 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() 1319 filt->name = strdup(string); in add_process_filter() 1746 *p++ = strdup(common_args[i]); in timechart__io_record() 1755 *p++ = strdup(disk_events[i]); in timechart__io_record() 1766 *p++ = strdup(net_events[i]); in timechart__io_record() [all …]
|
H A D | builtin-daemon.c | 123 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() 1019 char *basen = strdup(daemon->config_real); in setup_config_changes() 1020 char *dirn = strdup(daemon->config_real); in setup_config_changes() 1039 daemon->config_base = strdup(base); in setup_config_changes() 1098 daemon->base = strdup(daemon->base_user); in setup_config() 1115 daemon->config_real = strdup(perf_etc_perfconfig()); in setup_config() 1117 daemon->config_real = strdup(perf_home_perfconfig()); in setup_config() [all …]
|
H A D | builtin-kvm.c | 477 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() 1641 _p = strdup(s); \ 1782 tp = strdup(*events_tp); in kvm_live_event_list() 2009 rec_argv[i++] = strdup("record"); in __cmd_record() 2010 rec_argv[i++] = strdup("-o"); in __cmd_record() 2011 rec_argv[i++] = strdup(file_name); in __cmd_record() [all …]
|
/linux/tools/perf/util/ |
H A D | probe-event.c | 228 exec_copy = strdup(exec); in convert_exec_to_group() 249 *result = strdup(buf); in convert_exec_to_group() 343 mod_name = strdup((char *)data->d_buf + name_offset); in find_module_name() 601 debuginfo_cache_path = strdup(path); in debuginfo_cache__open() 731 tp->symbol = strdup(sym->name); in post_process_probe_trace_point() 792 tevs[i].point.module = strdup(exec); in add_exec_to_probe_trace_events() 829 strdup(mod_name ? mod_name : module); in post_process_module_probe_trace_events() 880 tmp = strdup(reloc_sym->name); in post_process_kernel_probe_trace_events() 1375 char *buf = strdup(arg); in parse_line_range_desc() 1615 pp->lazy_line = strdup(arg); /* let leave escapes */ in parse_perf_probe_point() [all …]
|
H A D | parse-events.c | 193 term->config = strdup("config"); in fix_raw() 283 evsel->name = strdup(name); in __add_event() 289 evsel->metric_id = strdup(metric_id); in __add_event() 572 parse_events_error__handle(e, column, strdup(str), strdup(help)); in tracepoint_error() 794 ? strdup("expected numeric value") in check_type_val() 795 : strdup("expected string value"), in check_type_val() 851 strdup("Invalid term_type"), NULL); in config_term_avail() 943 strdup("invalid branch sample type"), in config_term_common() 952 strdup("expected 0 or 1"), in config_term_common() 994 strdup("expected 0 or 1"), in config_term_common() [all …]
|
H A D | parse-sublevel-options.c | 13 char *vstr, *s = strdup(str); in parse_one_sublevel_option() 48 char *s = strdup(str); in perf_parse_sublevel_options()
|
H A D | pmu.c | 145 format->name = strdup(name); in perf_pmu__new_format() 282 lc = strdup(lc); in parse_double() 494 *old_str = strdup(new_str); in assign_str() 504 *old_str = strdup(new_str); in assign_str() 625 alias->name = strdup(name); in perf_pmu__new_alias() 626 alias->desc = desc ? strdup(desc) : NULL; in perf_pmu__new_alias() 627 alias->long_desc = long_desc ? strdup(long_desc) : NULL; in perf_pmu__new_alias() 628 alias->topic = topic ? strdup(topic) : NULL; in perf_pmu__new_alias() 629 alias->pmu_name = pmu_name ? strdup(pmu_name) : NULL; in perf_pmu__new_alias() 994 mutable_to_match = strdup(to_match); in perf_pmu__match_wildcard_uncore() [all …]
|
H A D | parse-events.l | 56 yylval->str = strdup(text); in str() 99 yylval->str = strdup(text + 1); in drv_str() 114 __yylval->str = strdup(text); \ 141 yylval->hardware_term.str = strdup(text); in hw_term() 193 char *help = strdup("Maximum precise value is 3"); in modifiers()
|
H A D | metricgroup.c | 242 m->modifier = strdup(modifier); in metric__new() 251 m->pctx->sctx.user_requested_cpu_list = strdup(user_requested_cpu_list); in metric__new() 509 ev->metric_id = strdup(sb.buf); in decode_all_metric_ids() 537 ev->name = strdup(sb.buf); in decode_all_metric_ids() 1125 list_copy = strdup(list); in metricgroup__add_metric_list() 1219 dup = strdup(cur->pkey); in build_combined_expr_ctx() 1278 char *tmp = strdup(tool_pmu__event_to_str(i)); in parse_ids() 1287 char *tmp = strdup("duration_time"); in parse_ids() 1454 expr->metric_name = strdup(m->metric_name); in parse_groups() 1617 new_expr->metric_name = strdup(old_expr->metric_name); in metricgroup__copy_metric_events()
|
H A D | hwmon_pmu.c | 306 value->label = strdup(buf); in hwmon_pmu__read_events() 314 value->name = strdup(buf); in hwmon_pmu__read_events() 369 hwm->hwmon_dir = strdup(hwmon_dir); in hwmon_pmu__new() 374 hwm->pmu.alias_name = strdup(sysfs_name); in hwmon_pmu__new() 639 ? strdup("unexpected hwmon event term") in hwmon_pmu__config_term() 697 ? strdup("unexpected hwmon event term") in hwmon_pmu__check_alias()
|
H A D | probe-finder.c | 190 tvar->value = strdup(regs); in convert_variable_location() 220 tvar->type = strdup(cast); in convert_variable_type() 278 tvar->type = strdup(cast); in convert_variable_type() 315 tvar->type = strdup(buf); in convert_variable_type() 500 pf->tvar->name = strdup(pf->pvar->name); in find_variable() 565 tp->symbol = strdup(symbol); in convert_to_trace_point() 1296 tev->point.realname = strdup(dwarf_diename(sc_die)); in add_probe_trace_event() 1376 tevs[j].args[i].type = strdup(type); in fill_empty_trace_arg() 1691 ppt->function = strdup(func); in debuginfo__find_probe_point() 1698 ppt->file = strdup(fname); in debuginfo__find_probe_point() [all …]
|
H A D | get_current_dir_name.c | 16 return getcwd(pwd, sizeof(pwd)) == NULL ? NULL : strdup(pwd); in get_current_dir_name()
|
H A D | parse-events.y | 299 parse_events_error__handle(error, @1.first_column, strdup("Bad event name"), help); 597 strdup("raw"), $1, &@1, &@1); 724 char *config = strdup($1); 754 strdup("Unrecognized input"), NULL);
|
H A D | disasm_bpf.c | 142 args->line = strdup(srcline); in symbol__disassemble_bpf() 186 args->line = strdup("to be implemented"); in symbol__disassemble_bpf_image()
|
H A D | time-utils.c | 76 str = strdup(ostr); in split_start_end() 136 str = strdup(ostr); in perf_time__parse_strs() 289 str = strdup(ostr); in percent_comma_split()
|
/linux/tools/lib/subcmd/ |
H A D | exec-cmd.c | 82 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/bench/ |
H A D | inject-buildid.c | 321 inject_argv[0] = strdup("perf"); in setup_injection() 322 inject_argv[1] = strdup("inject"); in setup_injection() 323 inject_argv[2] = strdup("-b"); in setup_injection() 325 inject_argv[3] = strdup("--buildid-all"); in setup_injection()
|
/linux/tools/perf/arch/powerpc/util/ |
H A D | kvm-stat.c | 208 argv[j++] = strdup("-e"); in kvm_add_default_arch_event() 209 argv[j++] = strdup("trace_imc/trace_cycles/"); in kvm_add_default_arch_event()
|
/linux/samples/landlock/ |
H A D | sandboxer.c | 134 env_path_name = strdup(env_path_name); in populate_ruleset_fs() 198 env_port_name = strdup(env_port_name); in populate_ruleset_net() 248 env_type_scope = strdup(env_type_scope); in check_ruleset_scope()
|
/linux/tools/power/cpupower/lib/ |
H A D | cpuidle.c | 192 result = strdup(linebuf); in cpuidle_state_get_one_string() 364 result = strdup(linebuf); in sysfs_cpuidle_get_one_string()
|
/linux/tools/tracing/rtla/src/ |
H A D | trace.c | 282 tevent->system = strdup(event_string); in trace_event_alloc() 305 event->filter = strdup(filter); in trace_event_add_filter() 320 event->trigger = strdup(trigger); in trace_event_add_trigger()
|
/linux/scripts/include/ |
H A D | xalloc.h | 37 char *p = strdup(s); in xstrdup()
|
/linux/tools/hv/ |
H A D | hv_kvp_daemon.c | 482 os_build = strdup(uts_buf.release); in kvp_get_os_info() 534 p = strdup(value); in kvp_get_os_info() 539 p = strdup(value); in kvp_get_os_info() 569 p = strdup(buf); in kvp_get_os_info() 580 p = strdup(buf); in kvp_get_os_info() 591 p = strdup(buf); in kvp_get_os_info() 649 if_name = strdup(entry->d_name); in kvp_get_if_name() 688 mac_addr = strdup(p); in kvp_if_name_to_mac()
|