Home
last modified time | relevance | path

Searched refs:filepath (Results 1 – 13 of 13) sorted by relevance

/xnu-11215/tools/tests/perf_index/
H A Dtest_file_helper.c35 char filepath[MAXPATHLEN]; in test_file_create() local
47 retval = unlink(filepath); in test_file_create()
58 char filepath[MAXPATHLEN]; in test_file_read_setup() local
69 snprintf(filepath, sizeof(filepath), "%s/file_read", path); in test_file_read_setup()
94 char filepath[MAXPATHLEN]; in test_file_read() local
103 snprintf(filepath, sizeof(filepath), "%s/file_read", path); in test_file_read()
129 char filepath[MAXPATHLEN]; in test_file_read_cleanup() local
132 snprintf(filepath, sizeof(filepath), "%s/file_read", path); in test_file_read_cleanup()
133 retval = unlink(filepath); in test_file_read_cleanup()
151 snprintf(filepath, sizeof(filepath), "%s/file_write-%d", path, i); in test_file_write_setup()
[all …]
/xnu-11215/tests/
H A Dkqueue_fifo_18776047.c31 void create_fifo(const char * filepath);
82 create_fifo(const char * filepath) in create_fifo() argument
87 ret = stat(filepath, &f_stat); in create_fifo()
90 T_ASSERT_TRUE(S_ISFIFO(f_stat.st_mode), "ensure %s is a fifo", filepath); in create_fifo()
92 ret = mkfifo(filepath, 0777); in create_fifo()
93 T_ASSERT_POSIX_ZERO(ret, "creating a fifo at path %s", filepath); in create_fifo()
95 T_ASSERT_FAIL("stat operation on %s", filepath); in create_fifo()
/xnu-11215/tests/sched/
H A Dthread_group_flags.c172 char *filepath = (char *)malloc(sizeof(char) * MAXPATHLEN); in make_ktrace_filepath() local
173 snprintf(filepath, MAXPATHLEN, "%s/%s.ktrace", dt_tmpdir(), short_name); in make_ktrace_filepath()
174 ret = remove(filepath); in make_ktrace_filepath()
176 return filepath; in make_ktrace_filepath()
293 search_for_workload_id_tg_flags_tracepoints(filepath, num_workload_ids, datas);
295 ret = ktrace_start_writing_path(session, filepath, 0);
297 T_LOG("Ktrace file being written to %s", filepath);
397 char *filepath = make_ktrace_filepath("thread_group_flags_from_pid_interfaces"); variable
403 search_for_pid_based_tg_flags_tracepoints(filepath, num_threads, datas);
405 ret = ktrace_start_writing_path(session, filepath, 0);
[all …]
H A Doverloaded_runqueue.c276 char *filepath = filepath_arr; variable
280 search_for_interrupt_disable_timeout_tracepoint(filepath);
282 ret = ktrace_start_writing_path(session, filepath, 0);
/xnu-11215/tools/
H A Dxcrun_cache.sh75 local filepath="$2"
76 echo "${string}" > "${filepath}.new"
77 cmp -s "${filepath}" "${filepath}.new"
79 rm "${filepath}.new"
81 mv "${filepath}.new" "${filepath}"
H A Dvm_sanitize_enforcement.py88 def are_safe_types_used_in_file(filepath): argument
91 with open(filepath, "r") as file:
95 …print_error("Found safe type \"" + safe_type + "\" in " +filepath + ":" + str(lineno) + ". Line is…
/xnu-11215/tests/vfs/
H A Dfreeable_vnodes.c94 char filepath[NAME_MAX]; in run_vnoder() local
130 sprintf(filepath, "file-%d", i); in run_vnoder()
133 T_ASSERT_POSIX_SUCCESS(fd = openat(dir_fd, filepath, O_CREAT | O_RDWR, 0666), NULL); in run_vnoder()
139 T_ASSERT_POSIX_SUCCESS(unlinkat(dir_fd, filepath, 0), NULL); in run_vnoder()
/xnu-11215/tests/vm/
H A Dneural_footprint.c445 char filepath[MAXPATHLEN]; variable
448 snprintf(filepath, sizeof(filepath), "%s/file.XXXXXX", tmp_dir);
449 T_ASSERT_POSIX_SUCCESS(fd = mkstemp(filepath), NULL);
450 T_ASSERT_POSIX_SUCCESS(unlink(filepath), NULL);
/xnu-11215/tests/ktrace/
H A Dkdebug_tests.c1049 char *filepath = filepath_arr; variable
1070 int error = ktrace_set_file(sread, filepath);
1071 T_QUIET; T_ASSERT_POSIX_ZERO(error, "ktrace_set_file %s", filepath);
1073 ktrace_file_t f = ktrace_file_open(filepath, false);
1075 filepath);
1155 (void)unlink(filepath);
1180 int error = ktrace_start_writing_file(s, filepath,
1182 T_ASSERT_POSIX_ZERO(error, "started writing ktrace to %s", filepath);
/xnu-11215/doc/debugging/
H A Ddebugging.md46 with open(filepath, 'wb') as f:
57 with open(filepath, 'wb') as f:
/xnu-11215/libkern/libkern/c++/
H A DOSKext.h653 static OSReturn loadKCFileSet(const char *filepath, kc_kind_t type);
/xnu-11215/libkern/c++/
H A DOSKext.cpp13475 const char *filepath, argument
13501 fileset_control = ubc_getobject_from_filename(filepath, &vp, &fsize);
13504 printf("Could not get memory control object for file %s", filepath);
13507 "Could not get memory control object for file %s", filepath);
13512 "Could not find vnode for file %s", filepath);
13531 "vnode_getattr(%s) failed (error=%d)", filepath, error);
13537 "Path to KC '%s' is not SIP-protected", filepath);
13572 (void)filepath;
/xnu-11215/tools/lldbmacros/
H A Dmemory.py3750 filepath = GetVnodePath(p.p_textvp)
3751 libname = filepath.split('/')[-1]
3760 libname, uuid_out_string, filepath))