Lines Matching refs:ptr
195 void *end, *ptr = buff; in trace_list_functions() local
202 if (ptr + sizeof(struct trace_output_hdr) < end) in trace_list_functions()
203 output_hdr = ptr; in trace_list_functions()
204 ptr += sizeof(struct trace_output_hdr); in trace_list_functions()
213 if (ptr + sizeof(struct trace_output_func) < end) { in trace_list_functions()
214 struct trace_output_func *stats = ptr; in trace_list_functions()
220 ptr += sizeof(struct trace_output_func); in trace_list_functions()
230 *needed = ptr - buff; in trace_list_functions()
231 if (ptr > end) in trace_list_functions()
252 void *end, *ptr = buff; in trace_list_calls() local
259 if (ptr + sizeof(struct trace_output_hdr) < end) in trace_list_calls()
260 output_hdr = ptr; in trace_list_calls()
261 ptr += sizeof(struct trace_output_hdr); in trace_list_calls()
268 if (ptr + sizeof(struct trace_call) < end) { in trace_list_calls()
270 struct trace_call *out = ptr; in trace_list_calls()
277 ptr += sizeof(struct trace_call); in trace_list_calls()
290 *needed = ptr - buff; in trace_list_calls()
291 if (ptr > end) in trace_list_calls()