blob: 91b6a116165e2e80deb3822286907acfe825b2f9 [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
Robert Richter4c168ea2008-09-24 11:08:52 +020013#define OP_MAX_COUNTER 8
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 */