Lines Matching refs:sample_what

141     unsigned int sample_what)  in kperf_sample_user_internal()  argument
143 if (sample_what & SAMPLER_USTACK) { in kperf_sample_user_internal()
146 if (sample_what & SAMPLER_TH_INFO) { in kperf_sample_user_internal()
155 BUF_DATA(PERF_GEN_EVENT | DBG_FUNC_START, sample_what, actionid); in kperf_sample_user_internal()
157 if (sample_what & SAMPLER_USTACK) { in kperf_sample_user_internal()
160 if (sample_what & SAMPLER_TH_DISPATCH) { in kperf_sample_user_internal()
163 if (sample_what & SAMPLER_TH_INFO) { in kperf_sample_user_internal()
167 BUF_DATA(PERF_GEN_EVENT | DBG_FUNC_END, sample_what); in kperf_sample_user_internal()
173 kperf_prepare_sample_what(unsigned int sample_what, unsigned int sample_flags) in kperf_prepare_sample_what() argument
177 sample_what &= ~(SAMPLER_KSTACK | SAMPLER_USTACK | SAMPLER_EXSTACK); in kperf_prepare_sample_what()
180 sample_what &= SAMPLER_SYS_MEM; in kperf_prepare_sample_what()
185 sample_what &= SAMPLER_THREAD_MASK; in kperf_prepare_sample_what()
188 sample_what &= SAMPLER_TASK_MASK; in kperf_prepare_sample_what()
191 return sample_what; in kperf_prepare_sample_what()
202 unsigned int sample_what = kperf_prepare_sample_what( in kperf_sample_user() local
204 if (sample_what == 0) { in kperf_sample_user()
211 kperf_sample_user_internal(sbuf, context, actionid, sample_what); in kperf_sample_user()
217 unsigned sample_what, unsigned sample_flags, in kperf_sample_internal() argument
227 sample_what = kperf_prepare_sample_what(sample_what, sample_flags); in kperf_sample_internal()
228 if (sample_what == 0) { in kperf_sample_internal()
249 if (sample_what & SAMPLER_TH_INFO) { in kperf_sample_internal()
260 if (sample_what & SAMPLER_TH_SNAPSHOT) { in kperf_sample_internal()
263 if (sample_what & SAMPLER_TH_SCHEDULING) { in kperf_sample_internal()
266 if (sample_what & SAMPLER_KSTACK) { in kperf_sample_internal()
276 if (sample_what & SAMPLER_TK_SNAPSHOT) { in kperf_sample_internal()
281 if (sample_what & SAMPLER_MEMINFO) { in kperf_sample_internal()
286 if (sample_what & SAMPLER_USTACK) { in kperf_sample_internal()
291 if (sample_what & SAMPLER_TH_DISPATCH) { in kperf_sample_internal()
299 if (sample_what & SAMPLER_EXSTACK) { in kperf_sample_internal()
305 if (sample_what & SAMPLER_PMC_THREAD) { in kperf_sample_internal()
306 kperf_kpc_thread_sample(&(sbuf->kpcdata), sample_what); in kperf_sample_internal()
307 } else if (sample_what & SAMPLER_PMC_CPU) { in kperf_sample_internal()
308 kperf_kpc_cpu_sample(&(sbuf->kpcdata), sample_what); in kperf_sample_internal()
320 !(sample_what & ~(SAMPLER_USTACK | SAMPLER_TH_DISPATCH))) { in kperf_sample_internal()
329 BUF_DATA(PERF_GEN_EVENT | DBG_FUNC_START, sample_what, in kperf_sample_internal()
333 if (sample_what & SAMPLER_SYS_MEM) { in kperf_sample_internal()
341 if (sample_what & SAMPLER_TH_INFO) { in kperf_sample_internal()
344 if (sample_what & SAMPLER_TH_SCHEDULING) { in kperf_sample_internal()
347 if (sample_what & SAMPLER_TH_SNAPSHOT) { in kperf_sample_internal()
350 if (sample_what & SAMPLER_KSTACK) { in kperf_sample_internal()
353 if (sample_what & SAMPLER_TH_INSCYC) { in kperf_sample_internal()
356 if (sample_what & SAMPLER_TK_SNAPSHOT) { in kperf_sample_internal()
359 if (sample_what & SAMPLER_TK_INFO) { in kperf_sample_internal()
366 if (sample_what & SAMPLER_MEMINFO) { in kperf_sample_internal()
387 if (sample_what & SAMPLER_PMC_CONFIG) { in kperf_sample_internal()
390 if (sample_what & SAMPLER_PMC_THREAD) { in kperf_sample_internal()
392 } else if (sample_what & SAMPLER_PMC_CPU) { in kperf_sample_internal()
398 BUF_DATA(PERF_GEN_EVENT | DBG_FUNC_END, sample_what, sample_meta_flags); in kperf_sample_internal()
426 unsigned int sample_what = actionv[actionid - 1].sample; in kperf_sample() local
430 return kperf_sample_internal(sbuf, context, sample_what, in kperf_sample()
474 struct kperf_context *context, unsigned int sample_what) in kperf_ast_sample_min_stack_phase() argument
476 if (sample_what & SAMPLER_TH_DISPATCH) { in kperf_ast_sample_min_stack_phase()
488 struct kperf_context *context, uint32_t actionid, unsigned int sample_what, in kperf_ast_sample_max_stack_phase() argument
494 kperf_sample_user_internal(&sbuf, context, actionid, sample_what); in kperf_ast_sample_max_stack_phase()
523 unsigned int sample_what = 0; in kperf_thread_ast_handler() local
525 sample_what |= SAMPLER_TH_DISPATCH; in kperf_thread_ast_handler()
529 sample_what |= SAMPLER_USTACK | SAMPLER_TH_INFO; in kperf_thread_ast_handler()
535 kperf_ast_sample_min_stack_phase(&sbuf_min, &ctx, sample_what); in kperf_thread_ast_handler()
536 kperf_ast_sample_max_stack_phase(&sbuf_min, &ctx, actionid, sample_what, in kperf_thread_ast_handler()