Home
last modified time | relevance | path

Searched refs:fbuf (Results 1 – 12 of 12) sorted by relevance

/optee_os/ldelf/
H A Dftrace.c20 static struct ftrace_buf *fbuf; variable
51 fbuf = (struct ftrace_buf *)(vaddr_t)finfo->buf_start.ptr64; in ftrace_init()
52 fbuf->head_off = sizeof(struct ftrace_buf); in ftrace_init()
53 p = (char *)fbuf + fbuf->head_off; in ftrace_init()
60 fbuf->ret_func_ptr = finfo->ret_ptr.ptr64; in ftrace_init()
61 fbuf->ret_idx = 0; in ftrace_init()
62 fbuf->lr_idx = 0; in ftrace_init()
63 fbuf->suspend_time = 0; in ftrace_init()
64 fbuf in ftrace_init()
[all...]
H A Dmain.c180 if (ftrace_init(&arg->fbuf)) in ldelf()
/optee_os/lib/libutils/ext/ftrace/
H A Dftrace.c59 if (s->fbuf && s->fbuf->syscall_trace_enabled && in get_fbuf()
60 !s->fbuf->syscall_trace_suspended) in get_fbuf()
61 return s->fbuf; in get_fbuf()
69 static void __noprof add_elem(struct ftrace_buf *fbuf, uint8_t level, in add_elem() argument
73 size_t idx = fbuf->curr_idx; in add_elem()
78 elem = (uint64_t *)((vaddr_t)fbuf + fbuf->buf_off) + idx; in add_elem()
82 if ((idx + 1) * sizeof(*elem) > fbuf->max_size) { in add_elem()
84 fbuf->overflow = true; in add_elem()
87 fbuf->curr_idx = idx; in add_elem()
93 struct ftrace_buf *fbuf = get_fbuf(); in ftrace_enter() local
[all …]
/optee_os/core/kernel/
H A Dscall.c171 if (s && s->fbuf) in ftrace_syscall_enter()
172 s->fbuf->syscall_trace_enabled = true; in ftrace_syscall_enter()
179 if (s && s->fbuf) in ftrace_syscall_leave()
180 s->fbuf->syscall_trace_enabled = false; in ftrace_syscall_leave()
H A Dtee_ta_manager.c1138 struct ftrace_buf *fbuf = NULL; in ftrace_update_times()
1147 fbuf = s->fbuf; in tee_ta_ftrace_update_times_suspend()
1148 if (!fbuf) in tee_ta_ftrace_update_times_suspend()
1152 fbuf->suspend_time = now; in tee_ta_ftrace_update_times_resume()
1154 for (i = 0; i <= fbuf->ret_idx; i++) in tee_ta_ftrace_update_times_resume()
1155 fbuf->begin_time[i] += now - fbuf->suspend_time; in tee_ta_ftrace_update_times_resume()
1126 struct ftrace_buf *fbuf = NULL; ftrace_update_times() local
H A Dldelf_loader.c178 sess->fbuf = arg_bbuf->fbuf; in ldelf_init_with_ldelf()
354 * Therefore, we need to null the fbuf pointer before entering in ldelf_dump_ftrace()
357 saved_fbuf = sess->fbuf; in ldelf_dump_ftrace()
358 sess->fbuf = NULL; in ldelf_dump_ftrace()
367 sess->fbuf = saved_fbuf; in ldelf_dump_ftrace()
/optee_os/core/include/kernel/
H A Dts_manager.h27 struct ftrace_buf *fbuf; /* ftrace buffer */ member
/optee_os/core/arch/riscv/kernel/
H A Dthread_arch.c294 if (s && s->fbuf) in ftrace_suspend()
295 s->fbuf->syscall_trace_suspended = true; in ftrace_suspend()
302 if (s && s->fbuf) in ftrace_resume()
303 s->fbuf->syscall_trace_suspended = false; in ftrace_resume()
H A Dabort.c
/optee_os/ldelf/include/
H A Dldelf.h41 struct ftrace_buf *fbuf; member
/optee_os/core/arch/arm/kernel/
H A Dthread.c336 if (s && s->fbuf) in ftrace_suspend()
337 s->fbuf->syscall_trace_suspended = true; in ftrace_suspend()
344 if (s && s->fbuf) in ftrace_resume()
345 s->fbuf->syscall_trace_suspended = false; in ftrace_resume()
H A Dabort.c