Lines Matching +full:record +full:- +full:size

1 // SPDX-License-Identifier: GPL-2.0-only
11 #include "trace-event.h"
15 #include <traceevent/event-parse.h>
18 int *offset, int *size, const char *type) in get_common_field() argument
20 struct tep_handle *pevent = context->pevent; in get_common_field()
24 if (!*size) { in get_common_field()
33 *offset = field->offset; in get_common_field()
34 *size = field->size; in get_common_field()
37 return tep_read_number(pevent, context->event_data + *offset, *size); in get_common_field()
43 static int size; in common_lock_depth() local
46 ret = get_common_field(context, &size, &offset, in common_lock_depth()
49 return -1; in common_lock_depth()
57 static int size; in common_flags() local
60 ret = get_common_field(context, &size, &offset, in common_flags()
63 return -1; in common_flags()
71 static int size; in common_pc() local
74 ret = get_common_field(context, &size, &offset, in common_pc()
77 return -1; in common_pc()
97 unsigned long long read_size(struct tep_event *event, void *ptr, int size) in read_size() argument
99 return tep_read_number(event->tep, ptr, size); in read_size()
103 int cpu, void *data, int size, FILE *fp) in event_format__fprintf() argument
105 struct tep_record record; in event_format__fprintf() local
108 memset(&record, 0, sizeof(record)); in event_format__fprintf()
109 record.cpu = cpu; in event_format__fprintf()
110 record.size = size; in event_format__fprintf()
111 record.data = data; in event_format__fprintf()
114 tep_print_event(event->tep, &s, &record, "%s", TEP_PRINT_INFO); in event_format__fprintf()
120 int cpu, void *data, int size) in event_format__print() argument
122 return event_format__fprintf(event, cpu, data, size, stdout); in event_format__print()
126 char *file, unsigned int size __maybe_unused) in parse_ftrace_printk()
152 char *file, unsigned int size __maybe_unused) in parse_saved_cmdline()
167 int parse_ftrace_file(struct tep_handle *pevent, char *buf, unsigned long size) in parse_ftrace_file() argument
169 return tep_parse_event(pevent, buf, size, "ftrace"); in parse_ftrace_file()
173 char *buf, unsigned long size, char *sys) in parse_event_file() argument
175 return tep_parse_event(pevent, buf, size, sys); in parse_event_file()