Home | History | Annotate | Download | only in libop
      1 /**
      2  * @file op_sample_file.h
      3  * Sample file format
      4  *
      5  * @remark Copyright 2002 OProfile authors
      6  * @remark Read the file COPYING
      7  *
      8  * @author John Levon
      9  * @author Philippe Elie
     10  */
     11 
     12 #ifndef OP_SAMPLE_FILE_H
     13 #define OP_SAMPLE_FILE_H
     14 
     15 #include "op_types.h"
     16 
     17 #include <stdint.h>
     18 #include <time.h>
     19 
     20 /* header of the sample files */
     21 struct opd_header {
     22 	u8 magic[4];
     23 	u32 version;
     24 	u32 cpu_type;
     25 	u32 ctr_event;
     26 	u32 ctr_um;
     27 	u32 ctr_count;
     28 	// for cg file the from_cg_is_kernel
     29 	u32 is_kernel;
     30 	double cpu_speed;
     31 	time_t mtime;
     32 	u32 cg_to_is_kernel;
     33 	/* spu_profile=1 says sample file contains Cell BE SPU profile data */
     34 	u32 spu_profile;
     35 	uint64_t embedded_offset;
     36 	u64 anon_start;
     37 	u64 cg_to_anon_start;
     38 	/* binary compatibility reserve */
     39 	u32 reserved1[1];
     40 };
     41 
     42 #endif /* OP_SAMPLE_FILE_H */
     43