blob: 4f9f1d08f747bc3c12882f948c168a91a094d95a [file] [log] [blame]
/**
* @file op_sample_file.h
* Sample file format
*
* @remark Copyright 2002 OProfile authors
* @remark Read the file COPYING
*
* @author John Levon
* @author Philippe Elie
*/
#ifndef OP_SAMPLE_FILE_H
#define OP_SAMPLE_FILE_H
#include "op_types.h"
#include <stdint.h>
#include <time.h>
/* header of the sample files */
struct opd_header {
u8 magic[4];
u32 version;
u32 cpu_type;
u32 ctr_event;
u32 ctr_um;
u32 ctr_count;
// for cg file the from_cg_is_kernel
u32 is_kernel;
double cpu_speed;
time_t mtime;
u32 cg_to_is_kernel;
/* spu_profile=1 says sample file contains Cell BE SPU profile data */
u32 spu_profile;
uint64_t embedded_offset;
u64 anon_start;
u64 cg_to_anon_start;
/* binary compatibility reserve */
u32 reserved1[1];
};
#endif /* OP_SAMPLE_FILE_H */