00001 00012 #ifndef OPD_EVENTS_H 00013 00014 #include "op_types.h" 00015 00016 #include <stdint.h> 00017 #include <time.h> 00018 00020 struct opd_event { 00021 char * name; 00022 unsigned long value; 00023 unsigned long counter; 00024 unsigned long count; 00025 unsigned long um; 00026 unsigned long kernel; 00027 unsigned long user; 00028 }; 00029 00030 /* needed for opd_perfmon.c */ 00031 extern struct opd_event opd_events[]; 00032 00034 void opd_parse_events(char const * events); 00035 00037 struct opd_event * find_counter_event(unsigned long counter); 00038 00039 struct opd_header; 00040 00042 void fill_header(struct opd_header * header, unsigned long counter, 00043 vma_t anon_start, vma_t anon_end, 00044 int is_kernel, int cg_to_is_kernel, 00045 int spu_samples, uint64_t embed_offset, time_t mtime); 00046 00047 #endif /* OPD_EVENTS_H */