op_impl.h 945 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. extern int (*perf_irq)(void);
  12. /* Per-counter configuration as set via oprofilefs. */
  13. struct op_counter_config {
  14. unsigned long enabled;
  15. unsigned long event;
  16. unsigned long count;
  17. /* Dummies because I am too lazy to hack the userspace tools. */
  18. unsigned long kernel;
  19. unsigned long user;
  20. unsigned long exl;
  21. unsigned long unit_mask;
  22. };
  23. /* Per-architecture configury and hooks. */
  24. struct op_mips_model {
  25. void (*reg_setup) (struct op_counter_config *);
  26. void (*cpu_setup) (void *dummy);
  27. int (*init)(void);
  28. void (*exit)(void);
  29. void (*cpu_start)(void *args);
  30. void (*cpu_stop)(void *args);
  31. char *cpu_type;
  32. unsigned char num_counters;
  33. };
  34. void op_mips_backtrace(struct pt_regs * const regs, unsigned int depth);
  35. #endif