Lines Matching refs:sbuf
312 free(s->ts_sess.sbuf); in destroy_session()
1054 struct sample_buf *sbuf = NULL; in tee_ta_gprof_sample_pc() local
1058 sbuf = s->sbuf; in tee_ta_gprof_sample_pc()
1059 if (!sbuf || !sbuf->enabled) in tee_ta_gprof_sample_pc()
1062 idx = (((uint64_t)pc - sbuf->offset)/2 * sbuf->scale)/65536; in tee_ta_gprof_sample_pc()
1063 if (idx < sbuf->nsamples) { in tee_ta_gprof_sample_pc()
1069 (uaddr_t)&sbuf->samples[idx], in tee_ta_gprof_sample_pc()
1070 sizeof(*sbuf->samples)); in tee_ta_gprof_sample_pc()
1073 sbuf->samples[idx]++; in tee_ta_gprof_sample_pc()
1075 sbuf->count++; in tee_ta_gprof_sample_pc()
1081 struct sample_buf *sbuf = s->sbuf; in gprof_update_session_utime() local
1083 if (!sbuf) in gprof_update_session_utime()
1087 assert(sbuf->usr_entered); in gprof_update_session_utime()
1088 sbuf->usr += now - sbuf->usr_entered; in gprof_update_session_utime()
1089 sbuf->usr_entered = 0; in gprof_update_session_utime()
1091 assert(!sbuf->usr_entered); in gprof_update_session_utime()
1094 sbuf->usr_entered = now; in gprof_update_session_utime()