Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 25 of 32) sorted by relevance

12

/linux/tools/docs/
H A Dchecktransupdate.py36 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 Dmacro_checker.py71 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/bpf/
H A Dcgroup_helpers.c132 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 Dgen_compile_commands.py152 def process_line(root_directory, command_prefix, file_path): argument
176 abs_path = os.path.realpath(os.path.join(root_directory, file_path))
182 'command': prefix + file_path,
/linux/tools/perf/util/
H A Dordered-events.h12 const char *file_path; member
57 u64 timestamp, u64 file_offset, const char *file_path);
H A Dsession.c49 const char *file_path);
136 event->file_path); in ordered_events__deliver_event()
815 u64 timestamp, u64 file_offset, const char *file_path) in callchain__lbr_callstack_printf()
817 return ordered_events__queue(&s->ordered_events, event, timestamp, file_offset, file_path); in callchain__lbr_callstack_printf()
1093 const char *file_path) in dump_event()
1099 file_offset, file_path, event->header.size, event->header.type); in dump_event()
1459 const char *file_path) in machines__deliver_event()
1464 dump_event(evlist, event, file_offset, sample, file_path); in machines__deliver_event()
1573 const char *file_path) in perf_session__deliver_event()
1594 event, &sample, tool, file_offset, file_path); in perf_session__process_user_event()
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 Dsession.h99 const char *file_path; member
136 u64 timestamp, u64 file_offset, const char *file_path);
H A Dordered-events.c195 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 Dtool.c19 const char *file_path) in perf_session__process_compressed_event() argument
41 decomp->file_path = file_path; in perf_session__process_compressed_event()
244 const char *file_path __maybe_unused) in perf_session__process_compressed_event_stub()
/linux/tools/testing/selftests/mm/
H A Dvm_util.c535 int write_sysfs(const char *file_path, unsigned long val) in write_sysfs() argument
537 FILE *f = fopen(file_path, "w"); in write_sysfs()
540 fprintf(stderr, "f %s\n", file_path); in write_sysfs()
554 int read_sysfs(const char *file_path, unsigned long *val) in read_sysfs() argument
556 FILE *f = fopen(file_path, "r"); in read_sysfs()
559 fprintf(stderr, "f %s\n", file_path); in read_sysfs()
H A Dvm_util.h114 int write_sysfs(const char *file_path, unsigned long val);
115 int read_sysfs(const char *file_path, unsigned long *val);
H A Dksm_tests.c60 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/tools/verification/rvgen/rvgen/
H A Ddot2k.py20 def __init__(self, file_path, MonitorType, extra_params={}):
23 Dot2c.__init__(self, file_path, extra_params.get("model_name"))
18 __init__(self, file_path, MonitorType, extra_params={}) global() argument
H A Dltl2k.py64 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 Dautomata.py65 def __init__(self, file_path, model_name=None):
66 self.__dot_path = file_path
22 __init__(self, file_path, model_name=None) global() argument
H A Ddot2c.py26 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/lib/
H A Dtest_lockup.c147 module_param_string(file_path, test_file_path, sizeof(test_file_path), 0400);
148 MODULE_PARM_DESC(file_path, "file path to test");
H A Dstring_helpers.c725 pathname = file_path(file, temp, PATH_MAX + 11); in kstrdup_quotable_file()
/linux/fs/iomap/
H A Dswapfile.c83 p = file_path(isi->file, buf, PATH_MAX); in iomap_swapfile_fail()
/linux/arch/arc/kernel/
H A Dtroubleshoot.c69 path_nm = file_path(exe_file, buf, ARC_PATH_MAX-1); in print_task_path_n_nm()
/linux/tools/testing/selftests/landlock/
H A Dfs_test.c6962 const char *const file_path; in layer3_fs_tag_inode()
6973 .file_path = file1_s1d1, in layer3_fs_tag_inode()
6981 .file_path = TMP_DIR "/dir/file", in TEST_F_FORK()
6988 .file_path = TMP_DIR "/test/cgroup.procs", in TEST_F_FORK()
6995 .file_path = TMP_DIR "/self/status", in TEST_F_FORK()
7002 .file_path = TMP_DIR "/kernel/notes", in TEST_F_FORK()
7010 .file_path = TMP_DIR "/dir/file", in TEST_F_FORK()
7031 char *dir_path = dirname_alloc(variant->file_path); in TEST_F_FORK()
7054 if (stat(variant->file_path, &statbuf)) { in matches_log_fs_extra()
7058 fd = creat(variant->file_path, 060 in matches_log_fs_extra()
6790 const char *const file_path; FIXTURE_VARIANT() local
[all...]
/linux/drivers/usb/gadget/function/
H A Dstorage_common.c341 p = file_path(curlun->filp, buf, PAGE_SIZE - 1); in fsg_show_file()
/linux/drivers/firmware/efi/libstub/
H A Defistub.h617 void *file_path; member
632 u32 file_path; member
/linux/mm/
H A Dhuge_memory.c4815 static int split_huge_pages_in_file(const char *file_path, pgoff_t off_start, in split_huge_pages_in_file() argument
4827 CLASS(filename_kernel, file)(file_path); in split_huge_pages_in_file()
4833 file_path, off_start, off_end, new_order, in_folio_offset); in split_huge_pages_in_file()
4915 char file_path[MAX_INPUT_BUF_SZ]; in split_huge_pages_write() local
4921 strscpy(file_path, tok); in split_huge_pages_write()
4933 ret = split_huge_pages_in_file(file_path, off_start, off_end, in split_huge_pages_write()
/linux/fs/
H A Dbinfmt_elf.c1636 filename = file_path(file, name_curpos, remaining); in fill_files_note()

12