^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) * @file op_counter.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * @remark Copyright 2002 OProfile authors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * @remark Read the file COPYING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * @author John Levon
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef OP_COUNTER_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define OP_COUNTER_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define OP_MAX_COUNTER 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) /* Per-perfctr configuration as set via
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) * oprofilefs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) struct op_counter_config {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) unsigned long count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) unsigned long enabled;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) unsigned long event;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) unsigned long kernel;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) unsigned long user;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) unsigned long unit_mask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) unsigned long extra;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) extern struct op_counter_config counter_config[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #endif /* OP_COUNTER_H */