Lines Matching refs:e
78 struct trace_entry *e; in trace_alloc_entry() local
80 e = trace_alloc(tb, sizeof(*e) + payload_size); in trace_alloc_entry()
81 if (e) in trace_alloc_entry()
82 e->length = payload_size; in trace_alloc_entry()
84 return e; in trace_alloc_entry()
89 struct trace_entry *e; in trace_log_reg() local
92 e = trace_alloc_entry(tb, sizeof(reg) + sizeof(value)); in trace_log_reg()
93 if (!e) in trace_log_reg()
96 e->type = TRACE_TYPE_REG; in trace_log_reg()
97 p = (u64 *)e->data; in trace_log_reg()
106 struct trace_entry *e; in trace_log_counter() local
109 e = trace_alloc_entry(tb, sizeof(value)); in trace_log_counter()
110 if (!e) in trace_log_counter()
113 e->type = TRACE_TYPE_COUNTER; in trace_log_counter()
114 p = (u64 *)e->data; in trace_log_counter()
122 struct trace_entry *e; in trace_log_string() local
129 e = trace_alloc_entry(tb, len + 1); in trace_log_string()
130 if (!e) in trace_log_string()
133 e->type = TRACE_TYPE_STRING; in trace_log_string()
134 p = (char *)e->data; in trace_log_string()
144 struct trace_entry *e; in trace_log_indent() local
146 e = trace_alloc_entry(tb, 0); in trace_log_indent()
147 if (!e) in trace_log_indent()
150 e->type = TRACE_TYPE_INDENT; in trace_log_indent()
157 struct trace_entry *e; in trace_log_outdent() local
159 e = trace_alloc_entry(tb, 0); in trace_log_outdent()
160 if (!e) in trace_log_outdent()
163 e->type = TRACE_TYPE_OUTDENT; in trace_log_outdent()
200 static void trace_print_reg(struct trace_entry *e) in trace_print_reg() argument
205 p = (u64 *)e->data; in trace_print_reg()
216 static void trace_print_counter(struct trace_entry *e) in trace_print_counter() argument
220 value = (u64 *)e->data; in trace_print_counter()
224 static void trace_print_string(struct trace_entry *e) in trace_print_string() argument
228 str = (char *)e->data; in trace_print_string()
235 static void trace_print_entry(struct trace_entry *e, int seq, int *prefix) in trace_print_entry() argument
237 switch (e->type) { in trace_print_entry()
240 trace_print_reg(e); in trace_print_entry()
244 trace_print_counter(e); in trace_print_entry()
248 trace_print_string(e); in trace_print_entry()
264 printf("entry @ %p type %d\n", e, e->type); in trace_print_entry()
271 struct trace_entry *e; in trace_buffer_print() local
288 e = p; in trace_buffer_print()
290 trace_print_entry(e, i, &prefix); in trace_buffer_print()
293 p = (void *)e + sizeof(*e) + e->length; in trace_buffer_print()