Lines Matching refs:perf_data_ptr
39 struct perf_data_t *perf_data_ptr = in perf_tracer() local
44 if (++perf_data_ptr->idx < CONFIG_PROFILING_PERF_BUFFER_SIZE) { in perf_tracer()
46 perf_data_ptr->buf + perf_data_ptr->idx, in perf_tracer()
47 CONFIG_PROFILING_PERF_BUFFER_SIZE - perf_data_ptr->idx); in perf_tracer()
51 perf_data_ptr->buf[perf_data_ptr->idx - 1] = trace_length; in perf_tracer()
52 perf_data_ptr->idx += trace_length; in perf_tracer()
54 --perf_data_ptr->idx; in perf_tracer()
55 perf_data_ptr->buf_full = true; in perf_tracer()
56 k_work_reschedule(&perf_data_ptr->dwork, K_NO_WAIT); in perf_tracer()
63 struct perf_data_t *perf_data_ptr = CONTAINER_OF(dwork, struct perf_data_t, dwork); in perf_dwork_handler() local
65 k_timer_stop(&perf_data_ptr->timer); in perf_dwork_handler()
66 if (perf_data_ptr->buf_full) { in perf_dwork_handler()
67 shell_error(perf_data_ptr->sh, "Perf buf overflow!"); in perf_dwork_handler()
69 shell_print(perf_data_ptr->sh, "Perf done!"); in perf_dwork_handler()