Heiko Carstens | a53c8fa | 2012-07-20 11:15:04 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright IBM Corp. 2011 |
Andreas Krebbel | dd3c467 | 2011-11-25 20:03:05 +0100 | [diff] [blame] | 3 | * Author(s): Andreas Krebbel (krebbel@linux.vnet.ibm.com) |
| 4 | * |
| 5 | * @remark Copyright 2011 OProfile authors |
| 6 | */ |
| 7 | |
| 8 | #ifndef OP_COUNTER_H |
| 9 | #define OP_COUNTER_H |
| 10 | |
| 11 | struct op_counter_config { |
| 12 | /* `enabled' maps to the hwsampler_file variable. */ |
| 13 | /* `count' maps to the oprofile_hw_interval variable. */ |
| 14 | /* `event' and `unit_mask' are unused. */ |
| 15 | unsigned long kernel; |
| 16 | unsigned long user; |
| 17 | }; |
| 18 | |
| 19 | extern struct op_counter_config counter_config; |
| 20 | |
| 21 | #endif /* OP_COUNTER_H */ |