#include "op_types.h"
#include <stdint.h>
#include <time.h>
Go to the source code of this file.
Data Structures | |
struct | opd_event |
Functions | |
void | opd_parse_events (char const *events) |
struct opd_event * | find_counter_event (unsigned long counter) |
void | fill_header (struct opd_header *header, unsigned long counter, vma_t anon_start, vma_t anon_end, int is_kernel, int cg_to_is_kernel, int spu_samples, uint64_t embed_offset, time_t mtime) |
Variables | |
struct opd_event | opd_events [] |
Event details for each counter
Definition in file opd_events.h.
void fill_header | ( | struct opd_header * | header, | |
unsigned long | counter, | |||
vma_t | anon_start, | |||
vma_t | anon_end, | |||
int | is_kernel, | |||
int | cg_to_is_kernel, | |||
int | spu_samples, | |||
uint64_t | embed_offset, | |||
time_t | mtime | |||
) |
fill the sample file header with event info etc.
Definition at line 167 of file opd_events.c.
References opd_header::anon_start, opd_header::cg_to_anon_start, opd_header::cg_to_is_kernel, cpu_speed, opd_header::cpu_speed, opd_header::cpu_type, opd_header::ctr_count, opd_header::ctr_event, opd_header::ctr_um, opd_header::embedded_offset, find_counter_event(), opd_header::is_kernel, opd_header::magic, opd_header::mtime, OPD_MAGIC, OPD_VERSION, opd_header::spu_profile, and opd_header::version.
Referenced by opd_open_24_sample_file(), opd_open_sample_file(), and operf_open_sample_file().
struct opd_event* find_counter_event | ( | unsigned long | counter | ) | [read] |
Find the event for the given counter
Definition at line 130 of file opd_events.c.
References opd_event::name, op_cpu_has_timer_fs(), OP_MAX_COUNTERS, op_nr_counters, opd_events, opd_ext_find_counter_event(), and TIMER_EVENT_NAME.
Referenced by fill_header(), mangle_filename(), and opd_mangle_filename().
void opd_parse_events | ( | char const * | events | ) |
parse the events into the opd_events array
Definition at line 80 of file opd_events.c.
References copy_token(), copy_ulong(), cpu_speed, CPU_TIMER_INT, malformed_events(), opd_event::name, op_cpu_frequency(), op_nr_counters, opd_events, verbprintf, and vmisc.
Referenced by opd_options().
struct opd_event opd_events[] |
Definition at line 33 of file opd_events.c.
Referenced by find_counter_event(), and opd_parse_events().