blob: e28398df0df2959bc391a1aa028487264e746d85 [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;
Linus Torvalds1da177e2005-04-16 15:20:36 -070025};
26
27extern struct op_counter_config counter_config[];
28
29#endif /* OP_COUNTER_H */