Home
last modified time | relevance | path

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

/Linux-v6.1/scripts/
Dspdxcheck.py272 def match_dot(self, fpath): argument
273 return os.path.basename(fpath).startswith('.')
275 def match_file(self, fpath): argument
276 return os.path.basename(fpath) == self.pattern
278 def match_fn(self, fpath): argument
279 return fnmatch.fnmatchcase(fpath, self.pattern)
281 def match_dir(self, fpath): argument
282 if self.match_fn(os.path.dirname(fpath)):
284 return fpath.startswith(self.pattern)
286 def exclude_file(fpath): argument
[all …]
/Linux-v6.1/tools/bpf/bpftool/
Dcgroup.c366 static int do_show_tree_fn(const char *fpath, const struct stat *sb, in do_show_tree_fn() argument
376 cgroup_fd = open(fpath, O_RDONLY); in do_show_tree_fn()
378 p_err("can't open cgroup %s: %s", fpath, strerror(errno)); in do_show_tree_fn()
385 fpath, strerror(errno)); in do_show_tree_fn()
395 jsonw_string_field(json_wtr, "cgroup", fpath); in do_show_tree_fn()
399 printf("%s\n", fpath); in do_show_tree_fn()
Dcommon.c468 static int do_build_table_cb(const char *fpath, const struct stat *sb, in do_build_table_cb() argument
480 fd = open_obj_pinned(fpath, true); in do_build_table_cb()
492 path = strdup(fpath); in do_build_table_cb()
/Linux-v6.1/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-v6.1/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-v6.1/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()