blob: 0b7b7b179cbeeff36b559ab0b0f139d616998bc1 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/**
2 * @file op_counter.h
3 *
4 * @remark Copyright 2002 OProfile authors
5 * @remark Read the file COPYING
6 *
7 * @author John Levon
8 */
Robert Richter0f019cc2008-10-16 15:01:40 +02009
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#ifndef OP_COUNTER_H
11#define OP_COUNTER_H
Robert Richter0f019cc2008-10-16 15:01:40 +020012
Jason Yeh4d4036e2009-07-08 13:49:38 +020013#define OP_MAX_COUNTER 32
Robert Richter0f019cc2008-10-16 15:01:40 +020014
Linus Torvalds1da177e2005-04-16 15:20:36 -070015/* Per-perfctr configuration as set via
16 * oprofilefs.
17 */
18struct op_counter_config {
Robert Richter0f019cc2008-10-16 15:01:40 +020019 unsigned long count;
20 unsigned long enabled;
21 unsigned long event;
22 unsigned long kernel;
23 unsigned long user;
24 unsigned long unit_mask;
Andi Kleen914a76c2011-03-16 15:44:33 -040025 unsigned long extra;
Linus Torvalds1da177e2005-04-16 15:20:36 -070026};
27
28extern struct op_counter_config counter_config[];
29
30#endif /* OP_COUNTER_H */