Lines Matching refs:pat
117 static bool match_pat(char *file, const char **pat) in match_pat() argument
121 if (!pat) in match_pat()
124 while (pat[i]) { in match_pat()
125 if (strglobmatch(file, pat[i])) in match_pat()
148 static int rm_rf_depth_pat(const char *path, int depth, const char **pat) in rm_rf_depth_pat() argument
175 if (!match_pat(d->d_name, pat)) { in rm_rf_depth_pat()
191 ret = depth ? rm_rf_depth_pat(namebuf, depth - 1, pat) : 0; in rm_rf_depth_pat()
206 const char *pat[] = { in rm_rf_kcore_dir() local
215 return rm_rf_depth_pat(kcore_dir_path, 0, pat); in rm_rf_kcore_dir()
220 const char *pat[] = { in rm_rf_perf_data() local
228 return rm_rf_depth_pat(path, 0, pat); in rm_rf_perf_data()