Home
last modified time | relevance | path

Searched refs:fpath (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.15/tools/perf/pmu-events/
Djevents.c849 static int process_mapfile(FILE *outfp, char *fpath) in process_mapfile() argument
859 pr_info("%s: Processing mapfile %s\n", prog, fpath); in process_mapfile()
865 mapfp = fopen(fpath, "r"); in process_mapfile()
868 fpath); in process_mapfile()
895 prog, fpath, line_num); in process_mapfile()
976 static int is_leaf_dir(const char *fpath) in is_leaf_dir() argument
982 d = opendir(fpath); in is_leaf_dir()
997 sprintf(path, "%s/%s", fpath, dir->d_name); in is_leaf_dir()
1027 static int preprocess_arch_std_files(const char *fpath, const struct stat *sb, in preprocess_arch_std_files() argument
1033 if (level == 1 && is_file && is_json_file(fpath)) in preprocess_arch_std_files()
[all …]
/Linux-v5.15/tools/bpf/bpftool/
Dcgroup.c242 static int do_show_tree_fn(const char *fpath, const struct stat *sb, in do_show_tree_fn() argument
252 cgroup_fd = open(fpath, O_RDONLY); in do_show_tree_fn()
254 p_err("can't open cgroup %s: %s", fpath, strerror(errno)); in do_show_tree_fn()
261 fpath, strerror(errno)); in do_show_tree_fn()
271 jsonw_string_field(json_wtr, "cgroup", fpath); in do_show_tree_fn()
275 printf("%s\n", fpath); in do_show_tree_fn()
Dperf.c150 static int show_proc(const char *fpath, const struct stat *sb, in show_proc() argument
160 pch = fpath + 5; in show_proc()
Dcommon.c399 static int do_build_table_cb(const char *fpath, const struct stat *sb, in do_build_table_cb() argument
411 fd = open_obj_pinned(fpath, true); in do_build_table_cb()
430 obj_node->path = strdup(fpath); in do_build_table_cb()
/Linux-v5.15/tools/perf/bench/
Dinject-buildid.c78 static int add_dso(const char *fpath, const struct stat *sb __maybe_unused, in add_dso() argument
87 if (filename__read_build_id(fpath, &bid) < 0) in add_dso()
90 dso->name = realpath(fpath, NULL); in add_dso()
95 pr_debug2(" Adding DSO: %s\n", fpath); in add_dso()
/Linux-v5.15/tools/testing/selftests/powerpc/
Dutils.c142 int read_sysfs_file(char *fpath, char *result, size_t result_size) in read_sysfs_file() argument
147 strncat(path, fpath, PATH_MAX - strlen(path) - 1); in read_sysfs_file()
/Linux-v5.15/tools/perf/util/
Dcgroup.c208 static int add_cgroup_name(const char *fpath, const struct stat *sb __maybe_unused, in add_cgroup_name() argument
216 cn = malloc(sizeof(*cn) + strlen(fpath) + 1); in add_cgroup_name()
221 strcpy(cn->name, fpath); in add_cgroup_name()
Dprobe-finder.c963 char *fpath; in find_probe_point_lazy() local
973 ret = find_source_path(pf->fname, sbuild_id, comp_dir, &fpath); in find_probe_point_lazy()
980 ret = find_lazy_match_lines(pf->lcache, fpath, in find_probe_point_lazy()
982 free(fpath); in find_probe_point_lazy()