oprof.h 887 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * @file oprof.h
  3. *
  4. * @remark Copyright 2002 OProfile authors
  5. * @remark Read the file COPYING
  6. *
  7. * @author John Levon <levon@movementarian.org>
  8. */
  9. #ifndef OPROF_H
  10. #define OPROF_H
  11. int oprofile_setup(void);
  12. void oprofile_shutdown(void);
  13. int oprofilefs_register(void);
  14. void oprofilefs_unregister(void);
  15. int oprofile_start(void);
  16. void oprofile_stop(void);
  17. struct oprofile_operations;
  18. extern unsigned long fs_buffer_size;
  19. extern unsigned long fs_cpu_buffer_size;
  20. extern unsigned long fs_buffer_watershed;
  21. extern struct oprofile_operations oprofile_ops;
  22. extern unsigned long oprofile_started;
  23. extern unsigned long backtrace_depth;
  24. struct super_block;
  25. struct dentry;
  26. void oprofile_create_files(struct super_block * sb, struct dentry * root);
  27. void oprofile_timer_init(struct oprofile_operations * ops);
  28. int oprofile_set_backtrace(unsigned long depth);
  29. #endif /* OPROF_H */