| /xnu-11417.101.15/osfmk/kperf/ |
| H A D | action.c | 82 kperf_action_has_non_system(unsigned int actionid) in kperf_action_has_non_system() argument 84 if (actionid > actionc) { in kperf_action_has_non_system() 88 if (actionv[actionid - 1].sample & ~SAMPLER_SYS_MEM) { in kperf_action_has_non_system() 96 kperf_action_has_task(unsigned int actionid) in kperf_action_has_task() argument 98 if (actionid > actionc) { in kperf_action_has_task() 102 return actionv[actionid - 1].sample & SAMPLER_TASK_MASK; in kperf_action_has_task() 106 kperf_action_has_thread(unsigned int actionid) in kperf_action_has_thread() argument 108 if (actionid > actionc) { in kperf_action_has_thread() 112 return actionv[actionid - 1].sample & SAMPLER_THREAD_MASK; in kperf_action_has_thread() 140 struct kperf_context *context, unsigned int actionid, in kperf_sample_user_internal() argument [all …]
|
| H A D | action.h | 90 unsigned actionid, 97 unsigned int actionid, unsigned int sample_flags); 107 bool kperf_action_has_non_system(unsigned actionid); 108 bool kperf_action_has_thread(unsigned int actionid); 109 bool kperf_action_has_task(unsigned int actionid); 125 int kperf_action_set_samplers(unsigned int actionid, uint32_t samplers); 126 int kperf_action_get_samplers(unsigned int actionid, uint32_t *samplers_out); 128 int kperf_action_set_userdata(unsigned int actionid, uint32_t userdata); 129 int kperf_action_get_userdata(unsigned int actionid, uint32_t *userdata_out); 131 int kperf_action_set_ucallstack_depth(unsigned int actionid, uint32_t depth); [all …]
|
| H A D | pet.c | 176 uint32_t actionid = kppet.g_actionid; in kppet_on_cpu() local 177 if (actionid == 0) { in kppet_on_cpu() 210 kperf_sample(sample, &ctx, actionid, flags); in kppet_on_cpu() 243 kppet_config(unsigned int actionid) in kppet_config() argument 248 if (actionid == 0 && !kppet.g_setup) { in kppet_config() 256 kppet.g_actionid = actionid; in kppet_config() 258 if (actionid > 0) { in kppet_config()
|
| H A D | callstack.h | 84 unsigned int actionid); 90 bool kperf_exclave_callstack_pend(struct kperf_context *context, unsigned int actionid);
|
| H A D | kptimer.c | 205 kptimer_sample_curcpu(unsigned int actionid, unsigned int timerid, in kptimer_sample_curcpu() argument 225 (void)kperf_sample(intbuf, &ctx, actionid, in kptimer_sample_curcpu() 689 kptimer_get_action(unsigned int timerid, unsigned int *actionid) in kptimer_get_action() argument 694 *actionid = kptimer.g_timers[timerid].kt_actionid; in kptimer_get_action() 699 kptimer_set_action(unsigned int timerid, unsigned int actionid) in kptimer_set_action() argument 708 kptimer.g_timers[timerid].kt_actionid = actionid; in kptimer_set_action() 710 kppet_config(actionid); in kptimer_set_action()
|
| H A D | ast.h | 33 int kperf_ast_pend(thread_t thread, uint32_t flags, unsigned int actionid);
|
| H A D | pet.h | 41 void kppet_config(unsigned int actionid);
|
| H A D | kptimer.h | 113 int kptimer_set_action(unsigned int timer, uint32_t actionid);
|
| H A D | thread_samplers.h | 90 int kperf_thread_dispatch_pend(struct kperf_context *, unsigned int actionid);
|
| H A D | thread_samplers.c | 376 unsigned int actionid) in kperf_thread_dispatch_pend() argument 379 actionid); in kperf_thread_dispatch_pend()
|
| H A D | kperfbsd.c | 260 unsigned int actionid = (unsigned int)inputs[0]; in sysctl_action_filter() local 265 if ((error = kperf_action_get_filter(actionid, &filter_out))) { in sysctl_action_filter() 275 return kperf_action_set_filter(actionid, pid); in sysctl_action_filter()
|
| H A D | callstack.c | 494 kperf_exclave_callstack_pend(struct kperf_context *context, unsigned int actionid) in kperf_exclave_callstack_pend() argument 499 context->cur_thread->kperf_exclaves_ast |= T_KPERF_SET_ACTIONID(actionid); in kperf_exclave_callstack_pend() 508 unsigned int actionid) in kperf_ucallstack_pend() argument 515 actionid); in kperf_ucallstack_pend()
|
| /xnu-11417.101.15/osfmk/x86_64/ |
| H A D | kpc_x86.c | 636 kpc_sample_kperf_x86(uint32_t ctr, uint32_t actionid, uint64_t count, in kpc_sample_kperf_x86() argument 648 kpc_sample_kperf(actionid, ctr, in kpc_sample_kperf_x86() 671 uint32_t actionid = FIXED_ACTIONID(ctr); in kpc_pmi_handler() local 672 BUF_INFO(PERF_KPC_FCOUNTER, ctr, FIXED_SHADOW(ctr), extra, actionid); in kpc_pmi_handler() 674 if (actionid != 0) { in kpc_pmi_handler() 675 kpc_sample_kperf_x86(ctr, actionid, FIXED_SHADOW(ctr) + extra, 0); in kpc_pmi_handler() 692 unsigned int actionid = CONFIGURABLE_ACTIONID(ctr); in kpc_pmi_handler() local 693 BUF_INFO(PERF_KPC_COUNTER, ctr, CONFIGURABLE_SHADOW(ctr), extra, actionid); in kpc_pmi_handler() 695 if (actionid != 0) { in kpc_pmi_handler() 697 kpc_sample_kperf_x86(ctr + kpc_fixed_count(), actionid, in kpc_pmi_handler()
|
| /xnu-11417.101.15/osfmk/kern/ |
| H A D | kpc.h | 137 extern int kpc_get_actionid(uint32_t classes, uint32_t *actionid); 138 extern int kpc_set_actionid(uint32_t classes, uint32_t *actionid); 323 void kpc_sample_kperf(uint32_t actionid, uint32_t counter, uint64_t config,
|
| H A D | kpc_common.c | 556 kpc_sample_kperf(uint32_t actionid, uint32_t counter, uint64_t config, in kpc_sample_kperf() argument 576 int r = kperf_sample(&sbuf, &ctx, actionid, SAMPLE_FLAG_PEND_USER); in kpc_sample_kperf()
|
| /xnu-11417.101.15/bsd/kern/ |
| H A D | kern_kpc.c | 577 SYSCTL_PROC(_kpc, OID_AUTO, actionid,
|