| /linux/tools/docs/ |
| H A D | checktransupdate.py | 36 def get_origin_path(file_path): 38 paths = file_path.split("/") 45 def get_latest_commit_from(file_path, commit): 47 command = f"git log --pretty=format:%H%n%aD%n%cD%n%n%B {commit} -1 -- {file_path}" 131 def check_per_file(file_path): 133 opath = get_origin_path(file_path) 136 logging.error("Cannot find the origin path for %s", file_path) 140 t_from_head = get_latest_commit_from(file_path, "HEAD") 143 logging.error("Cannot find the latest commit for %s", file_path) 152 logging.error("Error: Cannot find the latest origin commit for %s", file_path) 34 get_origin_path(file_path) global() argument 43 get_latest_commit_from(file_path, commit) global() argument 129 check_per_file(file_path) global() argument [all...] |
| /linux/scripts/ |
| H A D | macro_checker.py | 71 def file_check_macro(file_path, report): argument 75 if not file_path.endswith(".c") and not file_path.endswith(".h"): 78 with open(file_path, "r") as f: 100 if file_path.endswith(".c") and cond_compile != 0: 103 if file_path.endswith(".h") and cond_compile != 1:
|
| /linux/tools/testing/selftests/filesystems/fuse/ |
| H A D | fuse_acl_cache_test.c | 192 char file_path[PATH_MAX]; in FIXTURE() local 209 snprintf(self->file_path, sizeof(self->file_path), in FIXTURE_SETUP() 265 sz = lgetxattr(self->file_path, "system.posix_acl_access", in TEST_F() 269 sz = lgetxattr(self->file_path, "system.posix_acl_access", in TEST_F() 288 ASSERT_EQ(do_force_statx(self->file_path), 0); in TEST_F() 299 sz = lgetxattr(self->file_path, "system.posix_acl_access", in TEST_F() 328 sz = lgetxattr(self->file_path, "system.posix_acl_access", in TEST_F()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | cgroup_helpers.c | 132 char file_path[PATH_MAX + 1]; in __write_cgroup_file() local 135 snprintf(file_path, sizeof(file_path), "%s/%s", cgroup_path, file); in __write_cgroup_file() 136 fd = open(file_path, O_RDWR); in __write_cgroup_file() 138 log_err("Opening %s", file_path); in __write_cgroup_file() 143 log_err("Writing to %s", file_path); in __write_cgroup_file()
|
| /linux/scripts/clang-tools/ |
| H A D | gen_compile_commands.py | 22 _LINE_PATTERN = r'^(saved)?cmd_[^ ]*\.o := (?P<command_prefix>.* )(?P<file_path>[^ ]*\.[cS]) *(;|$)' 152 def process_line(root_directory, command_prefix, file_path): argument 159 file_path: The .c file from the end of the extracted command. 166 ValueError: Could not find the extracted file based on file_path and 176 abs_path = os.path.realpath(os.path.join(root_directory, file_path)) 182 'command': prefix + file_path, 219 result.group('file_path'))
|
| /linux/tools/perf/util/ |
| H A D | ordered-events.h | 12 const char *file_path; member 57 u64 timestamp, u64 file_offset, const char *file_path);
|
| H A D | session.c | 49 const char *file_path); 136 event->file_path); in ordered_events__deliver_event() 1265 u64 timestamp, u64 file_offset, const char *file_path) in deliver_sample_value() 1267 return ordered_events__queue(&s->ordered_events, event, timestamp, file_offset, file_path); in deliver_sample_value() 1543 const char *file_path) in machines__deliver_event() 1549 file_offset, file_path, event->header.size, event->header.type); in perf_session__deliver_event() 1967 const char *file_path) in perf_session__warn_about_errors() 1971 dump_event(evlist, event, file_offset, sample, file_path); in perf_session__warn_about_errors() 2132 const char *file_path) in __perf_session__process_pipe_events() 2243 event, &sample, tool, file_offset, file_path); 808 perf_session__queue_event(struct perf_session * s,union perf_event * event,u64 timestamp,u64 file_offset,const char * file_path) perf_session__queue_event() argument 1086 dump_event(struct evlist * evlist,union perf_event * event,u64 file_offset,struct perf_sample * sample,const char * file_path) dump_event() argument 1442 machines__deliver_event(struct machines * machines,struct evlist * evlist,union perf_event * event,struct perf_sample * sample,const struct perf_tool * tool,u64 file_offset,const char * file_path) machines__deliver_event() argument 1552 perf_session__deliver_event(struct perf_session * session,union perf_event * event,const struct perf_tool * tool,u64 file_offset,const char * file_path) perf_session__deliver_event() argument 1585 perf_session__process_user_event(struct perf_session * session,union perf_event * event,u64 file_offset,const char * file_path) perf_session__process_user_event() argument 1836 perf_session__process_event(struct perf_session * session,union perf_event * event,u64 file_offset,const char * file_path) perf_session__process_event() argument 2453 process_simple(struct perf_session * session,union perf_event * event,u64 file_offset,const char * file_path) process_simple() argument [all...] |
| H A D | session.h | 101 const char *file_path; 140 u64 timestamp, u64 file_offset, const char *file_path); 99 const char *file_path; global() member
|
| H A D | ordered-events.c | 195 u64 timestamp, u64 file_offset, const char *file_path) in ordered_events__queue() argument 220 oevent->file_path = file_path; in ordered_events__queue()
|
| H A D | tool.c | 19 const char *file_path) in perf_session__process_compressed_event() argument 62 decomp->file_path = file_path; in perf_session__process_compressed_event() 292 const char *file_path __maybe_unused) in perf_tool__init()
|
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | dot2k.py | 21 def __init__(self, file_path, MonitorType, extra_params={}): 24 Dot2c.__init__(self, file_path, extra_params.get("model_name")) 18 __init__(self, file_path, MonitorType, extra_params={}) global() argument
|
| H A D | ltl2k.py | 64 def __init__(self, file_path, MonitorType, extra_params={}): 69 with open(file_path) as f: 76 self.name = Path(file_path).stem 59 __init__(self, file_path, MonitorType, extra_params={}) global() argument
|
| H A D | automata.py | 375 def __init__(self, file_path, model_name=None): 376 self.__dot_path = file_path 378 self.__parse_tree = ParseTree(file_path) 22 __init__(self, file_path, model_name=None) global() argument
|
| H A D | dot2c.py | 26 def __init__(self, file_path, model_name=None): 27 super().__init__(file_path, model_name) 25 __init__(self, file_path, model_name=None) global() argument
|
| /linux/tools/testing/selftests/mm/ |
| H A D | vm_util.c | 655 int write_sysfs(const char *file_path, unsigned long val) in write_sysfs() argument 657 FILE *f = fopen(file_path, "w"); in write_sysfs() 660 fprintf(stderr, "f %s\n", file_path); in write_sysfs() 674 int read_sysfs(const char *file_path, unsigned long *val) in read_sysfs() argument 676 FILE *f = fopen(file_path, "r"); in read_sysfs() 679 fprintf(stderr, "f %s\n", file_path); in read_sysfs()
|
| H A D | vm_util.h | 113 int write_sysfs(const char *file_path, unsigned long val); 114 int read_sysfs(const char *file_path, unsigned long *val);
|
| H A D | ksm_tests.c | 60 static int ksm_write_sysfs(const char *file_path, unsigned long val) in ksm_write_sysfs() argument 62 return write_sysfs(file_path, val); in ksm_write_sysfs() 65 static int ksm_read_sysfs(const char *file_path, unsigned long *val) in ksm_read_sysfs() argument 67 return read_sysfs(file_path, val); in ksm_read_sysfs()
|
| /linux/lib/ |
| H A D | test_lockup.c | 147 module_param_string(file_path, test_file_path, sizeof(test_file_path), 0400); 148 MODULE_PARM_DESC(file_path, "file path to test");
|
| /linux/fs/iomap/ |
| H A D | swapfile.c | 83 p = file_path(isi->file, buf, PATH_MAX); in iomap_swapfile_fail()
|
| /linux/arch/arc/kernel/ |
| H A D | troubleshoot.c | 69 path_nm = file_path(exe_file, buf, ARC_PATH_MAX-1); in print_task_path_n_nm()
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | fs_test.c | 7195 const char *const file_path; in FIXTURE_VARIANT() local 7206 .file_path = file1_s1d1, in FIXTURE_VARIANT_ADD() 7214 .file_path = TMP_DIR "/dir/file", in FIXTURE_VARIANT_ADD() 7221 .file_path = TMP_DIR "/test/cgroup.procs", in FIXTURE_VARIANT_ADD() 7228 .file_path = TMP_DIR "/self/status", in FIXTURE_VARIANT_ADD() 7235 .file_path = TMP_DIR "/kernel/notes", in FIXTURE_VARIANT_ADD() 7243 .file_path = TMP_DIR "/dir/file", in FIXTURE_VARIANT_ADD() 7264 char *dir_path = dirname_alloc(variant->file_path); in FIXTURE_SETUP() 7287 if (stat(variant->file_path, &statbuf)) { in FIXTURE_SETUP() 7291 fd = creat(variant->file_path, 0600); in FIXTURE_SETUP() [all …]
|
| /linux/drivers/usb/gadget/function/ |
| H A D | storage_common.c | 341 p = file_path(curlun->filp, buf, PAGE_SIZE - 1); in fsg_show_file()
|
| /linux/drivers/firmware/efi/libstub/ |
| H A D | efistub.h | 617 void *file_path; member 632 u32 file_path; member
|
| /linux/mm/ |
| H A D | huge_memory.c | 4900 static int split_huge_pages_in_file(const char *file_path, pgoff_t off_start, in split_huge_pages_in_file() argument 4912 CLASS(filename_kernel, file)(file_path); in split_huge_pages_in_file() 4918 file_path, off_start, off_end, new_order, in_folio_offset); in split_huge_pages_in_file() 5000 char file_path[MAX_INPUT_BUF_SZ]; in split_huge_pages_write() local 5006 strscpy(file_path, tok); in split_huge_pages_write() 5018 ret = split_huge_pages_in_file(file_path, off_start, off_end, in split_huge_pages_write()
|
| /linux/fs/erofs/ |
| H A D | super.c | 461 p = file_path(param->file, buf, PATH_MAX); in erofs_fc_parse_source()
|