Home
last modified time | relevance | path

Searched refs:fileno (Results 1 – 25 of 34) sorted by relevance

12

/system/extras/ioshark/
Dconvert_format.c42 int fileno; member
78 int fileno; /* 1..num_files, with files name ioshark.<fileno> */ member
163 new_file_state.fileno = old_file_state.fileno; in main()
168 new_file_state.fileno = htobe64(new_file_state.fileno); in main()
206 new_disk_file_op.fileno = old_disk_file_op.fileno; in main()
207 new_disk_file_op.fileno = htobe64(new_disk_file_op.fileno); in main()
Dcompile_ioshark_subr.c48 st.fileno = db_node->fileno; in files_db_write_objects()
95 db_node->fileno = current_fileno++; in files_db_add()
229 state->fileno = htobe64(state->fileno); in ioshark_write_file_state()
242 file_op->fileno = htobe64(file_op->fileno); in ioshark_write_file_op()
Dioshark_bench.h46 int fileno; member
85 return (((struct files_db_s *)node)->fileno); in files_db_get_fileno()
131 void *files_db_lookup_byfileno(void *handle, int fileno);
132 void *files_db_add_byfileno(void *handle, int fileno, int readonly);
Dioshark_bench_subr.c53 void *files_db_lookup_byfileno(void *handle, int fileno) in files_db_lookup_byfileno() argument
59 hash = fileno % FILE_DB_HASHSIZE; in files_db_lookup_byfileno()
62 if (db_node->fileno == fileno) in files_db_lookup_byfileno()
69 void *files_db_add_byfileno(void *handle, int fileno, int readonly) in files_db_add_byfileno() argument
71 u_int32_t hash = fileno % FILE_DB_HASHSIZE; in files_db_add_byfileno()
76 files_db_lookup_byfileno(handle, fileno); in files_db_add_byfileno()
79 db_node->fileno = fileno; in files_db_add_byfileno()
89 __func__, fileno); in files_db_add_byfileno()
669 state->fileno = be64toh(state->fileno); in ioshark_read_file_state()
682 file_op->fileno = be64toh(file_op->fileno); in ioshark_read_file_op()
Dcompile_ioshark.h21 int fileno; member
62 return (((struct files_db_s *)node)->fileno); in files_db_get_fileno()
Dioshark.h45 u_int64_t fileno; /* 1..num_files, with files name ioshark.<fileno> */ member
84 u_int64_t fileno; member
DREADME57 u_int64_t fileno;
70 u_int64_t fileno;
Dioshark_bench.c195 file_state.fileno); in create_files()
204 file_state.fileno, in create_files()
441 file_op.fileno); in do_io()
445 progname, file_op.fileno); in do_io()
/system/core/init/
Dmount_handler.cpp118 fileno(fp_.get()), [this]() { this->MountHandlerFunction(); }, EPOLLERR | EPOLLPRI); in MountHandler()
123 if (fp_) epoll_->UnregisterHandler(fileno(fp_.get())); in ~MountHandler()
/system/extras/simpleperf/
Dcmd_api_test.cpp38 if (!android::base::ReadFdToString(fileno(fp.get()), &s)) { in WaitUntilAppExit()
Dcmd_inject.cpp427 if (!branch_list_proto.SerializeToFileDescriptor(fileno(output_fp_.get()))) { in PostProcessBranchList()
/system/update_engine/scripts/update_payload/
Dapplier.py397 new_file_name = '/dev/fd/%d' % new_part_file.fileno()
399 old_file_name = '/dev/fd/%d' % old_part_file.fileno()
406 os.set_inheritable(new_part_file.fileno(), True)
407 os.set_inheritable(old_part_file.fileno(), True)
/system/core/liblog/tests/
Dlog_radio_test.cpp98 if (!android::base::ReadFdToString(fileno(fp), &buf)) buf = ""; in TEST()
Dlog_system_test.cpp98 if (!android::base::ReadFdToString(fileno(fp), &buf)) buf = ""; in TEST()
Dliblog_test.cpp152 if (!android::base::ReadFdToString(fileno(fp), &ret)) ret = ""; in popenToString()
390 android_log_printLogLine(logformat, fileno(stderr), &entry)); in bswrite_test()
393 android_log_printLogLine(logformat, fileno(stderr), &entry)); in bswrite_test()
472 android_log_printLogLine(logformat, fileno(stderr), &entry)); in buf_write_test()
1010 android_log_printLogLine(logformat, fileno(stderr), &entry); in TEST()
2497 android_log_printLogLine(logformat, fileno(stderr), &entry); in create_android_logger()
/system/bt/gd/os/linux_generic/
Dfiles.cc151 if (fsync(fileno(fp)) != 0) { in WriteToFile()
/system/sepolicy/tests/
Dsepol_wrap.cpp214 if (fstat(fileno(fp), &sb)) { in load_policy()
223 mmap(nullptr, sb.st_size, PROT_READ, MAP_PRIVATE, fileno(fp), 0), unmap); in load_policy()
/system/libufdt/utils/src/
Dmkdtboimg.py310 file_size = os.fstat(self.__file.fileno()).st_size
625 params['dt_size'] = os.fstat(params['dt_file'].fileno()).st_size
859 params['dt_size'] = os.fstat(params['dt_file'].fileno()).st_size
/system/bt/osi/src/
Dconfig.cc328 if (fsync(fileno(fp)) < 0) { in config_save()
429 if (fsync(fileno(fp)) < 0) { in checksum_save()
/system/libziparchive/
Dzip_writer.cc97 if (fstat(fileno(f), &file_stats) == 0) { in ZipWriter()
569 if (ftruncate(fileno(file_), current_offset_) != 0) { in Finish()
/system/core/debuggerd/crasher/
Dcrasher.cpp272 close(fileno(f)); in do_action()
/system/memory/lmkd/tests/
Dlmkd_test.cpp62 ReadFdToString(fileno(fp), &content); in readCommand()
/system/core/fastboot/fuzzy_fastboot/
Dextensions.cpp58 int nbytes = write(fileno(stderr), err_str.c_str(), err_str.length()); in MakeRegex()
/system/update_engine/scripts/
Dupdate_device.py178 stat = os.fstat(f.fileno())
/system/tools/mkbootimg/
Dmkbootimg.py31 return fstat(f.fileno()).st_size

12