Back to home page

LXR

 
 

    


0001 /**
0002  * @file op_counter.h
0003  *
0004  * @remark Copyright 2002 OProfile authors
0005  * @remark Read the file COPYING
0006  *
0007  * @author John Levon
0008  */
0009 
0010 #ifndef OP_COUNTER_H
0011 #define OP_COUNTER_H
0012 
0013 #define OP_MAX_COUNTER 32
0014 
0015 /* Per-perfctr configuration as set via
0016  * oprofilefs.
0017  */
0018 struct op_counter_config {
0019     unsigned long count;
0020     unsigned long enabled;
0021     unsigned long event;
0022     unsigned long kernel;
0023     unsigned long user;
0024     unsigned long unit_mask;
0025     unsigned long extra;
0026 };
0027 
0028 extern struct op_counter_config counter_config[];
0029 
0030 #endif /* OP_COUNTER_H */