| /linux/scripts/ |
| H A D | spdxcheck.py | 278 def match_dot(self, fpath): argument 279 return os.path.basename(fpath).startswith('.') 281 def match_file(self, fpath): argument 282 return os.path.basename(fpath) == self.pattern 284 def match_fn(self, fpath): argument 285 return fnmatch.fnmatchcase(fpath, self.pattern) 287 def match_dir(self, fpath): argument 288 if self.match_fn(os.path.dirname(fpath)): 290 return fpath.startswith(self.pattern) 292 def exclude_file(fpath): argument [all …]
|
| /linux/tools/bpf/bpftool/ |
| H A D | cgroup.c | 454 static int do_show_tree_fn(const char *fpath, const struct stat *sb, in do_show_tree_fn() 464 cgroup_fd = open(fpath, O_RDONLY); in do_show_tree_fn() 466 p_err("can't open cgroup %s: %s", fpath, strerror(errno)); in do_show_tree_fn() 473 fpath, strerror(errno)); in find_cgroup_root() 483 jsonw_string_field(json_wtr, "cgroup", fpath); in find_cgroup_root() 487 printf("%s\n", fpath); in find_cgroup_root() 413 do_show_tree_fn(const char * fpath,const struct stat * sb,int typeflag,struct FTW * ftw) do_show_tree_fn() argument
|
| H A D | common.c | 563 static int do_build_table_cb(const char *fpath, const struct stat *sb, in do_build_table_cb() 575 fd = open_obj_pinned(fpath, true, NULL); in do_build_table_cb() 587 path = strdup(fpath); in do_build_table_cb() 551 do_build_table_cb(const char * fpath,const struct stat * sb,int typeflag,struct FTW * ftwbuf) do_build_table_cb() argument
|
| /linux/tools/perf/util/ |
| H A D | cgroup.c | 217 static int add_cgroup_name(const char *fpath, const struct stat *sb __maybe_unused, in add_cgroup_name() argument 225 cn = malloc(sizeof(*cn) + strlen(fpath) + 1); in add_cgroup_name() 230 strcpy(cn->name, fpath); in add_cgroup_name() 236 static int check_and_add_cgroup_name(const char *fpath) in check_and_add_cgroup_name() argument 241 if (!strcmp(cn->name, fpath)) in check_and_add_cgroup_name() 246 return add_cgroup_name(fpath, NULL, FTW_D, NULL); in check_and_add_cgroup_name()
|
| H A D | probe-finder.c | 873 char *fpath; in find_probe_point_lazy() 885 ret = find_source_path(pf->fname, sbuild_id, comp_dir, &fpath); in skip_prologue() 892 ret = find_lazy_match_lines(pf->lcache, fpath, in skip_prologue() 894 free(fpath); in skip_prologue() 853 char *fpath; find_probe_point_lazy() local
|
| /linux/tools/perf/bench/ |
| H A D | inject-buildid.c | 79 static int add_dso(const char *fpath, const struct stat *sb __maybe_unused, in add_dso() argument 88 if (filename__read_build_id(fpath, &bid) < 0) in add_dso() 91 dso->name = realpath(fpath, NULL); in add_dso() 96 pr_debug2(" Adding DSO: %s\n", fpath); in add_dso()
|
| /linux/fs/smb/client/ |
| H A D | dfs.c | 101 * Return the matching byte offset in @fpath, which holds the same path in in setup_dfs_ref() 106 const char *cpath, const char *fpath, in setup_dfs_ref() 109 size_t clen = strlen(cpath), flen = strlen(fpath), off = 0; in setup_dfs_ref() 118 !memcmp(cpath, fpath, consumed)) in setup_dfs_ref() 133 len = nls->char2uni((const unsigned char *)fpath + off, in __dfs_referral_walk() 136 uni = (unsigned char)fpath[off]; in __dfs_referral_walk() 159 const char *fpath = ref_walk_fpath(rw) + 1; in __dfs_referral_walk() 169 cpath, fpath, tgt->path_consumed); in __dfs_referral_walk() 173 rc = dfs_parse_target_referral(fpath, &local, ctx); in __dfs_referral_walk() 93 const char *fpath = ref_walk_fpath(rw) + 1; parse_dfs_target() local
|
| /linux/tools/testing/selftests/powerpc/ |
| H A D | utils.c | 493 int read_sysfs_file(char *fpath, char *result, size_t result_size) in read_sysfs_file() argument 497 strncat(path, fpath, PATH_MAX - strlen(path) - 1); in read_sysfs_file()
|