Home
last modified time | relevance | path

Searched refs:linkname (Results 1 – 3 of 3) sorted by relevance

/tools/perf/
Dperf-archive.sh36 linkname=$PERF_BUILDID_DIR.build-id/${build_id:0:2}/${build_id:2}
37 filename=$(readlink -f $linkname)
38 echo ${linkname#$PERF_BUILDID_DIR} >> $MANIFEST
Dbuiltin-trace.c1277 char linkname[PATH_MAX], pathname[PATH_MAX]; in thread__read_fd_path() local
1282 scnprintf(linkname, sizeof(linkname), in thread__read_fd_path()
1285 scnprintf(linkname, sizeof(linkname), in thread__read_fd_path()
1289 if (lstat(linkname, &st) < 0 || st.st_size + 1 > (off_t)sizeof(pathname)) in thread__read_fd_path()
1292 ret = readlink(linkname, pathname, sizeof(pathname)); in thread__read_fd_path()
/tools/perf/util/
Dheader.c324 *linkname = zalloc(size), *targetname; in build_id_cache__add_s() local
338 if (realname == NULL || filename == NULL || linkname == NULL) in build_id_cache__add_s()
357 len = scnprintf(linkname, size, "%s/.build-id/%.2s", in build_id_cache__add_s()
360 if (access(linkname, X_OK) && mkdir_p(linkname, 0755)) in build_id_cache__add_s()
363 snprintf(linkname + len, size - len, "/%s", sbuild_id + 2); in build_id_cache__add_s()
367 if (symlink(targetname, linkname) == 0) in build_id_cache__add_s()
373 free(linkname); in build_id_cache__add_s()
393 *linkname = zalloc(size); in build_id_cache__remove_s() local
396 if (filename == NULL || linkname == NULL) in build_id_cache__remove_s()
399 snprintf(linkname, size, "%s/.build-id/%.2s/%s", in build_id_cache__remove_s()
[all …]