op_counter.h 495 B

123456789101112131415161718192021
  1. /*
  2. * Copyright IBM Corp. 2011
  3. * Author(s): Andreas Krebbel (krebbel@linux.vnet.ibm.com)
  4. *
  5. * @remark Copyright 2011 OProfile authors
  6. */
  7. #ifndef OP_COUNTER_H
  8. #define OP_COUNTER_H
  9. struct op_counter_config {
  10. /* `enabled' maps to the hwsampler_file variable. */
  11. /* `count' maps to the oprofile_hw_interval variable. */
  12. /* `event' and `unit_mask' are unused. */
  13. unsigned long kernel;
  14. unsigned long user;
  15. };
  16. extern struct op_counter_config counter_config;
  17. #endif /* OP_COUNTER_H */