Home
last modified time | relevance | path

Searched refs:machine (Results 1 – 25 of 98) sorted by relevance

1234

/xnu-11215/osfmk/arm64/
H A Dpcb.c139 return thread->machine.usme; in machine_thread_get_sme_state()
246 old->machine.CpuDatap = NULL; in machine_thread_switch_cpu_data()
249 new->machine.CpuDatap = datap; in machine_thread_switch_cpu_data()
389 thread->machine.kpcb = NULL; in machine_thread_create()
431 thread->machine.upcb = NULL; in machine_thread_create()
432 thread->machine.uNeon = NULL; in machine_thread_create()
445 bzero(&thread->machine.perfctrl_state, sizeof(thread->machine.perfctrl_state)); in machine_thread_create()
543 thread->machine.upcb = NULL; in machine_thread_destroy()
583 if (thread->machine.usme) { in machine_thread_sme_state_alloc()
606 thread->machine.usme = NULL; in machine_thread_sme_state_free()
[all …]
H A Dstatus.c314 thread->machine.jop_pid); in thread_generate_sigreturn_token()
441 thread->machine.jop_pid); in machine_thread_state_convert_to_user()
452 thread->machine.jop_pid); in machine_thread_state_convert_to_user()
457 thread->machine.jop_pid); in machine_thread_state_convert_to_user()
1235 bzero(&thread->machine.uNeon->uns, sizeof(thread->machine.uNeon->uns)); in machine_thread_switch_addrmode()
1246 bzero(&thread->machine.uNeon->uns, sizeof(thread->machine.uNeon->uns)); in machine_thread_switch_addrmode()
1710 target->machine.cthread_self = self->machine.cthread_self; in machine_thread_dup()
1741 return thread->machine.upcb; in get_user_regs()
1757 return thread->machine.upcb; in find_user_regs()
1816 bzero(thread->machine.DebugData, sizeof *(thread->machine.DebugData)); in find_or_allocate_debug_state64()
[all …]
H A Dgenassym.c132 DECLARE("TH_KSTACKPTR", offsetof(struct thread, machine.kstackptr)); in main()
138 DECLARE("TH_ROP_PID", offsetof(struct thread, machine.rop_pid)); in main()
139 DECLARE("TH_JOP_PID", offsetof(struct thread, machine.jop_pid)); in main()
146 DECLARE("TH_EXPECTED_FAULT_PC", offsetof(struct thread, machine.expected_fault_pc)); in main()
150 DECLARE("TH_ARM_MACHINE_FLAGS", offsetof(struct thread, machine.arm_machine_flags)); in main()
153 DECLARE("TH_UPCB", offsetof(struct thread, machine.upcb)); in main()
158 DECLARE("ACT_UMATRIX_HDR", offsetof(struct thread, machine.umatrix_hdr)); in main()
160 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
161 DECLARE("ACT_PREEMPT_CNT", offsetof(struct thread, machine.preemption_count)); in main()
165 DECLARE("ACT_CPUDATAP", offsetof(struct thread, machine.CpuDatap)); in main()
[all …]
H A Dsleh.c775 thread->machine.expected_fault_addr = 0; in sleh_synchronous()
776 thread->machine.expected_fault_pc = 0; in sleh_synchronous()
1140 current_thread()->machine.kpcb = state; in handle_uncategorized()
1148 current_thread()->machine.kpcb = NULL; in handle_uncategorized()
1675 if (thread->machine.DebugData != NULL) { in handle_sw_step_debug()
1762 thread->machine.recover_esr = 0; in handle_user_abort()
1763 thread->machine.recover_far = 0; in handle_user_abort()
1781 (thread->machine.recover_esr)) { in handle_user_abort()
1795 set_saved_state_esr(thread->machine.upcb, thread->machine.recover_esr); in handle_user_abort()
1796 set_saved_state_far(thread->machine.upcb, thread->machine.recover_far); in handle_user_abort()
[all …]
/xnu-11215/osfmk/arm/
H A Dpreemption_disable.c84 if (current_thread()->machine.CpuDatap->cpu_pending_ast & AST_URGENT) { in kernel_preempt_check()
95 os_atomic_store(&thread->machine.preemption_count, count, compiler_acq_rel); in _enable_preemption_write_count()
102 if (__improbable(thread->machine.CpuDatap->cpu_pending_ast & AST_URGENT)) { in _enable_preemption_write_count()
124 unsigned int count = thread->machine.preemption_count; in _disable_preemption()
126 os_atomic_store(&thread->machine.preemption_count, in _disable_preemption()
155 unsigned int count = thread->machine.preemption_count; in _disable_preemption_without_measurements()
161 os_atomic_store(&thread->machine.preemption_count, in _disable_preemption_without_measurements()
193 unsigned int count = thread->machine.preemption_count; in _enable_preemption()
212 unsigned int count = thread->machine.preemption_count; in get_preemption_level_for_thread()
350 if (thread->machine.inthandler_timestamp == 0) { in _prepare_preemption_disable_measurement()
[all …]
H A Dmachine_routines_common.c777 if (thread->machine.intmask_timestamp) { in ml_spin_debug_reset()
791 thread->machine.intmask_timestamp = 0; in ml_spin_debug_clear()
792 thread->machine.intmask_cycles = 0; in ml_spin_debug_clear()
793 thread->machine.intmask_instr = 0; in ml_spin_debug_clear()
890 …thread->machine.int_type, (void *)thread->machine.int_handler_addr, (void *)thread->machine.int_ve… in __ml_trigger_interrupts_disabled_handle()
923 …uint64_t start = is_int_handler ? thread->machine.inthandler_timestamp : thread->machine.intmask_t… in __ml_handle_interrupts_disabled_duration()
929 !thread->machine.inthandler_abandon) { in __ml_handle_interrupts_disabled_duration()
1004 t->machine.inthandler_abandon = true; in ml_irq_debug_abandon()
1043 thread->machine.intmask_timestamp = 0; in ml_set_interrupts_enabled_with_debug()
1044 thread->machine.intmask_cycles = 0; in ml_set_interrupts_enabled_with_debug()
[all …]
H A Dlocks.h112 uint32_t *__dpft_countp = &__dpft_thread->machine.preemption_count; \
124 uint32_t *__dpft_countp = &(t)->machine.preemption_count; \
H A Dmachine_routines.h113 mt_cur_cpu_cycles_instrs_speculative(&thread->machine.intmask_cycles, \
114 &thread->machine.intmask_instr); \
124 thread->machine.int_type = type; \
125 thread->machine.int_handler_addr = (uintptr_t)VM_KERNEL_STRIP_UPTR(handler_addr); \
126 thread->machine.inthandler_timestamp = ml_get_sched_hygiene_timebase(); \
128 thread->machine.int_vector = (uintptr_t)NULL; \
137 …thread->machine.inthandler_timestamp = 0; …
138 …thread->machine.inthandler_abandon = false; …
H A Darm_init.c468 thread->machine.CpuDatap = &BootCpuData; in arm_init()
469 thread->machine.pcpu_data_base_and_cpu_number = in arm_init()
479 thread->machine.preemption_count = 0; in arm_init()
736 cpu_data_ptr->cpu_active_thread->machine.preemption_count--; in arm_init_cpu()
/xnu-11215/tests/
H A Dthread_group_set_32261625.c26 ktrace_machine_t machine = ktrace_machine_create_current(); variable
27 T_WITH_ERRNO; T_ASSERT_NOTNULL(machine, "ktrace_get_machine");
30 if (ktrace_machine_has_thread_groups(machine, &has_tg) || !has_tg) {
33 ktrace_machine_destroy(machine);
/xnu-11215/osfmk/i386/
H A Dgenassym.c137 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
145 DECLARE("TH_SPF", offsetof(struct thread, machine.specFlags)); in main()
146 DECLARE("TH_PCB_ISS", offsetof(struct thread, machine.iss)); in main()
147 DECLARE("TH_PCB_IDS", offsetof(struct thread, machine.ids)); in main()
148 DECLARE("TH_PCB_FPS", offsetof(struct thread, machine.ifps)); in main()
158 DECLARE("KSS_RBX", offsetof(struct thread_kernel_state, machine.k_rbx)); in main()
159 DECLARE("KSS_RSP", offsetof(struct thread_kernel_state, machine.k_rsp)); in main()
160 DECLARE("KSS_RBP", offsetof(struct thread_kernel_state, machine.k_rbp)); in main()
161 DECLARE("KSS_R12", offsetof(struct thread_kernel_state, machine.k_r12)); in main()
162 DECLARE("KSS_R13", offsetof(struct thread_kernel_state, machine.k_r13)); in main()
[all …]
H A Dthread.h162 #define THREAD_TO_PCB(Thr) (&(Thr)->machine)
164 #define USER_STATE(Thr) ((Thr)->machine.iss)
189 (&(((struct thread_kernel_state *)((stack) + kernel_stack_size)) - 1)->machine)
H A Dpcb.c359 saved_state = thread->machine.ids; in get_debug_state32()
404 new->machine.specFlags |= OnProc; in machine_load_context()
482 old->machine.specFlags &= ~OnProc; in machine_switch_context()
483 new->machine.specFlags |= OnProc; in machine_switch_context()
574 if (thread->machine.ifps) { in machine_thread_state_initialize()
582 if (thread->machine.ids) { in machine_thread_state_initialize()
583 zfree(ids_zone, thread->machine.ids); in machine_thread_state_initialize()
584 thread->machine.ids = NULL; in machine_thread_state_initialize()
845 thread->machine.cthread_self; in get_thread_state64()
2209 old->machine.specFlags &= ~OnProc; in machine_stack_handoff()
[all …]
/xnu-11215/makedefs/
H A DMakeInc.dir79 # Install machine independent kernel header files
84 # Install machine dependent kernel header files
89 # Install machine independent kernel header files
94 # Install machine dependent kernel header files
118 # Install machine independent text files
123 # Install machine dependent text files
/xnu-11215/pexpert/pexpert/machine/
H A DMakefile17 INSTALL_MI_DIR = pexpert/machine
21 EXPORT_MI_DIR = pexpert/machine
/xnu-11215/libkern/libkern/machine/
H A DMakefile23 INSTALL_MI_DIR = libkern/machine
27 EXPORT_MI_DIR = libkern/machine
/xnu-11215/osfmk/mach/machine/
H A DMakefile22 INSTALL_MI_DIR = mach/machine
26 EXPORT_MI_DIR = mach/machine
/xnu-11215/osfmk/machine/
H A DMakefile41 INSTALL_MI_DIR = machine
45 EXPORT_MI_DIR = machine
/xnu-11215/tools/lldbmacros/usertaskdebugging/
H A Duserprocess.py45 self.saved_state = Cast(self.thread.machine.iss, 'x86_saved_state_t *').uss.ss_64
48 self.saved_state = self.thread.machine.upcb.uss.ss_64
52 self.saved_state = Cast(self.thread.machine.iss, 'x86_saved_state_t *').uss.ss_32
55 self.saved_state = self.thread.machine.contextData.ss.uss.ss_32
58 self.saved_state = self.thread.machine.upcb.uss.ss_64
/xnu-11215/libsyscall/wrappers/legacy/
H A Dgetaudit.c43 ainfo->ai_termid.machine = aia.ai_termid.at_addr[0]; in getaudit()
65 aia.ai_termid.at_addr[0] = ai->ai_termid.machine; in setaudit()
/xnu-11215/bsd/
H A DMakefile16 machine \
46 machine \
/xnu-11215/osfmk/x86_64/
H A Dcopyio.c135 smaplog_cbuf[index].copyio_active = (thread->machine.specFlags & CopyIOActive) ? 1 : 0; in smaplog_add_entry()
243 recursive_CopyIOActive = thread->machine.specFlags & CopyIOActive; in copyio()
254 thread->machine.specFlags |= CopyIOActive; in copyio()
256 thread->machine.specFlags |= CopyIOActive; in copyio()
379 thread->machine.specFlags &= ~CopyIOActive; in copyio()
383 thread->machine.specFlags &= ~CopyIOActive; in copyio()
/xnu-11215/osfmk/
H A DMakefile20 machine \
59 machine \
/xnu-11215/bsd/machine/
H A DMakefile47 INSTALL_MI_DIR = machine
51 EXPORT_MI_DIR = machine
/xnu-11215/tests/cpu_counters/
H A Dkpc_tests.c29 struct machine { struct
96 prepare_kpc(struct machine *mch, unsigned int n, const char *event_name, in prepare_kpc()
203 start_threads(const struct machine *mch, void *(*func)(void *), void *arg) in start_threads()
221 end_threads(const struct machine *mch, pthread_t *threads) in end_threads()
308 struct machine mch = {};
426 struct machine mch = {};
710 struct machine mch = {};

1234