11 #include <linux/kernel.h> 12 #include <linux/types.h> 13 #include <linux/bitops.h> 14 #include <linux/log2.h> 51 unsigned char *buf,
size_t len)
60 ". ... ARM SPE data: size %zu bytes\n",
71 for (i = 0; i < pkt_len; i++)
118 data_offset = lseek(fd, 0, SEEK_CUR);
119 if (data_offset == -1)
124 data_offset, &buffer);
162 for (i = 0; i < queues->
nr_queues; i++) {
int arm_spe_pkt_desc(const struct arm_spe_pkt *packet, char *buf, size_t buf_len)
int color_fprintf(FILE *fp, const char *color, const char *fmt,...)
int(* process_event)(struct perf_session *session, union perf_event *event, struct perf_sample *sample, struct perf_tool *tool)
static const char *const arm_spe_info_fmts[]
struct perf_event_header header
struct auxtrace_queues queues
struct auxtrace_queue * queue_array
void * auxtrace_buffer__get_data(struct auxtrace_buffer *buffer, int fd)
struct auxtrace * auxtrace
struct perf_session * session
static void arm_spe_free_events(struct perf_session *session)
int auxtrace_queues__add_event(struct auxtrace_queues *queues, struct perf_session *session, union perf_event *event, off_t data_offset, struct auxtrace_buffer **buffer_ptr)
void auxtrace_buffer__put_data(struct auxtrace_buffer *buffer)
static void arm_spe_dump(struct arm_spe *spe __maybe_unused, unsigned char *buf, size_t len)
int arm_spe_get_packet(const unsigned char *buf, size_t len, struct arm_spe_pkt *packet)
static struct perf_tool tool
void auxtrace_heap__free(struct auxtrace_heap *heap)
struct auxtrace_heap heap
static int arm_spe_flush(struct perf_session *session __maybe_unused, struct perf_tool *tool __maybe_unused)
static int perf_data__fd(struct perf_data *data)
static void arm_spe_dump_event(struct arm_spe *spe, unsigned char *buf, size_t len)
#define ARM_SPE_PKT_DESC_MAX
static void arm_spe_free(struct perf_session *session)
static int arm_spe_process_auxtrace_event(struct perf_session *session, union perf_event *event, struct perf_tool *tool __maybe_unused)
int arm_spe_process_auxtrace_info(union perf_event *event, struct perf_session *session)
static int perf_data__is_pipe(struct perf_data *data)
void(* free_events)(struct perf_session *session)
int(* flush_events)(struct perf_session *session, struct perf_tool *tool)
static void arm_spe_print_info(u64 *arr)
void auxtrace_queues__free(struct auxtrace_queues *queues)
struct auxtrace_buffer * buffer
void(* free)(struct perf_session *session)
int auxtrace_queues__init(struct auxtrace_queues *queues)
static int arm_spe_process_event(struct perf_session *session __maybe_unused, union perf_event *event __maybe_unused, struct perf_sample *sample __maybe_unused, struct perf_tool *tool __maybe_unused)
static void arm_spe_free_queue(void *priv)
int(* process_auxtrace_event)(struct perf_session *session, union perf_event *event, struct perf_tool *tool)
void static void * zalloc(size_t size)