Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /** |
| 2 | * @file op_counter.h |
| 3 | * |
| 4 | * @remark Copyright 2004 Oprofile Authors |
| 5 | * @remark Read the file COPYING |
| 6 | * |
| 7 | * @author Zwane Mwaikambo |
| 8 | */ |
| 9 | |
| 10 | #ifndef OP_COUNTER_H |
| 11 | #define OP_COUNTER_H |
| 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | /* Per performance monitor configuration as set via |
| 14 | * oprofilefs. |
| 15 | */ |
| 16 | struct op_counter_config { |
| 17 | unsigned long count; |
| 18 | unsigned long enabled; |
| 19 | unsigned long event; |
| 20 | unsigned long unit_mask; |
| 21 | unsigned long kernel; |
| 22 | unsigned long user; |
| 23 | }; |
| 24 | |
Russell King | ae92dc9 | 2006-03-16 11:32:51 +0000 | [diff] [blame] | 25 | extern struct op_counter_config *counter_config; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | |
| 27 | #endif /* OP_COUNTER_H */ |