[0d0e60]: daemon / opd_trans.h Maximize Restore History

Download this file

opd_trans.h    52 lines (44 with data), 976 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* @file daemon/opd_trans.h
* Processing the sample buffer
*
* @remark Copyright 2002 OProfile authors
* @remark Read the file COPYING
*
* @author John Levon
* @author Philippe Elie
*/
#ifndef OPD_TRANS_H
#define OPD_TRANS_H
#include "opd_cookie.h"
#include "op_types.h"
struct sfile;
enum tracing_type {
TRACING_OFF,
TRACING_START,
TRACING_ON
};
/**
* Transient values used for parsing the event buffer.
* Note that these are reset for each buffer read, but
* that should be ok as in the kernel, cpu_buffer_reset()
* ensures that a correct context starts off the buffer.
*/
struct transient {
char const * buffer;
size_t remaining;
enum tracing_type tracing;
struct sfile * current;
struct sfile * last;
cookie_t cookie;
cookie_t app_cookie;
vma_t pc;
vma_t last_pc;
unsigned long event;
int in_kernel;
unsigned long cpu;
pid_t tid;
pid_t tgid;
};
void opd_process_samples(char const * buffer, size_t count);
#endif /* OPD_TRANS_H */