op_counter.h 499 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @file op_counter.h
  3. *
  4. * @remark Copyright 2004 Oprofile Authors
  5. * @remark Read the file COPYING
  6. *
  7. * @author Zwane Mwaikambo
  8. */
  9. #ifndef OP_COUNTER_H
  10. #define OP_COUNTER_H
  11. /* Per performance monitor configuration as set via
  12. * oprofilefs.
  13. */
  14. struct op_counter_config {
  15. unsigned long count;
  16. unsigned long enabled;
  17. unsigned long event;
  18. unsigned long unit_mask;
  19. unsigned long kernel;
  20. unsigned long user;
  21. };
  22. extern struct op_counter_config *counter_config;
  23. #endif /* OP_COUNTER_H */