/Zephyr-latest/subsys/profiling/perf/backends/ |
D | perf_riscv.c | 66 void **fp = (void **)esf->s0; in arch_perf_current_stack_trace() local 67 void **new_fp = (void **)fp[-1]; in arch_perf_current_stack_trace() 80 fp = new_fp; in arch_perf_current_stack_trace() 82 while (valid_stack((uintptr_t)fp, arch_current_thread())) { in arch_perf_current_stack_trace() 87 if (!in_text_region((uintptr_t)fp[-1])) { in arch_perf_current_stack_trace() 91 buf[idx++] = (uintptr_t)fp[-1]; in arch_perf_current_stack_trace() 92 new_fp = (void **)fp[-2]; in arch_perf_current_stack_trace() 99 if (new_fp <= fp) { in arch_perf_current_stack_trace() 102 fp = new_fp; in arch_perf_current_stack_trace()
|
D | perf_x86_64.c | 44 void **fp = (void **)arch_current_thread()->callee_saved.rbp; in arch_perf_current_stack_trace() local 56 while (valid_stack((uintptr_t)fp, arch_current_thread())) { in arch_perf_current_stack_trace() 61 if (!in_text_region((uintptr_t)fp[1])) { in arch_perf_current_stack_trace() 65 buf[idx++] = (uintptr_t)fp[1]; in arch_perf_current_stack_trace() 66 void **new_fp = (void **)fp[0]; in arch_perf_current_stack_trace() 73 if (new_fp <= fp) { in arch_perf_current_stack_trace() 76 fp = new_fp; in arch_perf_current_stack_trace()
|
D | perf_x86.c | 56 void **fp = (void **)isf->ebp; in arch_perf_current_stack_trace() local 70 while (valid_stack((uintptr_t)fp, arch_current_thread())) { in arch_perf_current_stack_trace() 75 if (!in_text_region((uintptr_t)fp[1])) { in arch_perf_current_stack_trace() 79 buf[idx++] = (uintptr_t)fp[1]; in arch_perf_current_stack_trace() 80 void **new_fp = (void **)fp[0]; in arch_perf_current_stack_trace() 87 if (new_fp <= fp) { in arch_perf_current_stack_trace() 90 fp = new_fp; in arch_perf_current_stack_trace()
|
/Zephyr-latest/scripts/build/ |
D | gen_isr_tables_parser_carrays.py | 182 def __write_code_irq_vector_table(self, fp): argument 183 fp.write(self.source_assembly_header) 185 fp.write("void __irq_vector_table __attribute__((naked)) _irq_vector_table(void) {\n") 197 fp.write("\t__asm(ARCH_IRQ_VECTOR_JUMP_CODE({}));\n".format(func_as_string)) 198 fp.write("}\n") 200 def __write_address_irq_vector_table(self, fp): argument 201 fp.write("uintptr_t __irq_vector_table _irq_vector_table[%d] = {\n" % self.__nv) 209 fp.write("\t{},\n".format(func)) 211 fp.write("\t((uintptr_t)&{}),\n".format(func)) 213 fp.write("};\n") [all …]
|
D | gen_isr_tables_parser_local.py | 261 def __write_isr_handlers(self, fp): argument 264 fp.write(self.__isr_spurious_entry(i) + '\n') 267 fp.write(self.__isr_shared_entry(i) + '\n') 269 fp.write('/* ISR: {} implemented in app in "{}" section. */\n'.format( 272 def __write_irq_handlers(self, fp): argument 275 fp.write(self.__irq_spurious_entry(i) + '\n') 277 fp.write('/* ISR: {} implemented in app. */\n'.format(i)) 279 def __write_shared_handlers(self, fp): argument 280 fp.write("extern struct z_shared_isr_table_entry " 289 fp.write('static Z_DECL_ALIGN(struct _isr_table_entry)\n' + [all …]
|
D | gen_iter_sections.py | 15 with open(filepath) as fp: 16 return json.load(fp)[tag] 20 with open(filepath, "w") as fp: 22 fp.write(f"ITERABLE_SECTION_ROM({item}, {alignment})\n") 26 with open(filepath, "w") as fp: 28 fp.write( 34 fp.write( 41 fp.write('set(DEVICE_API_SECTIONS "${sections}" CACHE INTERNAL "")\n') 42 fp.write('set(DEVICE_API_SECTION_SETTINGS "${section_settings}" CACHE INTERNAL "")\n')
|
D | gen_kobject_list.py | 773 def write_gperf_table(fp, syms, objs, little_endian, static_begin, static_end): argument 774 fp.write(header) 776 fp.write("static struct k_mutex kernel_mutexes[%d] = {\n" 779 fp.write("Z_MUTEX_INITIALIZER(kernel_mutexes[%d])" % i) 781 fp.write(", ") 782 fp.write("};\n") 785 fp.write("static struct z_futex_data futex_data[%d] = {\n" 788 fp.write("Z_FUTEX_DATA_INITIALIZER(futex_data[%d])" % i) 790 fp.write(", ") 791 fp.write("};\n") [all …]
|
D | parse_syscalls.py | 71 with open(file_list, "r", encoding="utf-8") as fp: 72 contents = fp.read() 118 with open(one_file, "r", encoding="utf-8") as fp: 120 contents = fp.read() 145 with open(path, 'r') as fp: 146 old = fp.read() 149 with open(path, 'w') as fp: 150 fp.write(new) 152 with open(path, 'w') as fp: 153 fp.write(new)
|
D | gen_syscalls.py | 506 with open(args.syscall_dispatch, "w") as fp: 517 fp.write(table_template % (weak_defines, 523 with open(args.syscall_weakdefs_llext, "w") as fp: 527 fp.write(llext_weakdefs_template % weak_refs) 530 with open(args.syscall_exports_llext, "w") as fp: 536 fp.write(llext_exports_template % (extern_refs, exported_symbols)) 556 with open(args.syscall_list, "w") as fp: 557 fp.write(list_template % ids_as_defines) 570 with open(out_fn, "w") as fp: 571 fp.write(header) [all …]
|
D | file2hex.py | 71 with open(args.file, "rb") as fp: 72 fp.seek(args.offset) 74 for chunk in iter(lambda: fp.read(8), b''): 78 for chunk in iter(lambda: fp.read(min(8, remainder)), b''):
|
D | process_gperf.py | 80 def process_line(line, fp): argument 82 fp.write(line) 88 fp.write("static inline " + line) 122 fp.write(" if (str == s)\n") 132 fp.write(line)
|
/Zephyr-latest/tests/net/socket/udp/ |
D | generate-c-string.py | 20 with open(args.filepath, "w", encoding="UTF-8") as fp: 21 fp.write('"') 23 fp.write(chunks[:args.size]) 24 fp.write('"')
|
/Zephyr-latest/arch/riscv/core/ |
D | stacktrace.c | 22 uintptr_t fp; member 103 uintptr_t fp, last_fp = 0; in walk_stackframe() local 109 fp = esf->s0; in walk_stackframe() 113 fp = (uintptr_t)__builtin_frame_address(0); in walk_stackframe() 117 fp = csf->s0; in walk_stackframe() 121 for (int i = 0; (i < MAX_STACK_FRAMES) && vrfy(fp, thread, esf) && (fp > last_fp); i++) { in walk_stackframe() 122 if (in_text_region(ra) && !cb(cookie, ra, fp)) { in walk_stackframe() 125 last_fp = fp; in walk_stackframe() 128 frame = (struct stackframe *)fp - 1; in walk_stackframe() 132 if (in_text_region(esf->ra) && !cb(cookie, esf->ra, fp)) { in walk_stackframe() [all …]
|
/Zephyr-latest/scripts/ |
D | gen_gcov_files.py | 21 with open(input_file, 'r') as fp: 22 for line in fp.readlines(): 60 with open(filename, 'wb') as fp: 61 fp.write(bytes.fromhex(hexdump_val))
|
/Zephyr-latest/arch/sparc/core/ |
D | interrupt_trap.S | 90 sub %fp, ISF_SIZE, %sp 109 mov %sp, %fp 174 sub %fp, (96+8), %sp 258 ld [%fp + ISF_Y_OFFSET], %g1 261 ldd [%fp + ISF_PSR_OFFSET], %l0 /* psr, pc */ 262 ld [%fp + ISF_NPC_OFFSET], %l2 /* npc */ 266 mov %fp, %g1 267 ldd [%fp + ISF_G2_OFFSET], %g2 268 ld [%fp + ISF_G4_OFFSET], %g4 269 add %fp, ISF_SIZE, %fp
|
/Zephyr-latest/arch/arm64/core/ |
D | fatal.c | 202 typedef bool (*arm64_stacktrace_cb)(void *cookie, unsigned long addr, void *fp); 227 uint64_t *fp; in walk_stackframe() local 231 fp = (uint64_t *) esf->fp; in walk_stackframe() 236 for (int i = 0; (fp != NULL) && (i < max_frames); i++) { in walk_stackframe() 237 lr = fp[1]; in walk_stackframe() 238 if (!cb(cookie, lr, fp)) { in walk_stackframe() 241 fp = (uint64_t *) fp[0]; in walk_stackframe() 256 static bool print_trace_address(void *arg, unsigned long lr, void *fp) in print_trace_address() argument 263 LOG_ERR(" %d: fp: 0x%016llx lr: 0x%016lx [%s+0x%x]", (*i)++, (uint64_t)fp, lr, name, in print_trace_address() 266 LOG_ERR(" %d: fp: 0x%016llx lr: 0x%016lx", (*i)++, (uint64_t)fp, lr); in print_trace_address()
|
/Zephyr-latest/subsys/fs/ |
D | littlefs_fs.c | 44 #define LFS_FILEP(fp) (&((struct lfs_file_data *)(fp->filep))->file) argument 262 static void release_file_data(struct fs_file_t *fp) in release_file_data() argument 264 struct lfs_file_data *fdp = fp->filep; in release_file_data() 270 k_mem_slab_free(&file_data_pool, fp->filep); in release_file_data() 271 fp->filep = NULL; in release_file_data() 289 static int littlefs_open(struct fs_file_t *fp, const char *path, in littlefs_open() argument 292 struct fs_littlefs *fs = fp->mp->fs_data; in littlefs_open() 295 int ret = k_mem_slab_alloc(&file_data_pool, &fp->filep, K_NO_WAIT); in littlefs_open() 301 struct lfs_file_data *fdp = fp->filep; in littlefs_open() 312 path = fs_impl_strip_prefix(path, fp->mp); in littlefs_open() [all …]
|
/Zephyr-latest/scripts/coccinelle/ |
D | reserved_names.cocci | 48 with open("scripts/coccinelle/symbols.txt", "r") as fp: 49 symbols = fp.read().splitlines() 67 with open("scripts/coccinelle/symbols.txt", "r") as fp: 68 symbols = fp.read().splitlines() 89 with open("scripts/coccinelle/symbols.txt", "r") as fp: 90 symbols = fp.read().splitlines()
|
/Zephyr-latest/tests/subsys/fs/common/ |
D | test_fs_util.h | 112 int testfs_write_constant(struct fs_file_t *fp, 130 int testfs_verify_constant(struct fs_file_t *fp, 146 int testfs_write_incrementing(struct fs_file_t *fp, 164 int testfs_verify_incrementing(struct fs_file_t *fp,
|
/Zephyr-latest/lib/libc/picolibc/ |
D | cbprintf.c | 23 int cbvprintf(cbprintf_cb out, void *ctx, const char *fp, va_list ap) in cbvprintf() argument 30 return vfprintf(&s.f, fp, ap); in cbvprintf()
|
/Zephyr-latest/arch/x86/ |
D | gen_idt.py | 87 with open(filename, "wb") as fp: 100 fp.write(data) 107 with open(filename, "wb") as fp: 109 fp.write(struct.pack(map_fmt, i)) 286 with open(filename, "wb") as fp: 288 fp.write(struct.pack("<B", char)) 294 with open(args.kernel, "rb") as fp: 295 kernel = ELFFile(fp)
|
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/ |
D | test_fat_rename.c | 26 struct fs_file_t fp; in create_file() local 29 fs_file_t_init(&fp); in create_file() 31 res = fs_open(&fp, path, FS_O_CREATE | FS_O_RDWR); in create_file() 33 res = fs_close(&fp); in create_file()
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/ |
D | settings.c | 80 FILE *fp = fopen(SETTINGS_FILE, "r+"); in settings_custom_load() local 82 if (fp == NULL) { in settings_custom_load() 87 if (fseek(fp, 0, SEEK_SET) < 0) { in settings_custom_load() 94 while (fgets(line, sizeof(line), fp) == line) { in settings_custom_load() 121 return fclose(fp); in settings_custom_load()
|
/Zephyr-latest/tests/subsys/fs/fcb/src/ |
D | main.c | 159 const struct flash_parameters *fp; in ZTEST() local 171 fp = flash_get_parameters(dev); in ZTEST() 172 zassert_true(fp != NULL, "Failed to get flash device parameters"); in ZTEST() 174 fcb_test_erase_value = fp->erase_value; in ZTEST()
|
/Zephyr-latest/tests/kernel/timer/timer_behavior/pytest/ |
D | conftest.py | 32 with open(file_name) as fp: 33 for line in fp:
|