[0d0e60]: libop / op_sample_file.h Maximize Restore History

Download this file

op_sample_file.h    37 lines (31 with data), 620 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* @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 <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;
/* binary compatibility reserve */
u32 reserved1[5];
};
#endif /* OP_SAMPLE_FILE_H */