Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[9871f0]: daemon / opd_events.h Maximize Restore History

Download this file

opd_events.h    43 lines (33 with data), 964 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
/**
* @file daemon/opd_events.h
* Event details for each counter
*
* @remark Copyright 2002, 2003 OProfile authors
* @remark Read the file COPYING
*
* @author John Levon
* @author Philippe Elie
*/
#ifndef OPD_EVENTS_H
#include <time.h>
/** event description for setup (perfmon) and mangling */
struct opd_event {
char * name;
unsigned long value;
unsigned long counter;
unsigned long count;
unsigned long um;
unsigned long kernel;
unsigned long user;
};
/* needed for opd_perfmon.c */
extern struct opd_event opd_events[];
/** parse the events into the opd_events array */
void opd_parse_events(char const * events);
/** Find the event for the given counter */
struct opd_event * find_counter_event(unsigned long counter);
struct opd_header;
/** fill the sample file header with event info etc. */
void fill_header(struct opd_header * header, unsigned long counter,
int is_kernel, time_t mtime);
#endif /* OPD_EVENTS_H */