Home
last modified time | relevance | path

Searched refs:strndup (Results 1 – 21 of 21) sorted by relevance

/linux/scripts/include/
A Dxalloc.h46 char *p = strndup(s, n); in xstrndup()
/linux/tools/lib/
A Dargv_split.c86 t = strndup(p, str-p); in argv_split()
/linux/tools/perf/arch/loongarch/util/
A Dheader.c40 return strndup(line2, nl - line2); in _get_field()
/linux/tools/perf/arch/riscv/util/
A Dheader.c33 return strndup(line2, nl - line2); in _get_field()
/linux/tools/testing/selftests/net/tcp_ao/lib/
A Dproc.c47 ret->header_name = strndup(type, len); in lookup_get()
102 nc->name = strndup(pos, new_pos - pos); in netstat_read_type()
/linux/tools/perf/util/
A Dcgroup.c274 s = strndup(str, e - str); in list_cgroups()
326 s = strndup(str, e - str); in match_cgroups()
381 s = strndup(str, e - str); in parse_cgroups()
A Dstrfilter.c138 cur->r->p = strndup(s, e - s); in strfilter_node__new()
A Dthread_map.c380 threads->map[i].comm = strndup(event->entries[i].comm, 16); in thread_map__copy_event()
A Dparse-events.l68 yylval->str = strndup(&text[1], strlen(text) - 2); in str()
A Dtrace-event-info.c492 path->system = strndup(name, str - name); in tracepoint_name_to_path()
A Dprobe-event.c1678 arg->name = strndup(str, tmp - str); in parse_perf_probe_arg()
1716 arg->var = strndup(str, tmp - str); in parse_perf_probe_arg()
1754 (*fieldp)->name = strndup(str, tmp - str); in parse_perf_probe_arg()
1907 tp->module = strndup(argv[1], p - argv[1]); in parse_probe_trace_command()
3005 buf = strndup(norm, ver - norm); in find_probe_functions()
A Dsrcline.c914 strndup(sym->name, sym->namelen) : SRCLINE_UNKNOWN; in __get_srcline()
A Dpmu.c2037 caps->value = strndup(value, strlen(value) - 1); in perf_pmu__new_caps()
A Ddisasm.c990 tmp_raw_insn = strndup(name_raw_insn, 11); in disasm_line__parse_powerpc()
A Dsort.c2938 str = strndup(str, pos - str); in __sort__hde_entry()
/linux/tools/lib/subcmd/
A Dexec-cmd.c101 argv0_path = strndup(argv0, slash - argv0); in extract_argv0_path()
/linux/tools/include/nolibc/
A Dstring.h173 char *strndup(const char *str, size_t maxlen) in strndup() function
/linux/tools/iio/
A Diio_utils.c423 current->name = strndup(ent->d_name, in build_channel_array()
/linux/tools/objtool/
A Delf.c532 pname = strndup(sym->name, pnamelen); in read_symbols()
/linux/tools/testing/selftests/bpf/
A Dveristat.c581 f->file_glob = strndup(str, p - str); in append_filter()
/linux/tools/lib/bpf/
A Dlibbpf.c4231 ext->essent_name = strndup(ext->name, ext_essent_len); in bpf_object__collect_externs()

Completed in 82 milliseconds