Lines Matching refs:fpath
784 static int process_mapfile(FILE *outfp, char *fpath) in process_mapfile() argument
794 pr_info("%s: Processing mapfile %s\n", prog, fpath); in process_mapfile()
800 mapfp = fopen(fpath, "r"); in process_mapfile()
803 fpath); in process_mapfile()
830 prog, fpath, line_num); in process_mapfile()
909 static int is_leaf_dir(const char *fpath) in is_leaf_dir() argument
915 d = opendir(fpath); in is_leaf_dir()
930 sprintf(path, "%s/%s", fpath, dir->d_name); in is_leaf_dir()
960 static int preprocess_arch_std_files(const char *fpath, const struct stat *sb, in preprocess_arch_std_files() argument
966 if (level == 1 && is_file && is_json_file(fpath)) in preprocess_arch_std_files()
967 return json_events(fpath, save_arch_std_events, (void *)sb); in preprocess_arch_std_files()
972 static int process_one_file(const char *fpath, const struct stat *sb, in process_one_file() argument
987 bname = (char *) fpath + ftwbuf->base - 2; in process_one_file()
995 bname = (char *) fpath + ftwbuf->base; in process_one_file()
999 level, sb->st_size, bname, fpath); in process_one_file()
1007 if ((level == 1 && is_dir && is_leaf_dir(fpath)) || in process_one_file()
1036 mapfile = strdup(fpath); in process_one_file()
1040 pr_info("%s: Ignoring file %s\n", prog, fpath); in process_one_file()
1051 fpath); in process_one_file()
1077 err = json_events(fpath, print_events_table_entry, &data); in process_one_file()