Lines Matching defs:fpath
886 static int process_mapfile(FILE *outfp, char *fpath)
896 pr_info("%s: Processing mapfile %s\n", prog, fpath);
902 mapfp = fopen(fpath, "r");
905 fpath);
932 prog, fpath, line_num);
1016 static int is_leaf_dir(const char *fpath)
1022 d = opendir(fpath);
1037 snprintf(path, sizeof(path), "%s/%s", fpath, dir->d_name);
1067 static int preprocess_arch_std_files(const char *fpath, const struct stat *sb,
1073 if (level == 1 && is_file && is_json_file(fpath))
1074 return json_events(fpath, save_arch_std_events, (void *)(uintptr_t)sb);
1079 static int process_one_file(const char *fpath, const struct stat *sb,
1097 bname = (char *) fpath + ftwbuf->base - 2;
1107 bname = (char *) fpath + ftwbuf->base;
1111 level, sb->st_size, bname, fpath);
1119 if ((level == 1 && is_dir && is_leaf_dir(fpath)) ||
1120 (level >= 2 && is_dir && is_leaf_dir(fpath))) {
1164 mapfile = strdup(fpath);
1168 pr_debug("%s: ArchStd json is preprocessed %s\n", prog, fpath);
1170 pr_info("%s: Ignoring file %s\n", prog, fpath);
1181 fpath);
1207 err = json_events(fpath, print_events_table_entry, &data);