Searched refs:suffix (Results 1 – 3 of 3) sorted by relevance
/tools/perf/util/ |
D | path.c | 136 char *strip_path_suffix(const char *path, const char *suffix) in strip_path_suffix() argument 138 int path_len = strlen(path), suffix_len = strlen(suffix); in strip_path_suffix() 145 if (!is_dir_sep(suffix[suffix_len - 1])) in strip_path_suffix() 148 suffix_len = chomp_trailing_dir_sep(suffix, suffix_len); in strip_path_suffix() 150 else if (path[--path_len] != suffix[--suffix_len]) in strip_path_suffix()
|
D | cache.h | 65 char *strip_path_suffix(const char *path, const char *suffix);
|
/tools/perf/ |
D | builtin-script.c | 898 static const char *ends_with(const char *str, const char *suffix) in ends_with() argument 900 size_t suffix_len = strlen(suffix); in ends_with() 905 if (!strncmp(p, suffix, suffix_len)) in ends_with() 953 static char *get_script_root(struct dirent *script_dirent, const char *suffix) in get_script_root() argument 961 str = (char *)ends_with(script_root, suffix); in get_script_root() 1151 static char *get_script_path(const char *script_root, const char *suffix) in get_script_path() argument 1174 __script_root = get_script_root(&script_dirent, suffix); in get_script_path()
|