Home
last modified time | relevance | path

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

12

/linux-6.12.1/scripts/
Dchecktransupdate.py33 def get_origin_path(file_path): argument
35 paths = file_path.split("/")
42 def get_latest_commit_from(file_path, commit): argument
96 def check_per_file(file_path): argument
98 opath = get_origin_path(file_path)
105 t_from_head = get_latest_commit_from(file_path, "HEAD")
108 logging.error("Cannot find the latest commit for %s", file_path)
114 logging.error("Error: Cannot find the latest origin commit for %s", file_path)
118 logging.debug("No update needed for %s", file_path)
120 logging.info(file_path)
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-6.12.1/drivers/gpu/drm/ci/xfails/
Dupdate-xfails.py31 def read_file(file_path): argument
33 with open(file_path, "r") as file:
42 def save_file(content, file_path): argument
45 if os.path.exists(file_path):
46 os.remove(file_path)
49 with open(file_path, "w") as file:
/linux-6.12.1/tools/testing/selftests/bpf/
Dcgroup_helpers.c131 char file_path[PATH_MAX + 1]; in __write_cgroup_file() local
134 snprintf(file_path, sizeof(file_path), "%s/%s", cgroup_path, file); in __write_cgroup_file()
135 fd = open(file_path, O_RDWR); in __write_cgroup_file()
137 log_err("Opening %s", file_path); in __write_cgroup_file()
142 log_err("Writing to %s", file_path); in __write_cgroup_file()
/linux-6.12.1/tools/testing/selftests/resctrl/
Dresctrlfs.c266 char file_path[PATH_MAX]; in resource_info_unsigned_get() local
269 snprintf(file_path, sizeof(file_path), "%s/%s/%s", INFO_PATH, resource, in resource_info_unsigned_get()
272 fp = fopen(file_path, "r"); in resource_info_unsigned_get()
274 ksft_print_msg("Error opening %s: %m\n", file_path); in resource_info_unsigned_get()
279 ksft_print_msg("Could not get contents of %s: %m\n", file_path); in resource_info_unsigned_get()
/linux-6.12.1/scripts/clang-tools/
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-6.12.1/tools/perf/util/
Dtool.c15 const char *file_path) in perf_session__process_compressed_event() argument
37 decomp->file_path = file_path; in perf_session__process_compressed_event()
227 const char *file_path __maybe_unused) in perf_session__process_compressed_event_stub()
Dordered-events.h12 const char *file_path; member
57 u64 timestamp, u64 file_offset, const char *file_path);
Dsession.c46 const char *file_path);
134 event->file_path); in ordered_events__deliver_event()
784 u64 timestamp, u64 file_offset, const char *file_path) in perf_session__queue_event() argument
786 return ordered_events__queue(&s->ordered_events, event, timestamp, file_offset, file_path); in perf_session__queue_event()
1025 const char *file_path) in dump_event() argument
1031 file_offset, file_path, event->header.size, event->header.type); in dump_event()
1250 const char *file_path) in machines__deliver_event() argument
1255 dump_event(evlist, event, file_offset, sample, file_path); in machines__deliver_event()
1340 const char *file_path) in perf_session__deliver_event() argument
1357 event, &sample, tool, file_offset, file_path); in perf_session__deliver_event()
[all …]
Dsession.h99 const char *file_path; member
135 u64 timestamp, u64 file_offset, const char *file_path);
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()
/linux-6.12.1/tools/testing/selftests/mm/
Dksm_tests.c59 static int ksm_write_sysfs(const char *file_path, unsigned long val) in ksm_write_sysfs() argument
61 FILE *f = fopen(file_path, "w"); in ksm_write_sysfs()
64 fprintf(stderr, "f %s\n", file_path); in ksm_write_sysfs()
78 static int ksm_read_sysfs(const char *file_path, unsigned long *val) in ksm_read_sysfs() argument
80 FILE *f = fopen(file_path, "r"); in ksm_read_sysfs()
83 fprintf(stderr, "f %s\n", file_path); in ksm_read_sysfs()
/linux-6.12.1/tools/verification/dot2/
Dautomata.py22 def __init__(self, file_path): argument
23 self.__dot_path = file_path
Ddot2k.py20 def __init__(self, file_path, MonitorType): argument
21 super().__init__(file_path)
Ddot2c.py25 def __init__(self, file_path): argument
26 super().__init__(file_path)
/linux-6.12.1/tools/testing/selftests/landlock/
Dfs_test.c5141 const char *const file_path; in FIXTURE_VARIANT() local
5152 .file_path = file1_s1d1, in FIXTURE_VARIANT_ADD()
5160 .file_path = TMP_DIR "/dir/file", in FIXTURE_VARIANT_ADD()
5167 .file_path = TMP_DIR "/test/cgroup.procs", in FIXTURE_VARIANT_ADD()
5174 .file_path = TMP_DIR "/self/status", in FIXTURE_VARIANT_ADD()
5181 .file_path = TMP_DIR "/kernel/notes", in FIXTURE_VARIANT_ADD()
5189 .file_path = TMP_DIR "/dir/file", in FIXTURE_VARIANT_ADD()
5210 char *dir_path = dirname_alloc(variant->file_path); in FIXTURE_SETUP()
5233 if (stat(variant->file_path, &statbuf)) { in FIXTURE_SETUP()
5237 fd = creat(variant->file_path, 0600); in FIXTURE_SETUP()
[all …]
/linux-6.12.1/lib/
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");
Dstring_helpers.c721 pathname = file_path(file, temp, PATH_MAX + 11); in kstrdup_quotable_file()
/linux-6.12.1/fs/iomap/
Dswapfile.c86 p = file_path(isi->file, buf, PATH_MAX); in iomap_swapfile_fail()
/linux-6.12.1/arch/arc/kernel/
Dtroubleshoot.c69 path_nm = file_path(exe_file, buf, ARC_PATH_MAX-1); in print_task_path_n_nm()
/linux-6.12.1/drivers/firmware/efi/libstub/
Defistub.h585 void *file_path; member
600 u32 file_path; member
/linux-6.12.1/drivers/usb/gadget/function/
Dstorage_common.c341 p = file_path(curlun->filp, buf, PAGE_SIZE - 1); in fsg_show_file()
/linux-6.12.1/mm/
Dhuge_memory.c3993 static int split_huge_pages_in_file(const char *file_path, pgoff_t off_start, in split_huge_pages_in_file() argument
4006 file = getname_kernel(file_path); in split_huge_pages_in_file()
4015 file_path, off_start, off_end); in split_huge_pages_in_file()
4093 char file_path[MAX_INPUT_BUF_SZ]; in split_huge_pages_write() local
4099 strcpy(file_path, tok); in split_huge_pages_write()
4110 ret = split_huge_pages_in_file(file_path, off_start, off_end, new_order); in split_huge_pages_write()
/linux-6.12.1/fs/
Dopen.c1072 char *file_path(struct file *filp, char *buf, int buflen) in file_path() function
1076 EXPORT_SYMBOL(file_path);
Dcoredump.c183 path = file_path(exe_file, pathbuf, PATH_MAX); in cn_print_exe_file()

12