Home
last modified time | relevance | path

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

12

/linux-6.14.4/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.14.4/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.14.4/tools/testing/selftests/resctrl/
Dresctrlfs.c371 char file_path[PATH_MAX]; in resource_info_unsigned_get() local
374 snprintf(file_path, sizeof(file_path), "%s/%s/%s", INFO_PATH, resource, in resource_info_unsigned_get()
377 fp = fopen(file_path, "r"); in resource_info_unsigned_get()
379 ksft_print_msg("Error opening %s: %m\n", file_path); in resource_info_unsigned_get()
384 ksft_print_msg("Could not get contents of %s: %m\n", file_path); in resource_info_unsigned_get()
/linux-6.14.4/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.14.4/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.c47 const char *file_path);
135 event->file_path); in ordered_events__deliver_event()
785 u64 timestamp, u64 file_offset, const char *file_path) in perf_session__queue_event() argument
787 return ordered_events__queue(&s->ordered_events, event, timestamp, file_offset, file_path); in perf_session__queue_event()
1026 const char *file_path) in dump_event() argument
1032 file_offset, file_path, event->header.size, event->header.type); in dump_event()
1261 const char *file_path) in machines__deliver_event() argument
1266 dump_event(evlist, event, file_offset, sample, file_path); in machines__deliver_event()
1351 const char *file_path) in perf_session__deliver_event() argument
1368 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.14.4/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.14.4/tools/verification/dot2/
Dautomata.py22 def __init__(self, file_path, model_name=None): argument
23 self.__dot_path = file_path
Ddot2c.py25 def __init__(self, file_path, model_name=None): argument
26 super().__init__(file_path, model_name)
Ddot2k.py21 def __init__(self, file_path, MonitorType, extra_params={}): argument
22 super().__init__(file_path, extra_params.get("model_name"))
/linux-6.14.4/tools/testing/selftests/landlock/
Dfs_test.c5295 const char *const file_path; in FIXTURE_VARIANT() local
5306 .file_path = file1_s1d1, in FIXTURE_VARIANT_ADD()
5314 .file_path = TMP_DIR "/dir/file", in FIXTURE_VARIANT_ADD()
5321 .file_path = TMP_DIR "/test/cgroup.procs", in FIXTURE_VARIANT_ADD()
5328 .file_path = TMP_DIR "/self/status", in FIXTURE_VARIANT_ADD()
5335 .file_path = TMP_DIR "/kernel/notes", in FIXTURE_VARIANT_ADD()
5343 .file_path = TMP_DIR "/dir/file", in FIXTURE_VARIANT_ADD()
5364 char *dir_path = dirname_alloc(variant->file_path); in FIXTURE_SETUP()
5387 if (stat(variant->file_path, &statbuf)) { in FIXTURE_SETUP()
5391 fd = creat(variant->file_path, 0600); in FIXTURE_SETUP()
[all …]
/linux-6.14.4/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.14.4/fs/iomap/
Dswapfile.c86 p = file_path(isi->file, buf, PATH_MAX); in iomap_swapfile_fail()
/linux-6.14.4/arch/arc/kernel/
Dtroubleshoot.c69 path_nm = file_path(exe_file, buf, ARC_PATH_MAX-1); in print_task_path_n_nm()
/linux-6.14.4/drivers/firmware/efi/libstub/
Defistub.h587 void *file_path; member
602 u32 file_path; member
/linux-6.14.4/drivers/usb/gadget/function/
Dstorage_common.c341 p = file_path(curlun->filp, buf, PAGE_SIZE - 1); in fsg_show_file()
/linux-6.14.4/mm/
Dhuge_memory.c4085 static int split_huge_pages_in_file(const char *file_path, pgoff_t off_start, in split_huge_pages_in_file() argument
4098 file = getname_kernel(file_path); in split_huge_pages_in_file()
4107 file_path, off_start, off_end); in split_huge_pages_in_file()
4185 char file_path[MAX_INPUT_BUF_SZ]; in split_huge_pages_write() local
4191 strscpy(file_path, tok); in split_huge_pages_write()
4203 ret = split_huge_pages_in_file(file_path, off_start, off_end, new_order); in split_huge_pages_write()
/linux-6.14.4/fs/
Dopen.c1070 char *file_path(struct file *filp, char *buf, int buflen) in file_path() function
1074 EXPORT_SYMBOL(file_path);
Dcoredump.c184 path = file_path(exe_file, pathbuf, PATH_MAX); in cn_print_exe_file()
Dbinfmt_elf.c1670 filename = file_path(file, name_curpos, remaining); in fill_files_note()

12