op_impl.h 841 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * @file arch/alpha/oprofile/op_impl.h
  3. *
  4. * @remark Copyright 2002 OProfile authors
  5. * @remark Read the file COPYING
  6. *
  7. * @author Richard Henderson <rth@twiddle.net>
  8. */
  9. #ifndef OP_IMPL_H
  10. #define OP_IMPL_H 1
  11. /* Per-counter configuration as set via oprofilefs. */
  12. struct op_counter_config {
  13. unsigned long enabled;
  14. unsigned long event;
  15. unsigned long count;
  16. /* Dummies because I am too lazy to hack the userspace tools. */
  17. unsigned long kernel;
  18. unsigned long user;
  19. unsigned long exl;
  20. unsigned long unit_mask;
  21. };
  22. /* Per-architecture configury and hooks. */
  23. struct op_mips_model {
  24. void (*reg_setup) (struct op_counter_config *);
  25. void (*cpu_setup) (void * dummy);
  26. int (*init)(void);
  27. void (*exit)(void);
  28. void (*cpu_start)(void *args);
  29. void (*cpu_stop)(void *args);
  30. char *cpu_type;
  31. unsigned char num_counters;
  32. };
  33. #endif