Home
last modified time | relevance | path

Searched refs:actionid (Results 1 – 16 of 16) sorted by relevance

/xnu-11417.101.15/osfmk/kperf/
H A Daction.c82 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 Daction.h90 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 Dpet.c176 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 Dcallstack.h84 unsigned int actionid);
90 bool kperf_exclave_callstack_pend(struct kperf_context *context, unsigned int actionid);
H A Dkptimer.c205 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 Dast.h33 int kperf_ast_pend(thread_t thread, uint32_t flags, unsigned int actionid);
H A Dpet.h41 void kppet_config(unsigned int actionid);
H A Dkptimer.h113 int kptimer_set_action(unsigned int timer, uint32_t actionid);
H A Dthread_samplers.h90 int kperf_thread_dispatch_pend(struct kperf_context *, unsigned int actionid);
H A Dthread_samplers.c376 unsigned int actionid) in kperf_thread_dispatch_pend() argument
379 actionid); in kperf_thread_dispatch_pend()
H A Dkperfbsd.c260 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 Dcallstack.c494 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 Dkpc_x86.c636 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 Dkpc.h137 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 Dkpc_common.c556 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 Dkern_kpc.c577 SYSCTL_PROC(_kpc, OID_AUTO, actionid,