op_sample_file.h revision cc2ee177dbb3befca43e36cfc56778b006c3d050
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 <time.h> 18 19/* header of the sample files */ 20struct opd_header { 21 u8 magic[4]; 22 u32 version; 23 u32 cpu_type; 24 u32 ctr_event; 25 u32 ctr_um; 26 u32 ctr_count; 27 // for cg file the from_cg_is_kernel 28 u32 is_kernel; 29 double cpu_speed; 30 time_t mtime; 31 u32 cg_to_is_kernel; 32 u64 anon_start; 33 u64 cg_to_anon_start; 34 /* binary compatibility reserve */ 35 u32 reserved1[1]; 36}; 37 38#endif /* OP_SAMPLE_FILE_H */ 39