Home
last modified time | relevance | path

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

12

/linux/scripts/
H A Dchecktransupdate.py34 def get_origin_path(file_path): argument
36 paths = file_path.split("/")
43 def get_latest_commit_from(file_path, commit): argument
129 def check_per_file(file_path): argument
131 opath = get_origin_path(file_path)
138 t_from_head = get_latest_commit_from(file_path, "HEAD")
141 logging.error("Cannot find the latest commit for %s", file_path)
150 logging.error("Error: Cannot find the latest origin commit for %s", file_path)
154 logging.debug("No update needed for %s", file_path)
156 logging.info(file_path)
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/tools/testing/selftests/mm/
H A Dvm_util.c490 int write_sysfs(const char *file_path, unsigned long val) in write_sysfs() argument
492 FILE *f = fopen(file_path, "w"); in write_sysfs()
495 fprintf(stderr, "f %s\n", file_path); in write_sysfs()
509 int read_sysfs(const char *file_path, unsigned long *val) in read_sysfs() argument
511 FILE *f = fopen(file_path, "r"); in read_sysfs()
514 fprintf(stderr, "f %s\n", file_path); in read_sysfs()
H A Dvm_util.h100 int write_sysfs(const char *file_path, unsigned long val);
101 int read_sysfs(const char *file_path, unsigned long *val);
/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/testing/selftests/resctrl/
H A 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/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 Dtool.c18 const char *file_path) in perf_session__process_compressed_event() argument
40 decomp->file_path = file_path; in perf_session__process_compressed_event()
237 const char *file_path __maybe_unused) in perf_session__process_compressed_event_stub()
H A Dsession.c48 const char *file_path);
136 event->file_path); in ordered_events__deliver_event()
790 u64 timestamp, u64 file_offset, const char *file_path) in perf_session__queue_event() argument
792 return ordered_events__queue(&s->ordered_events, event, timestamp, file_offset, file_path); in perf_session__queue_event()
1041 const char *file_path) in dump_event() argument
1047 file_offset, file_path, event->header.size, event->header.type); in dump_event()
1276 const char *file_path) in machines__deliver_event() argument
1281 dump_event(evlist, event, file_offset, sample, file_path); in machines__deliver_event()
1366 const char *file_path) in perf_session__deliver_event() argument
1387 event, &sample, tool, file_offset, file_path); in perf_session__deliver_event()
[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()
/linux/tools/verification/rvgen/rvgen/
H A Ddot2k.py18 def __init__(self, file_path, MonitorType, extra_params={}): argument
21 Dot2c.__init__(self, file_path, extra_params.get("model_name"))
H A Dltl2k.py59 def __init__(self, file_path, MonitorType, extra_params={}): argument
63 with open(file_path) as f:
68 self.name = Path(file_path).stem
H A Dautomata.py22 def __init__(self, file_path, model_name=None): argument
23 self.__dot_path = file_path
H A Ddot2c.py25 def __init__(self, file_path, model_name=None): argument
26 super().__init__(file_path, model_name)
/linux/tools/testing/selftests/landlock/
H A Dfs_test.c5336 const char *const file_path; in FIXTURE_VARIANT() local
5347 .file_path = file1_s1d1, in FIXTURE_VARIANT_ADD()
5355 .file_path = TMP_DIR "/dir/file", in FIXTURE_VARIANT_ADD()
5362 .file_path = TMP_DIR "/test/cgroup.procs", in FIXTURE_VARIANT_ADD()
5369 .file_path = TMP_DIR "/self/status", in FIXTURE_VARIANT_ADD()
5376 .file_path = TMP_DIR "/kernel/notes", in FIXTURE_VARIANT_ADD()
5384 .file_path = TMP_DIR "/dir/file", in FIXTURE_VARIANT_ADD()
5405 char *dir_path = dirname_alloc(variant->file_path); in FIXTURE_SETUP()
5428 if (stat(variant->file_path, &statbuf)) { in FIXTURE_SETUP()
5432 fd = creat(variant->file_path, 0600); in FIXTURE_SETUP()
[all …]
/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.c724 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/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.h587 void *file_path; member
602 u32 file_path; member
/linux/mm/
H A Dhuge_memory.c4419 static int split_huge_pages_in_file(const char *file_path, pgoff_t off_start, in split_huge_pages_in_file() argument
4433 file = getname_kernel(file_path); in split_huge_pages_in_file()
4442 file_path, off_start, off_end); in split_huge_pages_in_file()
4528 char file_path[MAX_INPUT_BUF_SZ]; in split_huge_pages_write() local
4534 strscpy(file_path, tok); in split_huge_pages_write()
4546 ret = split_huge_pages_in_file(file_path, off_start, off_end, in split_huge_pages_write()
/linux/drivers/block/
H A Dloop.c651 p = file_path(lo->lo_backing_file, buf, PAGE_SIZE - 1); in loop_attr_backing_file_show()

12